RFXTRX issue creating a working switch

Hi guys, first of all great tools create big problems when you don’t know how to use them.

Running openhab 2.4.0 stable on a raspberry pi 3b+

Z-Wave bindings and such all went really smooth, today I’ve started with the RTXTRX bindings and i have to so, I’m lost. I’ve got the transceiver working so that is good.

I’ve found an old Lighting1 COCO powersocket with remote in the shed and it was still working.

When i hit the remote in the paperUI a security item is added

SECURITY1-5313872

When pushing the on/off buttons the Status changes accordingly ALARM \ ARM_HOME

The Lighting1 device pops up in the inbox also as

LIGHTING1-L.8

I suppose that L.8 is the code/channel thing.

I have tried making a switch in the sitemap , but it does not do anything , like so :

in rfxtrx.things I have the following :

Bridge rfxcom:bridge:usb9999 [ serialPort="/dev/ttyUSB-9999" ] {
	Thing lighting1 buitenlamp1 [ deviceId="L.8", subType="COCO" ]
}

Added the switch to the items like so :

Switch RFXTRX_Buitenlamp_1 "Buitenlamp 1" {channel="rfxcom:lighting1:usb9999:buitenlamp1:command"}

added the item in the sitemap like so

	Text label="Tuin" icon="terrace" {
		Switch item=RFXTRX_Buitenlamp_1  icon="light"
	}

But clicking the switch does not do anything .

The logs say the following :

2019-10-05 23:47:59.825 [ome.event.ItemCommandEvent] - Item 'RFXTRX_Buitenlamp_1' received command ON
2019-10-05 23:47:59.838 [nt.ItemStatePredictedEvent] - RFXTRX_Buitenlamp_1 predicted to become ON
2019-10-05 23:47:59.851 [vent.ItemStateChangedEvent] - RFXTRX_Buitenlamp_1 changed from OFF to ON

But obviously nothing happens. could someone point me in the right direction to use the switch created in the sitemap to trigger the light to go on ?

– UPDATE :
added debug to the rfxcom :
output when hitting the ON button on the remote :

2019-10-06 17:05:33.554 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 0820006E5155500249, Packet type = SECURITY1, Seq number = 110, Sub type = X10_SECURITY, Device Id = 5330256, Status = ALARM, Battery level = 4, Signal level = 9
2019-10-06 17:05:33.562 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:usb9999 message: Raw data = 0820006E5155500249, Packet type = SECURITY1, Seq number = 110, Sub type = X10_SECURITY, Device Id = 5330256, Status = ALARM, Battery level = 4, Signal level = 9
2019-10-06 17:07:11.832 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 0820006F5115500249, Packet type = SECURITY1, Seq number = 111, Sub type = X10_SECURITY, Device Id = 5313872, Status = ALARM, Battery level = 4, Signal level = 9
2019-10-06 17:07:11.849 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:usb9999 message: Raw data = 0820006F5115500249, Packet type = SECURITY1, Seq number = 111, Sub type = X10_SECURITY, Device Id = 5313872, Status = ALARM, Battery level = 4, Signal level = 9
2019-10-06 17:07:11.943 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 082000705155500249, Packet type = SECURITY1, Seq number = 112, Sub type = X10_SECURITY, Device Id = 5330256, Status = ALARM, Battery level = 4, Signal level = 9
2019-10-06 17:07:11.959 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:usb9999 message: Raw data = 082000705155500249, Packet type = SECURITY1, Seq number = 112, Sub type = X10_SECURITY, Device Id = 5330256, Status = ALARM, Battery level = 4, Signal level = 9
2019-10-06 17:07:42.799 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:usb9999 message: Raw data = 082000755115500249, Packet type = SECURITY1, Seq number = 117, Sub type = X10_SECURITY, Device Id = 5313872, Status = ALARM, Battery level = 4, Signal level = 9
2019-10-06 17:07:42.893 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 082000765155500239, Packet type = SECURITY1, Seq number = 118, Sub type = X10_SECURITY, Device Id = 5330256, Status = ALARM, Battery level = 3, Signal level = 9
2019-10-06 17:07:42.902 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:usb9999 message: Raw data = 082000765155500239, Packet type = SECURITY1, Seq number = 118, Sub type = X10_SECURITY, Device Id = 5330256, Status = ALARM, Battery level = 3, Signal level = 9

