Hi, I have the same problem with mood controllers and also PIR motion detectors. I am using the snapshot build from 13 Mar 17.
I get the following error messages when hitting a mood button on the official lightwave remote control or mood controller switch:
12:00:21.855 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 0A140000F10F7E10030080, Packet type = LIGHTING5, Seq number = 0, Sub type = LIGHTWAVERF, Device Id = 15798142.16, Command = MOOD1, Dim level = 0, Signal level = 8
12:00:21.857 [TRACE] [scovery.RFXComDeviceDiscoveryService] - Received: bridge: rfxcom:bridge:usbrfx message: Raw data = 0A140000F10F7E10030080, Packet type = LIGHTING5, Seq number = 0, Sub type = LIGHTWAVERF, Device Id = 15798142.16, Command = MOOD1, Dim level = 0, Signal level = 8
12:00:21.859 [TRACE] [scovery.RFXComDeviceDiscoveryService] - Adding new RFXCOM rfxcom:lighting5:usbrfx:15798142_16 with id ‘15798142.16’ to smarthome inbox
12:00:21.873 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:usbrfx message: Raw data = 0A140000F10F7E10030080, Packet type = LIGHTING5, Seq number = 0, Sub type = LIGHTWAVERF, Device Id = 15798142.16, Command = MOOD1, Dim level = 0, Signal level = 8
12:00:21.878 [ERROR] [binding.rfxcom.handler.RFXComHandler] - Error occured during message receiving
org.openhab.binding.rfxcom.internal.exceptions.RFXComException: Can’t convert MOOD1 to SwitchItem
at org.openhab.binding.rfxcom.internal.messages.RFXComLighting5Message.convertToState(RFXComLighting5Message.java:311)[188:org.openhab.binding.rfxcom:2.1.0.201703131855]
at org.openhab.binding.rfxcom.handler.RFXComHandler.onDeviceMessageReceived(RFXComHandler.java:182)[188:org.openhab.binding.rfxcom:2.1.0.201703131855]
at org.openhab.binding.rfxcom.handler.RFXComBridgeHandler$MessageListener.packetReceived(RFXComBridgeHandler.java:398)[188:org.openhab.binding.rfxcom:2.1.0.201703131855]
at org.openhab.binding.rfxcom.internal.connector.RFXComBaseConnector.sendMsgToListeners(RFXComBaseConnector.java:49)[188:org.openhab.binding.rfxcom:2.1.0.201703131855]
at org.openhab.binding.rfxcom.internal.connector.RFXComStreamReader.run(RFXComStreamReader.java:103)[188:org.openhab.binding.rfxcom:2.1.0.201703131855]
I have the following .things and .items defined:
Bridge rfxcom:bridge:usbrfx [ serialPort="/dev/USBrfxcom" ] {
Thing lighting5 Li_FF_Bed1_Right_Dim [deviceId=“15798142.4”, subType=“LIGHTWAVERF”]
Thing lighting5 Li_FF_Bed1_Left_Dim [deviceId=“15798142.1”, subType=“LIGHTWAVERF”]
Thing lighting5 Li_FF_Bed1_Mood [deviceId=“15798142.16”, subType=“LIGHTWAVERF”]
}
Dimmer Li_FF_Bed1_Right_Dim “Right [%d %%]” (FF_Bed1) [“Lighting”] { channel=“rfxcom:lighting5:usbrfx:Li_FF_Bed1_Right_Dim:dimmingLevel” }
Switch Li_FF_Bed1_Right_Off “Right [%s]” (FF_Bed1) [“Lighting”] { channel=“rfxcom:lighting5:usbrfx:Li_FF_Bed1_Right_Dim:command” }
Dimmer Li_FF_Bed1_Left_Dim “Left [%d %%]” (FF_Bed1) [“Lighting”] { channel=“rfxcom:lighting5:usbrfx:Li_FF_Bed1_Left_Dim:dimmingLevel” }
Switch Li_FF_Bed1_Left_Off “Left [%s]” (FF_Bed1) [“Lighting”] { channel=“rfxcom:lighting5:usbrfx:Li_FF_Bed1_Left_Dim:command” }
Number Li_FF_Bed1_Mood “Mood [%s]” (FF_Bed) [“Lighting”] { channel=“rfxcom:lighting5:usbrfx:Li_FF_Bed1_Mood:mood” }
I also get a similar message when trying the power button on the remote:
12:06:47.092 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 0A140001F10F7E01000070, Packet type = LIGHTING5, Seq number = 1, Sub type = LIGHTWAVERF, Device Id = 15798142.1, Command = OFF, Dim level = 0, Signal level = 7
12:06:47.095 [TRACE] [scovery.RFXComDeviceDiscoveryService] - Received: bridge: rfxcom:bridge:usbrfx message: Raw data = 0A140001F10F7E01000070, Packet type = LIGHTING5, Seq number = 1, Sub type = LIGHTWAVERF, Device Id = 15798142.1, Command = OFF, Dim level = 0, Signal level = 7
12:06:47.096 [TRACE] [scovery.RFXComDeviceDiscoveryService] - Adding new RFXCOM rfxcom:lighting5:usbrfx:15798142_1 with id ‘15798142.1’ to smarthome inbox
12:06:47.104 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:usbrfx message: Raw data = 0A140001F10F7E01000070, Packet type = LIGHTING5, Seq number = 1, Sub type = LIGHTWAVERF, Device Id = 15798142.1, Command = OFF, Dim level = 0, Signal level = 7
12:06:47.120 [ERROR] [binding.rfxcom.handler.RFXComHandler] - Error occured during message receiving
org.openhab.binding.rfxcom.internal.exceptions.RFXComException: Unexpected mood: OFF
at org.openhab.binding.rfxcom.internal.messages.RFXComLighting5Message.convertToState(RFXComLighting5Message.java:278)[188:org.openhab.binding.rfxcom:2.1.0.201703131855]
at org.openhab.binding.rfxcom.handler.RFXComHandler.onDeviceMessageReceived(RFXComHandler.java:214)[188:org.openhab.binding.rfxcom:2.1.0.201703131855]
at org.openhab.binding.rfxcom.handler.RFXComBridgeHandler$MessageListener.packetReceived(RFXComBridgeHandler.java:398)[188:org.openhab.binding.rfxcom:2.1.0.201703131855]
at org.openhab.binding.rfxcom.internal.connector.RFXComBaseConnector.sendMsgToListeners(RFXComBaseConnector.java:49)[188:org.openhab.binding.rfxcom:2.1.0.201703131855]
at org.openhab.binding.rfxcom.internal.connector.RFXComStreamReader.run(RFXComStreamReader.java:103)[188:org.openhab.binding.rfxcom:2.1.0.201703131855]
I also have a couple of LightwaveRF PIR motion detectors set up and they also trigger an “Unexpected mood” message as above for both ON and OFF state changes.
I’m not a developer but it seems like the binding is not parsing the raw data of the command correctly for these inputs? If so would someone be able to investigate and correct this please?
Or maybe there is something wrong with my item definitions and their links?
The controllers all do their jobs, and Openhab can control all items correctly by sending commands, but cannot interpret and update state of items when intercepting the lightwave remote commands.
I had similar code and setup without similar issues under the 1.x binding but no longer have that system to test on, nor does RFXCOM show up as a legacy binding in Paper UI so I’m not sure how to selectively go back to this. My current RFXCOM bundle version is 2.1.0.201703131855.
Many thanks.