Hoping someone with some zwave database expertise can help me out.
I’ve just got a ZD2201 door/window sensor, which is in the zwave database and is detected by the OH2 & zwave binding. Unfortunately I’ve had no luck getting a sane open/close from the sensor.
After updating the database and trying out the updated XML I’m still no closer. I believe the ‘issue’ is that the sensor uses the Alarm command/notification for both a Burglar and Door open/close. They differ by the notification type (0x06 for Door and 0x07 for Burglar) and in addition the event for the notification type is used to distinguish between open and close, for both: with Burglar (0x00 close, 0x03 open) and Door (0x17 close, 0x16 open).
I don’t know how to update the database so that it will generate the correct XML for OH2 so it understands both Burglar, Door and open/close for each. Below are some logs from when I ‘stimulated’ the sensor to produce each response so it looks like OH2 gets all the messages but it doesn’t know what to do with them.
Can anyone help and explain how I need to set up the database entry for this kind of sensor?
Cheers!
F.
PS Chris, I can’t seem to remove the binary sensor from the ZD2201 database entry - but I’m pretty sure its wrong!
No Buglar
2017-06-10 14:20:59.284 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Application Command Request (ALIVE:DONE)
2017-06-10 14:20:59.285 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 41: Starting initialisation from DONE
2017-06-10 14:20:59.286 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Incoming command class ALARM
2017-06-10 14:20:59.287 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Received ALARM command V4
2017-06-10 14:20:59.288 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Process NOTIFICATION_REPORT V4
2017-06-10 14:20:59.289 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: NOTIFICATION report - 7 = 0, event=0, status=255
2017-06-10 14:20:59.289 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Alarm Type = BURGLAR (7)
2017-06-10 14:20:59.290 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got an event from Z-Wave network: ZWaveAlarmValueEvent
2017-06-10 14:20:59.291 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got a value event from Z-Wave network, endpoint = 0, command class = ALARM, value = 255
2017-06-10 14:20:59.536 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Application Command Request (ALIVE:DONE)
2017-06-10 14:20:59.536 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 41: Starting initialisation from DONE
2017-06-10 14:20:59.538 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Incoming command class ALARM
2017-06-10 14:20:59.539 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Received ALARM command V4
2017-06-10 14:20:59.540 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Process NOTIFICATION_REPORT V4
2017-06-10 14:20:59.541 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: NOTIFICATION report - 7 = 0, event=0, status=255
2017-06-10 14:20:59.541 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Alarm Type = BURGLAR (7)
2017-06-10 14:20:59.543 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got an event from Z-Wave network: ZWaveAlarmValueEvent
2017-06-10 14:20:59.544 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got a value event from Z-Wave network, endpoint = 0, command class = ALARM, value = 255
Buglar
2017-06-10 14:21:10.334 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Application Command Request (ALIVE:DONE) 2017-06-10 14:21:10.335 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 41: Starting initialisation from DONE 2017-06-10 14:21:10.337 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Incoming command class ALARM 2017-06-10 14:21:10.338 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Received ALARM command V4 2017-06-10 14:21:10.339 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Process NOTIFICATION_REPORT V4 2017-06-10 14:21:10.340 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: NOTIFICATION report - 7 = 255, event=3, status=255 2017-06-10 14:21:10.341 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Alarm Type = BURGLAR (7) 2017-06-10 14:21:10.346 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got an event from Z-Wave network: ZWaveAlarmValueEvent 2017-06-10 14:21:10.347 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got a value event from Z-Wave network, endpoint = 0, command class = ALARM, value = 255 2017-06-10 14:21:10.379 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Application Command Request (ALIVE:DONE) 2017-06-10 14:21:10.380 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 41: Starting initialisation from DONE 2017-06-10 14:21:10.382 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Incoming command class ALARM 2017-06-10 14:21:10.383 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Received ALARM command V4 2017-06-10 14:21:10.384 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Process NOTIFICATION_REPORT V4 2017-06-10 14:21:10.386 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: NOTIFICATION report - 7 = 255, event=3, status=255 2017-06-10 14:21:10.387 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Alarm Type = BURGLAR (7) 2017-06-10 14:21:10.389 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got an event from Z-Wave network: ZWaveAlarmValueEvent 2017-06-10 14:21:10.390 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got a value event from Z-Wave network, endpoint = 0, command class = ALARM, value = 255
Door Closed
2017-06-10 14:22:08.026 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Application Command Request (ALIVE:DONE)
2017-06-10 14:22:08.027 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 41: Starting initialisation from DONE
2017-06-10 14:22:08.030 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Incoming command class BASIC
2017-06-10 14:22:08.031 [DEBUG] [.commandclass.ZWaveBasicCommandClass] - NODE 41: Received Basic Request
2017-06-10 14:22:08.032 [DEBUG] [.commandclass.ZWaveBasicCommandClass] - NODE 41: Basic Set sent to the controller will be processed as Basic Report
2017-06-10 14:22:08.033 [DEBUG] [.commandclass.ZWaveBasicCommandClass] - NODE 41: Basic report, value = 0x00
2017-06-10 14:22:08.035 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got an event from Z-Wave network: ZWaveCommandClassValueEvent
2017-06-10 14:22:08.036 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got a value event from Z-Wave network, endpoint = 0, command class = BASIC, value = 0
2017-06-10 14:22:08.054 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Application Command Request (ALIVE:DONE)
2017-06-10 14:22:08.056 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 41: Starting initialisation from DONE
2017-06-10 14:22:08.059 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Incoming command class ALARM
2017-06-10 14:22:08.061 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Received ALARM command V4
2017-06-10 14:22:08.063 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Process NOTIFICATION_REPORT V4
2017-06-10 14:22:08.065 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: NOTIFICATION report - 6 = 0, event=23, status=255
2017-06-10 14:22:08.067 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Alarm Type = ACCESS_CONTROL (6)
2017-06-10 14:22:08.072 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got an event from Z-Wave network: ZWaveAlarmValueEvent
2017-06-10 14:22:08.074 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got a value event from Z-Wave network, endpoint = 0, command class = ALARM, value = 255
2017-06-10 14:22:08.082 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Updating channel state zwave:device:88bf0286:node41:alarm_access to ON [OnOffType]
Door opened
2017-06-10 14:22:33.277 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Application Command Request (ALIVE:DONE)
2017-06-10 14:22:33.278 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 41: Starting initialisation from DONE
2017-06-10 14:22:33.280 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Incoming command class BASIC
2017-06-10 14:22:33.281 [DEBUG] [.commandclass.ZWaveBasicCommandClass] - NODE 41: Received Basic Request
2017-06-10 14:22:33.283 [DEBUG] [.commandclass.ZWaveBasicCommandClass] - NODE 41: Basic Set sent to the controller will be processed as Basic Report
2017-06-10 14:22:33.285 [DEBUG] [.commandclass.ZWaveBasicCommandClass] - NODE 41: Basic report, value = 0xFF
2017-06-10 14:22:33.288 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got an event from Z-Wave network: ZWaveCommandClassValueEvent
2017-06-10 14:22:33.289 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got a value event from Z-Wave network, endpoint = 0, command class = BASIC, value = 255
2017-06-10 14:22:33.311 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Application Command Request (ALIVE:DONE)
2017-06-10 14:22:33.312 [DEBUG] [alization.ZWaveNodeInitStageAdvancer] - NODE 41: Starting initialisation from DONE
2017-06-10 14:22:33.315 [DEBUG] [ssage.ApplicationCommandMessageClass] - NODE 41: Incoming command class ALARM
2017-06-10 14:22:33.316 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Received ALARM command V4
2017-06-10 14:22:33.317 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Process NOTIFICATION_REPORT V4
2017-06-10 14:22:33.318 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: NOTIFICATION report - 6 = 255, event=22, status=255
2017-06-10 14:22:33.319 [DEBUG] [.commandclass.ZWaveAlarmCommandClass] - NODE 41: Alarm Type = ACCESS_CONTROL (6)
2017-06-10 14:22:33.321 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got an event from Z-Wave network: ZWaveAlarmValueEvent
2017-06-10 14:22:33.322 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Got a value event from Z-Wave network, endpoint = 0, command class = ALARM, value = 255
2017-06-10 14:22:33.326 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 41: Updating channel state zwave:device:88bf0286:node41:alarm_access to ON [OnOffType]