and the OFF button :

2019-10-06 17:08:20.189 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 082000795155500249, Packet type = SECURITY1, Seq number = 121, Sub type = X10_SECURITY, Device Id = 5330256, Status = ALARM, Battery level = 4, Signal level = 9
2019-10-06 17:08:20.200 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:usb9999 message: Raw data = 082000795155500249, Packet type = SECURITY1, Seq number = 121, Sub type = X10_SECURITY, Device Id = 5330256, Status = ALARM, Battery level = 4, Signal level = 9
2019-10-06 17:08:20.892 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 0820007A5115500B49, Packet type = SECURITY1, Seq number = 122, Sub type = X10_SECURITY, Device Id = 5313872, Status = ARM_HOME, Battery level = 4, Signal level = 9
2019-10-06 17:08:20.904 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:usb9999 message: Raw data = 0820007A5115500B49, Packet type = SECURITY1, Seq number = 122, Sub type = X10_SECURITY, Device Id = 5313872, Status = ARM_HOME, Battery level = 4, Signal level = 9
2019-10-06 17:08:20.956 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 0820007B5155500249, Packet type = SECURITY1, Seq number = 123, Sub type = X10_SECURITY, Device Id = 5330256, Status = ALARM, Battery level = 4, Signal level = 9
2019-10-06 17:08:20.968 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:usb9999 message: Raw data = 0820007B5155500249, Packet type = SECURITY1, Seq number = 123, Sub type = X10_SECURITY, Device Id = 5330256, Status = ALARM, Battery level = 4, Signal level = 9
2019-10-06 17:08:21.643 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 0820007C5115500249, Packet type = SECURITY1, Seq number = 124, Sub type = X10_SECURITY, Device Id = 5313872, Status = ALARM, Battery level = 4, Signal level = 9
2019-10-06 17:08:21.654 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:usb9999 message: Raw data = 0820007C5115500249, Packet type = SECURITY1, Seq number = 124, Sub type = X10_SECURITY, Device Id = 5313872, Status = ALARM, Battery level = 4, Signal level = 9

Have you created a Things file and added the Bridge?
Example from doc’s:

Bridge rfxcom:bridge:usb0 [ serialPort="/dev/<device>" ] {
    Thing lighting2 100001_1 [ deviceId="100001.1", subType="AC" ]
}

Sorry yes I have, I’ve updated the question

I’ve attached a picture of the switch including remote

Logs for trasmitting and (?) receiving ?


==> /var/log/openhab2/openhab.log <==

2019-10-08 23:07:54.526 [vent.ItemStateChangedEvent] - RFXTRX_Buitenlamp_1 changed from OFF to ON

==> /var/log/openhab2/openhab.log <==
2019-10-08 23:07:54.526 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received channel: rfxcom:lighting1:usb9999:buitenlamp1:command, command: ON
2019-10-08 23:07:54.534 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Transmitting message 'Raw data = unknown, Packet type = LIGHTING1, Seq number = 0, Sub type = X10, Device Id = L.8, Command = ON, Signal level = 0'
2019-10-08 23:07:55.205 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 0402010000, Packet type = TRANSMITTER_MESSAGE, Seq number = 0, Sub type = RESPONSE, Response = ACK
2019-10-08 23:07:55.208 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Transmitter response received: Raw data = 0402010000, Packet type = TRANSMITTER_MESSAGE, Seq number = 0, Sub type = RESPONSE, Response = ACK

Looking at this last log it looks fine from the sending perspective but if no device is listening for that output nithing will happen. It sends something to the transmitter and received a confirmation for that.

Is all the output in the log from clicking once? Do you know what kind of device it is, did you look it up in the support matrix of the RFXCOM? I also have a non-standard kind of the device and in the end it appeared to be controllable with lighting 5. Mine was a fa500s.

Note that lighting5 can be send but not received so its a little bit harder to set up, but I ended up setting up a lighting 5 device and learning to that socket.