Fix GatewayAction sensor not reset to default #284
Fix GatewayAction sensor not reset to default #284niceboygithub merged 1 commit intoniceboygithub:masterfrom
Conversation
|
@EricCorleone any option? |
|
As far as I know, the "unknown" state only appears when you reboot your HA and no event has been reported yet, and it should be the empty value |
|
I can change it to |
|
I'm not sure if you are talking about frontend display, because when the state is |
d7eb069 to
ab4ecde
Compare
|
@niceboygithub @EricCorleone I've change the default value for the vibration sensor to Thanks |
Sorry I forgot to mention that using the empty string |
Hi, sorry you might miss understood from my previous reply, when the state is The default values might be able to be like
|
|
The And the reason I prefer the empty string over "unknown" is simply because it looks better, but both are ok I guess (also I don't think I will use the empty/unknown state in automations). |
|
Hey Eric yeah I've also tested the |
|
Both |
ab4ecde to
b1399f3
Compare
|
@Necroneco Thanks for pointing it out I've modify the branch to just moved |
|
But this is not much different from #280. Currently, only these two classes need this method. |
|
@Necroneco I’m not sure if there are other devices that got effected as I don’d have a large variety to test against. And yeah merging both should be fine, I was just thinking to reduce duplicate code. ^_^ |



lumi.vibration.aq1)reset_stateintoGatewayBinarySensorclass .Thank you @niceboygithub