Z-wave switch state immediately flipping

Hi,
Whenever I change the state of my zen76 switch, it immediately reports that it’s state is off.

Kind of confusing but:

So if it is off, and I turn it on, it turns on (and the state changes to on for a second) but then it reports the state is off, so it is on but HA thinks it is off

Then if it’s on, the current state in HA is off and I have to hit on again to turn it off. It remains off but the state then flips back from on to off.

Any solution? Makes it pretty impossible to automate because it always reports off (except for half a second after I change the state).

How do you know it is reporting off? Do you have a zwavejs message debug log?

Here’s the log:

Blockquote
2024-07-05 20:46:38.178 INFO Z-WAVE: Calling api writeValue with args: [
{
nodeId: 27,
commandClass: 37,
endpoint: 0,
property: ‘targetValue’
},
true,
null,
[length]: 3
]
2024-07-05 20:46:38.180 INFO Z-WAVE: Writing true to 27-37-0-targetValue
2024-07-05 20:46:38.227 INFO Z-WAVE: [Node 027] Value updated: 37-0-targetValue false => true
2024-07-05 20:46:38.231 INFO Z-WAVE: [Node 027] Value updated: 37-0-currentValue false => true
2024-07-05 20:46:38.233 INFO Z-WAVE: Success zwave api call writeValue { status: 255 }
2024-07-05 20:46:38.245 INFO Z-WAVE: [Node 027] Value updated: 37-0-currentValue true => true
2024-07-05 20:46:38.248 INFO Z-WAVE: [Node 027] Value updated: 37-0-targetValue true => true
2024-07-05 20:46:38.250 INFO Z-WAVE: [Node 027] Value updated: 37-0-duration 0s => 0s
2024-07-05 20:46:39.462 INFO Z-WAVE: [Node 027] Value updated: 37-0-currentValue true => false
2024-07-05 20:46:39.465 INFO Z-WAVE: [Node 027] Value updated: 37-0-targetValue true => false
2024-07-05 20:46:39.468 INFO Z-WAVE: [Node 027] Value updated: 37-0-duration 0s => 0s

The bolded portion happens one second later and that’s when it’s state in zwavejs turns back to off.

Bumping… any ideas?

If you refresh the entity. Either from the zwavejs panel or by calling the HA service, does it then reflect the correct value?

    - service: zwave_js.refresh_value
      data:
        entity_id: switch.switch_2_switch
        refresh_all_values: false

It doesn’t. I guess it’s a problem with the switch then? Is there a way to get HA to manually keep the status updated based on commands sent?

My first thought was a messed-up switch setting. First check to see if theres a new firmware available, as it may fix a known bug. Then I’d try excluding the node, performing a full factory reset, and adding it back again. Exclude / include by tapping the top button 3 times; to reset, follow this procedure.

1 Like

I’d open a case with Zooz they are very reponsive.