Java Runtime Environment: which java platform is used and what version
openHAB version: 2.5.6
Hello,
I’m new to openHAB. I added a Z-wave dongle and a Yale YRD110 lock.
I’m trying to figure out how to send a custom Z-Wave command which is not exposed as a channel to read the battery level (COMMAND_CLASS_BATTERY) through the API.
The lock supports Battery CC per ZWave specifications V9. It is recommended that the network controller use this CC to retrieve the lock’s battery level at least once daily. The lock will send low battery alarms if low battery condition exists immediately after user access.
I don’t think it is advisable to use low level communication to directly interact with the device. @chris as the maintainer surely can shed more light onto that idea.
From what I know I would advise to follow the instructions here to add the necessary functionality by amending the thing definition in order to use standard mechanisms for interacting with the device.
If all you want to do is to read the battery, then the device should provide a battery channel, and this should be updated automatically. You should not need to do anything “custom” to do this sort of thing.
The specifications are not just for that particular model of lock. If the device does not expose the command class, there is nothing the binding can do.
The device needs to expose COMMAND_CLASS_BATTERY in its Node Information Frame when requested. It may be a bug with that model of lock. but not with the binding.
Anyway, the answer is no, you can’t easily change the device type. You could mess around with the internals of OH, but that’s just asking for trouble. We just solved the database issue so it will not be an issue for the yrd110.