I did get it working initially. I recently added an additional zen31 controller and I had problems getting that one to work. Not sure if something changed in the more recent versions or if I did something slightly differently. I haven’t had time to really dig into it but from what I could tell, I had the thing/items configured exactly the same way as the others but it doesn’t respond to the raw channel.
@chris Somehow this still doesn’t work. Any idea what’s going on?
I am sending the csv-commands to the color_raw1
channel of a Fibaro RGBW2 dimmer.
*.items file
String RGBW2_RAW {channel = "zwave:device:controller:node44:color_raw1", autoupdate="False"}
Color RGBW2_Color {channel = "zwave:device:controller:node44:color_color1", autoupdate="False"}
Number RGBW2_Power {channel = "zwave:device:controller:node44:meter_watts1", autoupdate="False"}
If I send normal color commands everything works as expected:
2022-08-30 10:34:19.869 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RGBW2_Color' received command 240,100,100
2022-08-30 10:34:23.693 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RGBW2_Power' changed from NULL to 0
2022-08-30 10:34:23.972 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RGBW2_Color' changed from NULL to 0,0,54
2022-08-30 10:34:25.083 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RGBW2_Color' changed from 0,0,54 to 230,100,100
2022-08-30 10:34:38.720 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RGBW2_Color' received command 240,100,0
2022-08-30 10:34:40.022 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RGBW2_Color' changed from 230,100,100 to 240,100,48
2022-08-30 10:34:41.471 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RGBW2_Color' changed from 240,100,48 to 240,100,0
2022-08-30 10:34:42.542 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RGBW2_Color' changed from 240,100,0 to 0,0,0
However sending the raw commands results in no change at all!
2022-08-30 10:34:50.438 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RGBW2_RAW' received command red=100
2022-08-30 10:34:58.528 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RGBW2_RAW' received command red=100,level=100
In the xml are the corresponding entries:
<supportedColors>
<colorType>WARM_WHITE</colorType>
<colorType>RED</colorType>
<colorType>GREEN</colorType>
<colorType>BLUE</colorType>
<colorType>AMBER</colorType>
</supportedColors>
<refreshList/>
<colorMap>
<entry>
<colorType>WARM_WHITE</colorType>
<null/>
</entry>
<entry>
<colorType>RED</colorType>
<int>0</int>
</entry>
<entry>
<colorType>GREEN</colorType>
<int>64</int>
</entry>
<entry>
<colorType>BLUE</colorType>
<null/>
</entry>
<entry>
<colorType>AMBER</colorType>
<null/>
</entry>
</colorMap>
What am I missing?
What commands are you sending? Please provide a log file - it’s difficult to comment without seeing a log as I don’t know what you are sending, or what is happening in the converter.
Note that I’m about to leave for Africa so will have no internet for the next 2 weeks - I’ll then be in the UK or a couple of weeks before getting home at the end of September so I’ll likely. not get the chance to look too much at this until then.
That’s what I’ve attached. I send the string through the RestAPI.
E.g.
curl -X 'POST' \
'http://192.168.0.15:8080/rest/items/RGBW2_RAW' \
-H 'accept: */*' \
-H 'Content-Type: text/plain' \
-H 'Authorization: Bearer ....' \
-d 'RED=100,GREEN=100,BLUE=100'
event.log
Item 'RGBW2_RAW' received command red=100
Item 'RGBW2_RAW' received command red=100,level=100
Sorry - I don’t see any attachment?
Sorry - I thought you ment the event.log but clearly you ment the zwave.log
2022-08-30 10:34:50.448 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 44: Command received zwave:device:controller:node44:color_raw1 --> red=100 [StringType]
2022-08-30 10:34:50.449 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 44: Command for unknown channel zwave:device:controller:node44:color_raw1 with StringType
2022-08-30 10:34:58.534 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 44: Command received zwave:device:controller:node44:color_raw1 --> red=100,level=100 [StringType]
2022-08-30 10:34:58.534 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 44: Command for unknown channel zwave:device:controller:node44:color_raw1 with StringType
2022-08-30 10:35:11.185 [DEBUG] [WaveSerialHandler$ZWaveReceiveThread] - Receive Message = 01 14 00 04 00 2C 0E 60 0D 01 01 32 02 21 32 00 00 00 00 00 00 83
2022-08-30 10:35:11.185 [DEBUG] [nal.protocol.ZWaveTransactionManager] - processReceiveMessage input 0<>128 : Message: class=ApplicationCommandHandler[4], type=Request[0], dest=44, callback=0, payload=00 2C 0E 60 0D 01 01 32 02 21 32 00 00 00 00 00 00
2022-08-30 10:35:11.186 [DEBUG] [nal.protocol.ZWaveTransactionManager] - Received msg (0): Message: class=ApplicationCommandHandler[4], type=Request[0], dest=44, callback=0, payload=00 2C 0E 60 0D 01 01 32 02 21 32 00 00 00 00 00 00
2022-08-30 10:35:11.186 [DEBUG] [nal.protocol.ZWaveTransactionManager] - lastTransaction null
2022-08-30 10:35:11.186 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 44: Application Command Request (ALIVE:DONE)
2022-08-30 10:35:11.186 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 44: resetResendCount initComplete=true isDead=false
2022-08-30 10:35:11.186 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 44: Decapsulating COMMAND_CLASS_MULTI_CHANNEL
2022-08-30 10:35:11.186 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 44: Incoming command class COMMAND_CLASS_METER, endpoint 1
2022-08-30 10:35:11.186 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 44: SECURITY NOT required on COMMAND_CLASS_METER
2022-08-30 10:35:11.186 [DEBUG] [tocol.commandclass.ZWaveCommandClass] - NODE 44: Received COMMAND_CLASS_METER V3 METER_REPORT
2022-08-30 10:35:11.187 [DEBUG] [.commandclass.ZWaveMeterCommandClass] - NODE 44: Meter: Type=Electric(1), Scale=W(2), Value=0E+1
2022-08-30 10:35:11.187 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 44: Got an event from Z-Wave network: ZWaveMeterValueEvent
2022-08-30 10:35:11.187 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 44: Got a value event from Z-Wave network, endpoint=1, command class=COMMAND_CLASS_METER, value=0E+1
2022-08-30 10:35:11.187 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 44: Updating channel state zwave:device:controller:node44:meter_watts1 to 0 [DecimalType]
2022-08-30 10:35:11.187 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 44: Commands processed 1.
2022-08-30 10:35:11.187 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 44: Checking command org.openhab.binding.zwave.internal.protocol.ZWaveCommandClassPayload@16fa6c91.
There seems to be an issue with the channel, even though I’ve removed and re-added the thing this week. The channel is also shown in the GUI.
NODE 44: Command received zwave:device:controller:node44:color_raw1 --> red=100,level=100 [StringType]
Yes, the event log is pretty much useless for debugging a binding as it has absolutely no information at all about the binding. The debug log is absolutely required for debugging this.
The issue is with the exporter - I’ve updated it and will try and do an export before I leave tomorrow.
Have you managed to do an update? How could I test if it was successful?
I think it was probably updated, but I don’t really recall as I have spent the immediate 4 weeks after this in Africa and Europe. Try it and see.
I checked in on this today and I’m seeing the same unknown channel log. I have 3 of these controllers and 2 are working and one is not. The one that is not working is one that I setup later.
2022-11-05 07:31:30.371 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 22: Command received zwave:device:zwavecontroller:node22:switch_dimmer5 --> 71 [PercentType]
2022-11-05 07:31:30.372 [DEBUG] [ss.ZWaveMultiLevelSwitchCommandClass] - NODE 22: Creating new message for command SWITCH_MULTILEVEL_SET
2022-11-05 07:31:30.372 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 22: Encapsulating message, instance / endpoint 5
2022-11-05 07:31:30.373 [DEBUG] [class.ZWaveMultiInstanceCommandClass] - NODE 22: Creating new message for command MULTI_CHANNEL_ENCAP endpoint 5
2022-11-05 07:31:30.373 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 22: SECURITY NOT required on COMMAND_CLASS_MULTI_CHANNEL
2022-11-05 07:31:30.373 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 22: Command Class COMMAND_CLASS_MULTI_CHANNEL is NOT required to be secured
2022-11-05 07:31:30.374 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 22: Adding to device queue
2022-11-05 07:31:30.374 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 22: Added 1410 to queue - size 3
2022-11-05 07:31:30.407 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 22: Command received zwave:device:zwavecontroller:node22:color_raw1 --> red=0,green=0,blue=0,level=100 [StringType]
2022-11-05 07:31:30.407 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 22: Command for unknown channel zwave:device:zwavecontroller:node22:color_raw1 with StringType
2022-11-05 07:31:30.440 [DEBUG] [ing.zwave.handler.ZWaveSerialHandler] - NODE 22: Sending REQUEST Message = 01 0E 00 13 16 07 60 0D 01 05 26 01 47 25 54 8B
2022-11-05 07:31:30.452 [DEBUG] [l.serialmessage.SendDataMessageClass] - NODE 22: sentData successfully placed on stack.
2022-11-05 07:31:30.453 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 22: TID 1410: Transaction not completed
2022-11-05 07:31:30.470 [DEBUG] [l.serialmessage.SendDataMessageClass] - NODE 22: SendData Request. CallBack ID = 84, Status = Transmission complete and ACK received(0)
2022-11-05 07:31:30.471 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 22: resetResendCount initComplete=true isDead=false
2022-11-05 07:31:30.472 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 22: Response processed after 31ms
2022-11-05 07:31:30.472 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 22: TID 1410: Transaction completed
2022-11-05 07:31:30.473 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 22: notifyTransactionResponse TID:1410 DONE
2022-11-05 07:31:30.473 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 22: Got an event from Z-Wave network: ZWaveTransactionCompletedEvent
2022-11-05 07:31:36.074 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 22: Application Command Request (ALIVE:DONE)
2022-11-05 07:31:36.075 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 22: resetResendCount initComplete=true isDead=false
2022-11-05 07:31:36.075 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 22: Decapsulating COMMAND_CLASS_MULTI_CHANNEL
2022-11-05 07:31:36.076 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 22: Incoming command class COMMAND_CLASS_METER, endpoint 1
2022-11-05 07:31:36.076 [DEBUG] [ng.zwave.internal.protocol.ZWaveNode] - NODE 22: SECURITY NOT required on COMMAND_CLASS_METER
2022-11-05 07:31:36.077 [DEBUG] [tocol.commandclass.ZWaveCommandClass] - NODE 22: Received COMMAND_CLASS_METER V3 METER_REPORT
2022-11-05 07:31:36.077 [DEBUG] [.commandclass.ZWaveMeterCommandClass] - NODE 22: Meter: Type=Electric(1), Scale=W(2), Value=5.9
2022-11-05 07:31:36.078 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 22: Got an event from Z-Wave network: ZWaveMeterValueEvent
2022-11-05 07:31:36.078 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 22: Got a value event from Z-Wave network, endpoint=1, command class=COMMAND_CLASS_METER, value=5.9
2022-11-05 07:31:36.079 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 22: Updating channel state zwave:device:zwavecontroller:node22:meter_watts1 to 5.9 [DecimalType]
2022-11-05 07:31:36.080 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 22: Commands processed 1.
2022-11-05 07:31:36.080 [DEBUG] [nal.protocol.ZWaveTransactionManager] - NODE 22: Checking command org.openhab.binding.zwave.internal.protocol.ZWaveCommandClassPayload@1569cd3.
Is there a chance to add the same feature to FGRGBW-441 (the first version of Fibaro RGBW Controller)?
I believe it’s all about database, but probably I’m not the one who can do anything there.
Edit:
I just did it in a stupid way:
- got the org.openhab.binding.zwave-4.0.0.jar out of repository
- using 7-zip browse to *OH-INF\thing\fibaro* and edit file fgrgbw_0_0.xml adding:
<channel id="color_raw1" typeId="color_raw">
<label>Color Raw</label>
<properties>
<property name="binding:*:StringType">COMMAND_CLASS_SWITCH_COLOR</property>
</properties>
</channel>
- upload changed .jar file to /usr/share/openhab/addons directory
- remove and install again z-wave binding (not sure if necessary)
- remove item and add it back using jar:binding-zwave (not sure if makes difference, but the original binding is still there and has no jar: at the beginning)
- profit!
Can anyone do this the right way?