M_I
(M I)
May 12, 2019, 7:57pm
1
OH2
openhab> bundle:list | grep -i zwave
219 x Active x 80 x 2.5.0.201905010419 x ZWave Binding
How to update the channel state for unknown zwave device type?
I tried to add an Item and to attach a channel to it, but it was unsuccessful
Number zwave_device_a5ea2_node57_sensor_temperature "Temperature" <temperature> { channel="zwave:device:a5ea2:node57:sensor_temperature" }
20:14:21.743 [DEBUG] [rnal.protocol.ZWaveTransactionManager] - lastTransaction null
20:14:21.744 [DEBUG] [rnal.protocol.ZWaveTransactionManager] - NODE 57: Application Command Request (ALIVE:DONE)
20:14:21.744 [DEBUG] [ing.zwave.internal.protocol.ZWaveNode] - NODE 57: resetResendCount initComplete=true isDead=false
20:14:21.745 [DEBUG] [ing.zwave.internal.protocol.ZWaveNode] - NODE 57: Incoming command class COMMAND_CLASS_SENSOR_MULTILEVEL, endpoint 0
20:14:21.745 [DEBUG] [ing.zwave.internal.protocol.ZWaveNode] - NODE 57: SECURITY not supported
20:14:21.746 [DEBUG] [otocol.commandclass.ZWaveCommandClass] - NODE 57: Received COMMAND_CLASS_SENSOR_MULTILEVEL V7 SENSOR_MULTILEVEL_REPORT
20:14:21.746 [DEBUG] [ass.ZWaveMultiLevelSensorCommandClass] - NODE 57: Sensor Type = Temperature(1), Scale = 0
20:14:21.747 [DEBUG] [ass.ZWaveMultiLevelSensorCommandClass] - NODE 57: Sensor Value = 9.4
20:14:21.747 [DEBUG] [nding.zwave.handler.ZWaveThingHandler] - NODE 57: Got an event from Z-Wave network: ZWaveMultiLevelSensorValueEvent
20:14:21.747 [DEBUG] [nding.zwave.handler.ZWaveThingHandler] - NODE 57: Got a value event from Z-Wave network, endpoint=0, command class=COMMAND_CLASS_SENSOR_MULTILEVEL, value=9.4
20:14:21.748 [DEBUG] [rnal.protocol.ZWaveTransactionManager] - NODE 57: Commands processed 1.
20:14:21.748 [DEBUG] [rnal.protocol.ZWaveTransactionManager] - NODE 57: Checking command org.openhab.binding.zwave.internal.protocol.ZWaveCommandClassPayload@b653b8.
20:14:21.748 [DEBUG] [rnal.protocol.ZWaveTransactionManager] - Transaction completed - outstandingTransactions 0
20:14:21.748 [DEBUG] [rnal.protocol.ZWaveTransactionManager] - Transaction completed - outstandingTransactions 0
20:14:21.748 [DEBUG] [rnal.protocol.ZWaveTransactionManager] - ZWaveReceiveThread queue empty
20:14:21.748 [DEBUG] [rnal.protocol.ZWaveTransactionManager] - Transaction SendNextMessage 0 out at start. Holdoff false.
network_a7217c69__node_57.xml (9.7 KB)
5iver
(Scott Rushworth)
May 13, 2019, 3:15am
2
Since it is unknown, there is no Thing definition. Without a Thing definition, there are no Channels to link Items to. Your device needs to be in the device database (which is exported and included in the binding) for it to be identified. If it is a battery powered device, then you may need to manually wake it up several times for it to be identified.
What is your device and is it in the device database?
sihui
(SiHui)
May 13, 2019, 6:31am
3
It’s one of these Zuno’s … looks like the xml was attached through an edit
There were no users yet who were able to configure the database for them.
In this case the firmware version 2.14 is not supported in the database:
There were already several discussions about these devices, but I don’t think the issues are solved:
If I understand this, you want many different database entries? Unfortunately, this is not possible since the ZUno always uses a fixed device type/id identifier so there’s no way to differentiate the different versions. Please correct me if I’m wrong, but that’s what I was told.
My thought was to “simply” add all channels… Is there a “superset” of channels that we can define - I don’t know how flexible ZUno is with defining endpoints etc, but if we can get a single definition that covers every…
Here is an attempt to use some of the available channels, but the database was never updated:
Here I’ll be documenting the steps I took to get a Z-Uno up and running with OpenHAB2.
The Z-Uno is a (semi) Arduino compatible device with Z-Wave built in. It now supports up to 32! channels (up from the 10 that it was initially shipped with).
See: https://z-uno.z-wave.me/technical/
After browsing a couple other posts, it looks like we’ll need to build the entire binding with the appropriate XML - you cannot just modify the XML in {userdata}/zwave like I originally had hoped.
See: Zwave Dat…
3 Likes
M_I
(M I)
May 13, 2019, 6:54am
4
Yeah, it’s a device on Z-Uno project, I’m trying to measure a distance with it.
Even if Z-Uno offer possibility to have channel type for distance ZUNO_SENSOR_MULTILEVEL_DISTANCE ZUNO_SETUP_CHANNELS , I discovered that OH2 don’t support channel type distance OpenHAB-2 Channel Types . For this reason I used channel type temperature just for testing. Will this type of channel be supported in the future by OH2? There are any other Z-wave device that could measure distance?
RJG2
(RJG2)
May 13, 2019, 8:54am
5
I’m not sure about channel type support, but at the moment, the only way to get the Z-Uno to work is to:
Create the database XML yourself
Get the source code for the Z-Wave binding
Add the database XML to source
Build the source
Install the custom binding
The link @sihui posted to my thread is how I got it working.
1 Like
RJG2
(RJG2)
May 13, 2019, 9:12am
6
I didn’t add my XML to the database because every use case of the Z-Uno is different. There is talk of adding support for dynamic channels in the future, but that’s probably a way off.
1 Like
5iver
(Scott Rushworth)
May 13, 2019, 9:25am
7
There’s no need to setup an IDE and build from source to update the XML…
**PLEASE don’t use this without also updating the device database ! As a community, we make the most progress when everyone contributes!**
I’ve seen several posts where people have made changes to the device database and they were eager to try out their new shiny gizmo, or wanted to test a change/fix an issue, before it was included in a build. Here is a method to update the zwave jar with a modified device Thing definition, without having to use an IDE to modify and compile the jar. This method…
3 Likes
M_I
(M I)
May 13, 2019, 12:26pm
8
It works like a charm. Many thanks! @sihui @RJG2 @5iver
What type of channel would you recommend to use for distance as an temp workaround?
I created Z-Uno HC-SR04 in Device database - www.cd-jackson.com but I used sensor_temperature what I think is not so suitable.
RJG2
(RJG2)
May 13, 2019, 3:03pm
9
Yeah, unfortunately temperature is probably your best bet, anything that’s a number will probably work.
You have me curious now though! What’s your use case for measuring distance for home automation?!
M_I
(M I)
May 13, 2019, 3:28pm
10
I need to know the level of a dirty-water basin instead of visual inspection, this will make my life much better, I will avoid smelling that dirty water basin