ZWay: version 1.4.1 changes
It seems that ZWay 1.4.1 got finally released; well, at first sight it looks to be the same as the previous release candidate ("v1.4.1-rc1"). Therefore it was time to update my raspberry pi with this newer version. Hopefully this should now enable support for the ALARM command class.
Nothing got broken in terms of recompiling my existing code. Good - but:
Nothing got broken in terms of recompiling my existing code. Good - but:
- It seems necessary to re-include/re-interview the ZWave devices.
- The data holder model for my binary sensor has changed!
zway_find_device_instance_cc_data(aZWay, 2, 0,
COMMAND_CLASS_SENSOR_BINARY, "level");
Now there is no more data holder under this name. It is:
[2013-11-27 21:34:02.756] SETDATA devices.2.instances.0.commandClasses.113.data = Empty
[2013-11-27 21:34:02.758] SETDATA devices.2.instances.0.commandClasses.113.data.version = Empty
[2013-11-27 21:34:02.760] SETDATA devices.2.instances.0.commandClasses.113.data.version = 1 (0x00000001)
[2013-11-27 21:34:02.761] SETDATA devices.2.instances.0.commandClasses.113.data.security = Empty
[2013-11-27 21:34:02.763] SETDATA devices.2.instances.0.commandClasses.113.data.security = False
[2013-11-27 21:34:02.765] SETDATA devices.2.instances.0.commandClasses.113.data.interviewDone = Empty
[2013-11-27 21:34:02.766] SETDATA devices.2.instances.0.commandClasses.113.data.interviewCounter = Empty
[2013-11-27 21:34:02.768] SETDATA devices.2.instances.0.commandClasses.113.data.interviewDone = False
[2013-11-27 21:34:02.770] SETDATA devices.2.instances.0.commandClasses.113.data.interviewCounter = 10 (0x0000000a)
[2013-11-27 21:34:02.772] SETDATA devices.2.instances.0.commandClasses.113.data.V1supported = Empty
[2013-11-27 21:34:02.774] SETDATA devices.2.instances.0.commandClasses.113.data.typeMask = Empty
[2013-11-27 21:34:02.775] SETDATA devices.2.instances.0.commandClasses.113.data.V1event = Empty
[2013-11-27 21:34:02.777] SETDATA devices.2.instances.0.commandClasses.113.data.V1event.type = Empty
[2013-11-27 21:34:02.779] SETDATA devices.2.instances.0.commandClasses.113.data.V1event.level = Empty
[2013-11-27 21:34:02.781] SETDATA devices.2.data.lastReceived = 0 (0x00000000)
[2013-11-27 21:34:02.783] SETDATA devices.2.instances.0.commandClasses.113.data.V1event.type = 1 (0x00000001)
[2013-11-27 21:34:02.785] SETDATA devices.2.instances.0.commandClasses.113.data.V1event.level = 17 (0x00000011)
[2013-11-27 21:34:02.786] SETDATA devices.2.instances.0.commandClasses.113.data.V1event = Empty
zway_find_device_instance_cc_data(aZWay, 2, 0,
COMMAND_CLASS_SENSOR_BINARY, "1.level");
Not very clear why, but this works as before for me.
But the good news is that now, ALARM class is supported; pushing the tamper switch on my sensor results in the following logs:
[2013-11-27 21:34:02.755] Got frame from device 2 to controller, but command class 0x71 for device is not registered - instantiating it as not supported[2013-11-27 21:34:02.756] SETDATA devices.2.instances.0.commandClasses.113.data = Empty
[2013-11-27 21:34:02.758] SETDATA devices.2.instances.0.commandClasses.113.data.version = Empty
[2013-11-27 21:34:02.760] SETDATA devices.2.instances.0.commandClasses.113.data.version = 1 (0x00000001)
[2013-11-27 21:34:02.761] SETDATA devices.2.instances.0.commandClasses.113.data.security = Empty
[2013-11-27 21:34:02.763] SETDATA devices.2.instances.0.commandClasses.113.data.security = False
[2013-11-27 21:34:02.765] SETDATA devices.2.instances.0.commandClasses.113.data.interviewDone = Empty
[2013-11-27 21:34:02.766] SETDATA devices.2.instances.0.commandClasses.113.data.interviewCounter = Empty
[2013-11-27 21:34:02.768] SETDATA devices.2.instances.0.commandClasses.113.data.interviewDone = False
[2013-11-27 21:34:02.770] SETDATA devices.2.instances.0.commandClasses.113.data.interviewCounter = 10 (0x0000000a)
[2013-11-27 21:34:02.772] SETDATA devices.2.instances.0.commandClasses.113.data.V1supported = Empty
[2013-11-27 21:34:02.774] SETDATA devices.2.instances.0.commandClasses.113.data.typeMask = Empty
[2013-11-27 21:34:02.775] SETDATA devices.2.instances.0.commandClasses.113.data.V1event = Empty
[2013-11-27 21:34:02.777] SETDATA devices.2.instances.0.commandClasses.113.data.V1event.type = Empty
[2013-11-27 21:34:02.779] SETDATA devices.2.instances.0.commandClasses.113.data.V1event.level = Empty
[2013-11-27 21:34:02.781] SETDATA devices.2.data.lastReceived = 0 (0x00000000)
[2013-11-27 21:34:02.783] SETDATA devices.2.instances.0.commandClasses.113.data.V1event.type = 1 (0x00000001)
[2013-11-27 21:34:02.785] SETDATA devices.2.instances.0.commandClasses.113.data.V1event.level = 17 (0x00000011)
[2013-11-27 21:34:02.786] SETDATA devices.2.instances.0.commandClasses.113.data.V1event = Empty
That's a start... now let's see how to use that...
Comments
Post a Comment