First, don’t trigger off of device. Use an entity state.
In your device, it should have a binary sensor of ‘sensor_state_water’. That’s what you should trigger off of. You can also trigger off the leak alarm itself.
You are entering in the wrong information thats why you get that error.
All the information you need to input in the Value Change on a Z-Wave JS Value fields is displayed in the Z-Wave JS UI control panel.
In the last screenshot here’s what you have and here’s what it means.
[12-113-0-Water Alarm-Sensor Status]
12 is the node id of the device you are currently viewing
113 is the command class id for the notification command class. Depending on what you are doing it may ask you for one or the other.
0 is the endpoint
Water Alarm is the property
Sensor Status is the property key
2 would be what you would enter in the Value fields.
I appreciate all of the replies. I’m using:
zwave-js-ui: 9.10.2
zwave-js: 12.5.2
I see in this ZUI :
False switches to true when I get the sensor wet.
The matching event is:
4/7/2024, 8:24:08 AM - value updated
Arg 0:
└─commandClassName: Binary Sensor
└─commandClass: 48
└─property: Water
└─endpoint: 0
└─newValue: true
└─prevValue: false
└─propertyName: Water
I’m trying to understand the logic that determines what code to use. I think “value updated” means I should be using zwave_js_value_notification and not zwave_js_notification. Is that correct?
I’m not ignoring your suggestion @cornellrwilliams. I tried changing the trigger based on your suggestion, and that didn’t work either. I might need to go back and look at it again.
edit: should I be triggering off of this event?
4/7/2024, 8:24:08 AM - value updated
Arg 0:
└─commandClassName: Notification
└─commandClass: 113
└─property: Water Alarm
└─propertyKey: Sensor status
└─endpoint: 0
└─newValue: 2
└─prevValue: 2
└─propertyName: Water Alarm
└─propertyKeyName: Sensor status
It matters if the value metadata is not being presented to HA. Given you aren’t seeing any of the entities, that seems likely. Just because ZUI shows it doesn’t mean will work properly in HA. Is the node in the “Ready” state (HA) or Interview “Complete” (ZUI)?
It’d be more helpful if you could post some of the following:
the device diagnostic file (downloadable from device page), it shows all the discovered values that map to entities.
driver debug log of the interview process so we could see why the CC versions are undefined
integration debug logs that would show if the value updates are reaching HA (although this one is busy and may contain sensitive information since it’s the full HA logs, so post only the relevant logs)
Nope, “value update” corresponds to entity state changes, or the low-level zwave_js.value_updated platform event. The latter is only required in exceptional cases, which this one should be not.
Yeah, you’re kinda trying to use a sensor that hasn’t been fully interviewed which could lead to other problems. Best to either try to reinterview it or remove/re-pair it closer to the coordinator. Mine (I have 2 of them) took a couple of pairings to get right in HA. Once they both got interviewed properly, they work really well with just the binary sensors.
The re-interview did the trick! Everything is working perfectly now. No need to manually edit the YAML, I just had to click on this for a new automation: