#Default Zwave state
1 messages · Page 1 of 1 (latest)
Not sure what device you have, but that config reads as the switch will restore it's state (on or off) on power restore. Nothing to do with state of entity in HA.
If a device loses power, there's no way for it to send a message to HA to say it's now off.
And if the device doesn't send a report when it's powered back on, HA won't know. So you would have to poll it.
Is this because I have home assistant on a UPS? If it was restarted due to power failure then it would poll when it starts up? I dont remember ever having this issue, but I dont remember if I had a power outage since i got zwave switches.
Not necessarily. There's no polling on startup.
If Z-Wave JS were offline it would also miss messages from nodes, which would result in missed state changes.
Ideally a device that supports a power-on state would send a report when it's going to that state. Sounds like that's not the case. If you can connect your UPS to HA (I use nut) maybe you could automate polling on power being restored if that's something critical.
There's also a Zooz repeater device that has a built-in battery and will send notifications on power changes.
Also still a problem for any device which is on and gets powered off abruptly, just the opposite state. I don't think any switches I have would send any report when they are back on power, but I've never checked.
Which device is that? Which firmware version?
ZEN71
by Zooz
Connected via 800 Series Long Range USB Controller
Firmware: 3.70.0
I can use from unavailable status as a trigger for polling I guess.
Unavailable status of what?
I should have that one. Will try to reproduce. Normally those devices send their status on powerup, at least it has been this way with other Zooz devices I've tested
Something like:sensor.hallway_downstairs_node_status
That won't be unavailable
Only reason the entities would be unavailable is if the zwave-js server was offline
The node status would be alive/dead/sleeping/awake. But if the power went out you'd need to poll to see it change, or perform some action.
🙁 So one of my wifi esphome devices maybe?
Well, if it's a bug in the device and it can be fixed, then it's all moot. But yeah, anything that changes on power out/restore would work.
I don't know if its a bug. I guess more testing is needed. I am not at that location meanwhile so I can not test it. I think its because I set the restore on powerloss to be always on. I dont remember having the problem on other switches that didnt have this setting.
Which revision and firmware version is it?
3.70 according to the comment above. Which means it's the latest, 800 series revision.