Hello! Just installed OH 5.0.0 and was happy to see this device appear in the database (that is, the Thing in my Inbox now has identification information beyond âunknown deviceâ).
So I added it and proceeded to configure it. I discovered a problem:
The motion sensor only successfully reports when motion STOPS, not when it STARTS
I captured some debug output, shown here:
2025-07-24 19:58:34.995 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 78: Application Command Request (ALIVE:DYNAMIC_VALUES)
2025-07-24 19:58:34.995 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 78: Incoming command class COMMAND_CLASS_ALARM, endpoint 0
2025-07-24 19:58:34.995 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 78: SECURITY NOT required on COMMAND_CLASS_ALARM
2025-07-24 19:58:34.995 [DEBUG] [tocol.commandclass.ZWaveCommandClass] - NODE 78: Received COMMAND_CLASS_ALARM V8 NOTIFICATION_REPORT
2025-07-24 19:58:34.996 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 78: NOTIFICATION report - 0 = 0, event=8, status=255, plen=0
2025-07-24 19:58:34.996 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 78: Alarm Type = BURGLAR (0)
2025-07-24 19:58:34.996 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 78: Got an event from Z-Wave network: ZWaveAlarmValueEvent
2025-07-24 19:58:34.996 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 78: Got a value event from Z-Wave network, endpoint=0, command class=COMMAND_CLASS_ALARM, value=255
2025-07-24 19:58:34.996 [DEBUG] [ternal.converter.ZWaveAlarmConverter] - NODE 78: Alarm converter processing NOTIFICATION
2025-07-24 19:58:34.997 [DEBUG] [ternal.converter.ZWaveAlarmConverter] - NODE 78: Alarm converter NOTIFICATION event is 8, type OnOffType
2025-07-24 19:58:34.997 [DEBUG] [ternal.converter.ZWaveAlarmConverter] - NODE 78: Alarm converter processing NOTIFICATION
2025-07-24 19:58:34.997 [DEBUG] [ternal.converter.ZWaveAlarmConverter] - NODE 78: Alarm converter NOTIFICATION event is 8, type OnOffType
2025-07-24 19:58:34.997 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 78: Commands processed 1.
2025-07-24 19:58:34.997 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 78: Checking command org.openhab.binding.zwave.internal.protocol.ZWaveCommandClassPayload@1dae478f.
2025-07-24 19:59:12.786 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 78: Application Command Request (ALIVE:DYNAMIC_VALUES)
2025-07-24 19:59:12.787 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 78: Incoming command class COMMAND_CLASS_ALARM, endpoint 0
2025-07-24 19:59:12.787 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 78: SECURITY NOT required on COMMAND_CLASS_ALARM
2025-07-24 19:59:12.787 [DEBUG] [tocol.commandclass.ZWaveCommandClass] - NODE 78: Received COMMAND_CLASS_ALARM V8 NOTIFICATION_REPORT
2025-07-24 19:59:12.787 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 78: NOTIFICATION report - 0 = 0, event=0, status=255, plen=1
2025-07-24 19:59:12.788 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 78: Alarm Type = BURGLAR (0)
2025-07-24 19:59:12.788 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 78: Got an event from Z-Wave network: ZWaveAlarmValueEvent
2025-07-24 19:59:12.788 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 78: Got a value event from Z-Wave network, endpoint=0, command class=COMMAND_CLASS_ALARM, value=255
2025-07-24 19:59:12.788 [DEBUG] [ternal.converter.ZWaveAlarmConverter] - NODE 78: Alarm converter processing NOTIFICATION
2025-07-24 19:59:12.789 [DEBUG] [ternal.converter.ZWaveAlarmConverter] - NODE 78: Alarm converter NOTIFICATION event is 0, type OnOffType
2025-07-24 19:59:12.789 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 78: Updating channel state zwave:device:d343fb06:node78:alarm_burglar to OFF [OnOffType]
2025-07-24 19:59:12.789 [DEBUG] [ternal.converter.ZWaveAlarmConverter] - NODE 78: Alarm converter processing NOTIFICATION
2025-07-24 19:59:12.790 [DEBUG] [ternal.converter.ZWaveAlarmConverter] - NODE 78: Alarm converter NOTIFICATION event is 0, type OnOffType
2025-07-24 19:59:12.790 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 78: Commands processed 1.
2025-07-24 19:59:12.790 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 78: Checking command org.openhab.binding.zwave.internal.protocol.ZWaveCommandClassPayload@6cd02d81.
2025-07-24 19:59:12.791 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Driveway_Perimeter_Node_078_Motion_Alarm' changed from NULL to OFF
And then I looked around for similar errors. I discovered a few posts which seem relevant:
- A similar set of symptoms for an older motion sensor from the same manufacturer, Zooz. Zooz ZSE02 motion sensor not working Although this was 2018, and the OP gave up, it is likely that the fix for my problem will also work for the ZSE02.
- A similar set of symptoms for an entirely different motion sensor, with a fix as well: Steinel MotionSwitchLED, Alarm converter NOTIFICATION event
I looked through the debugging messages I printed above, and discovered that when motion STARTS, the device sends a âburglarâ alarm notification with value 8. However, the code for converting a burglar alarm doesnât understand the value 8. But I did notice that the code for handling a âmotion alarmâ does handle the value 8. Unfortunately, the code doesnât actually check to see if the notification value (8 in this case) is a legitimate value for the specified channel_type. It simply returns whatever it get()'s from the Hashmap, even if the value is null. I could maybe add a debug statement here as an assistance to users who end up using a device configured with the incorrect type. But Iâve definitely never pulled down the OH code and I donât have any kind of test bench!
Alas, this device is in the database as a âalarm_burglarâ type. Note: I modified the opensmarthouse.org database definition to change it to alarm_motion but Iâm honestly not sure that I did this properly. I plan to try to modify the XML locally to confirm that Iâm on the right track, and will post an update when possible.
Any thoughts on the above, both my suggestion for the ZSE70, as well as the suggestion for the ZSE02 too?
Thanks!