#Default Zwave state

1 messages · Page 1 of 1 (latest)

keen remnant
#

I am having an issue where the zwave state is wrong when the default restore from power loss is set to on Home Assistant thinks its off. Is this how it should be? Do I need to make an automation to poll all the zwave switches for their state when they lose/restore power?

chilly whale
#

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.

keen remnant
#

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.

chilly whale
#

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.

wheat ibex
#

Which device is that? Which firmware version?

keen remnant
#
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.

chilly whale
#

Unavailable status of what?

wheat ibex
#

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

keen remnant
#

Something like:sensor.hallway_downstairs_node_status

chilly whale
#

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.

keen remnant
#

🙁 So one of my wifi esphome devices maybe?

chilly whale
#

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.

keen remnant
#

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.

chilly whale
#

Which revision and firmware version is it?

wheat ibex
#

3.70 according to the comment above. Which means it's the latest, 800 series revision.

wheat ibex
#

I cannot reproduce

#

I updated my Zen71 to the latest firmware, set the state after power loss to always on (or always off), cut power to it and I see a report when it is powred back up