Interest in a homeduino binding

That is an empty message, so I can understand that the homeduino does not support that.

I see that I actually only implemented the receiving protocols except for switch1 I didn’t work on it for too long :grimacing:

More work to do

If anyone finds problems in receiving please report it.

Sending is for now only supported for switch1

If i could help anyway - tell me.

Intensively testing the receiving is the most essential thing which is possible now, do your unitcode / id’s match? If not give me details of the received value (like your latest message) and what you exactly expect it to be mapped to.

Or if you can code Java you can take a look at adding the decode for switch2

I will focus on making the sending work (hopefully adding some tests to the code as well)

I think its wisest to focus first on of having this limit support working good and correct before adding other protocols.

Sorry - no experience in Java-Coding. :frowning:

I am software-developer with 25 years experience in database software dev. like Clipper and Alaska-Xbase++. How can i take a look at the source-code and which environment could i use to take a “sniff”?

What exact do you want know with “do your unitcode / id’s match?” - where should i look?

Did you use your devices also with pimatic or something like that?

Do the devices in the inbox show the same identifiers as they do in pimatic? Or anywhere else where you used them before?

The repo location: openhab2-addons/addons/binding/org.openhab.binding.homeduino at feature/homeduino · martinvw/openhab2-addons · GitHub

Did you use your devices also with pimatic or something like that?

Yes, i used them with pimatic and they worked.

Do the devices in the inbox show the same identifiers as they do in pimatic? Or anywhere else where you used them before?

I can’t say that, because my old pimatic-sd is not working.

Then that is up to someone else, I’ll keep you posted about other progress.

Hello Martin, thank you for your work. Here is my feedback to the tests with switch 2 with your actual Snapshot:

Inbox results after pressing the remote:

I selected switch 2 (pimatic protocol: switch 2, houseCode 31, UnitCode 16), created thing and items (command and contact). The status of the switch on the control site runs (pressing the remote) much faster than yesterday (very good in my opinion). Karaf shows the following during remote switching:
switching on:

19:55:13.731 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH2815_Command changed from OFF to ON
19:55:13.740 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH2815_Contact changed from CLOSED to OPEN
19:55:13.872 [WARN ] [al.messages.homeduino.Switch2Message] - state: 1
19:55:13.874 [WARN ] [al.messages.homeduino.Switch2Message] - Id: 8
19:55:13.876 [WARN ] [al.messages.homeduino.Switch2Message] - Unitcode: 15
19:55:14.030 [WARN ] [al.messages.homeduino.Switch2Message] - state: 1
19:55:14.032 [WARN ] [al.messages.homeduino.Switch2Message] - Id: 8
19:55:14.034 [WARN ] [al.messages.homeduino.Switch2Message] - Unitcode: 15
19:55:14.188 [WARN ] [al.messages.homeduino.Switch2Message] - state: 1
19:55:14.190 [WARN ] [al.messages.homeduino.Switch2Message] - Id: 0
19:55:14.191 [WARN ] [al.messages.homeduino.Switch2Message] - Unitcode: 15

switching off:

19:56:02.692 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH2815_Command changed from ON to OFF
19:56:02.699 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH2815_Contact changed from OPEN to CLOSED
19:56:02.827 [WARN ] [al.messages.homeduino.Switch2Message] - state: 0
19:56:02.831 [WARN ] [al.messages.homeduino.Switch2Message] - Id: 8
19:56:02.835 [WARN ] [al.messages.homeduino.Switch2Message] - Unitcode: 15
19:56:02.986 [WARN ] [al.messages.homeduino.Switch2Message] - state: 1
19:56:02.988 [WARN ] [al.messages.homeduino.Switch2Message] - Id: 0
19:56:02.992 [WARN ] [al.messages.homeduino.Switch2Message] - Unitcode: 15
19:56:08.927 [WARN ] [al.messages.homeduino.Switch2Message] - state: 0
19:56:08.931 [WARN ] [al.messages.homeduino.Switch2Message] - Id: 8
19:56:08.935 [WARN ] [al.messages.homeduino.Switch2Message] - Unitcode: 15
19:56:09.084 [WARN ] [al.messages.homeduino.Switch2Message] - state: 0
19:56:09.087 [WARN ] [al.messages.homeduino.Switch2Message] - Id: 8
19:56:09.088 [WARN ] [al.messages.homeduino.Switch2Message] - Unitcode: 15

switching over the paper ui control panel:
switching on:

19:57:07.837 [ERROR] [duino.handler.HomeduinoBridgeHandler] - Command transmit failed, 'ERR' received
19:57:07.842 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'SWITCH2815_Command' received command ON
19:57:07.851 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH2815_Command changed from OFF to ON

switching off:

19:58:10.642 [ERROR] [duino.handler.HomeduinoBridgeHandler] - Command transmit failed, 'ERR' received
19:58:10.652 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'SWITCH2815_Command' received command OFF
19:58:10.667 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH2815_Command changed from ON to OFF

I can not find any comparison with my pimatic settings (accept the protocol switch 2).

The pir1 sensor was not found by the autodetection and I don’t have the information for the device id I need for manual configuration of the thing.

I hope these informations helps you.

Looking forward to a great new binding!

If you could enable debug mode we should able to see whether the device receive any data which could potentially be matched to pir1

See: http://docs.openhab.org/administration/logging.html

log:set DEBUG org.openhab.binding.homeduino

I looked up the test-cases of rfcontrol-js and found the problems with the id / unit code.

Sending is not yet build, need some more time to construct that.

I added sending for switch2, please take a look whether it seems to make sense.

There might be some offset problems in sending vs receiving, so if it fails, try changing “25.16” to e.g “24.16” or “25.17” please report on this mapping.

outdated download

Hi Martin, I will take a look at the evening and give you a feedback.

Have a nice day!

Hi Martin,
i hope this helps a little. I deleted all 433-things and press on the remotecontroller the button “ON” and then “OFF”. This is the result in the log:

13:18:01.957 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 524620726563656976652033323820393238203937313220302030203020302030203031313030313031303131303031303130313031303130313031313030313130303131303031313030313031303131303032 13:18:01.959 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage@16a860e 13:18:01.966 [INFO ] [smarthome.event.InboxAddedEvent ] - Discovery Result with UID 'homeduino:switch2:b7648a0e:16_11' has been added. 13:18:01.966 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'homeduino:switch2:b7648a0e:16_11' to inbox. 13:18:01.974 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'homeduino:switch4:b7648a0e:16_11' to inbox. 13:18:01.976 [INFO ] [smarthome.event.InboxAddedEvent ] - Discovery Result with UID 'homeduino:switch4:b7648a0e:16_11' has been added. 13:18:01.982 [INFO ] [smarthome.event.InboxAddedEvent ] - Discovery Result with UID 'homeduino:pir1:b7648a0e:16_11' has been added. 13:18:01.982 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'homeduino:pir1:b7648a0e:16_11' to inbox. 13:18:04.318 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 524620726563656976652033323820393238203937313220302030203020302030203031313030313031303131303031303130313031303130313031313030313130303131303031313030313130303130313032 13:18:04.321 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage@1240e97 13:18:04.478 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 524620726563656976652033313220393434203937333620302030203020302030203031313030313031303131303031303130313031303131303031313030313130303131303031313031303130313031303032 13:18:04.480 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage@e45990 13:18:04.483 [ERROR] [l.connector.HomeduinoSerialConnector] - Event listener invoking error java.lang.NullPointerException at org.openhab.binding.homeduino.internal.messages.homeduino.Switch2Message$Protocol.process(Switch2Message.java:79)[225:org.openhab.binding.homeduino:2.1.0.201702092313] at org.openhab.binding.homeduino.internal.messages.homeduino.HomeduinoProtocol.process(HomeduinoProtocol.java:218)[225:org.openhab.binding.homeduino:2.1.0.201702092313] at org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage.getInterpretations(HomeduinoEventMessage.java:68)[225:org.openhab.binding.homeduino:2.1.0.201702092313] at org.openhab.binding.homeduino.handler.HomeduinoBridgeHandler$HomeduinoMessageListener.packetReceived(HomeduinoBridgeHandler.java:234)[225:org.openhab.binding.homeduino:2.1.0.201702092313] at org.openhab.binding.homeduino.internal.connector.HomeduinoSerialConnector.sendMsgToListeners(HomeduinoSerialConnector.java:162)[225:org.openhab.binding.homeduino:2.1.0.201702092313] at org.openhab.binding.homeduino.internal.connector.HomeduinoStreamReader.run(HomeduinoStreamReader.java:92)[225:org.openhab.binding.homeduino:2.1.0.201702092313] 1

there where three things in the inbox.

When i try to switch via the control-section, i get this result:

13:23:52.857 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'SWITCH21611_Command' received command OFF 13:23:52.865 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch2:b7648a0e:16_11:command, command: OFF 13:23:52.870 [DEBUG] [l.connector.HomeduinoSerialConnector] - Sending message: RF send 4 3 306 957 9808 0 0 0 0 0 01010110011001100110011001010110010101010110010102 13:23:53.006 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 41434B 13:23:53.008 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoAcknowledgementMessage@31e505 13:23:53.009 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Response received: org.openhab.binding.homeduino.internal.messages.HomeduinoAcknowledgementMessage@31e505 13:23:53.010 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Command successfully transmitted, 'ACK' received 13:23:53.016 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH21611_Command changed from ON to OFF 13:23:55.197 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'SWITCH21611_Command' received command ON 13:23:55.206 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch2:b7648a0e:16_11:command, command: ON 13:23:55.210 [DEBUG] [l.connector.HomeduinoSerialConnector] - Sending message: RF send 4 3 306 957 9808 0 0 0 0 0 01010110011001100110011001010110010101010101011002 13:23:55.347 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 41434B 13:23:55.349 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoAcknowledgementMessage@176adae 13:23:55.350 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Response received: org.openhab.binding.homeduino.internal.messages.HomeduinoAcknowledgementMessage@176adae 13:23:55.352 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Command successfully transmitted, 'ACK' received 13:23:55.361 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH21611_Command changed from OFF to ON 13:23:57.549 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'SWITCH41611_Command' received command OFF 13:23:57.558 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch4:b7648a0e:16_11:command, command: OFF 13:23:57.561 [DEBUG] [l.connector.HomeduinoSerialConnector] - Sending message: null 13:23:57.570 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 45525220756E6B6E6F776E5F636F6D6D616E64 13:23:57.572 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoErrorMessage@65da6a 13:23:57.574 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Response received: org.openhab.binding.homeduino.internal.messages.HomeduinoErrorMessage@65da6a 13:23:57.575 [ERROR] [duino.handler.HomeduinoBridgeHandler] - Command transmit failed, 'ERR' received 13:23:57.582 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH41611_Command changed from ON to OFF 13:23:59.437 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'SWITCH41611_Command' received command ON 13:23:59.452 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch4:b7648a0e:16_11:command, command: ON 13:23:59.455 [DEBUG] [l.connector.HomeduinoSerialConnector] - Sending message: null 13:23:59.463 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 45525220756E6B6E6F776E5F636F6D6D616E64 13:23:59.465 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoErrorMessage@151651f 13:23:59.466 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Response received: org.openhab.binding.homeduino.internal.messages.HomeduinoErrorMessage@151651f 13:23:59.468 [ERROR] [duino.handler.HomeduinoBridgeHandler] - Command transmit failed, 'ERR' received 13:23:59.475 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH41611_Command changed from OFF to ON

But no real response from the switch.

The housecode / unit code where switched somewhere between sending and receiving, it should be improved now.

outdated download

Every failure leads to news tests which stay in next to the code, so you’re helping me out in a great way.

Thanks for being a tester :blush:

1 Like

Here are the results when using the remotecontroller:

17:35:41.438 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 524620726563656976652033323420393332203937323420302030203020302030203031313030313031303131303031303130313031303130313031313030313130303131303031313030313031303131303032 17:35:41.448 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage@e0658 17:35:41.458 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'homeduino:switch2:b7648a0e:11_16' to inbox. 17:35:41.463 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'homeduino:switch4:b7648a0e:16_11' to inbox. 17:35:41.464 [INFO ] [smarthome.event.InboxAddedEvent ] - Discovery Result with UID 'homeduino:switch2:b7648a0e:11_16' has been added. 17:35:41.467 [INFO ] [smarthome.event.InboxAddedEvent ] - Discovery Result with UID 'homeduino:switch4:b7648a0e:16_11' has been added. 17:35:41.469 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'homeduino:pir1:b7648a0e:16_11' to inbox. 17:35:41.471 [INFO ] [smarthome.event.InboxAddedEvent ] - Discovery Result with UID 'homeduino:pir1:b7648a0e:16_11' has been added. 17:35:41.598 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 524620726563656976652033313220393434203937343020302030203020302030203031313030313031303131303031303130313031303131303031313030313130303131303031313031303130313031303032 17:35:41.600 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage@7ef30e 17:35:41.607 [ERROR] [l.connector.HomeduinoSerialConnector] - Event listener invoking error java.lang.NullPointerException at org.openhab.binding.homeduino.internal.messages.homeduino.Switch2Message$Protocol.process(Switch2Message.java:79)[227:org.openhab.binding.homeduino:2.1.0.201702101614] at org.openhab.binding.homeduino.internal.messages.homeduino.HomeduinoProtocol.process(HomeduinoProtocol.java:218)[227:org.openhab.binding.homeduino:2.1.0.201702101614] at org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage.getInterpretations(HomeduinoEventMessage.java:68)[227:org.openhab.binding.homeduino:2.1.0.201702101614] at org.openhab.binding.homeduino.handler.HomeduinoBridgeHandler$HomeduinoMessageListener.packetReceived(HomeduinoBridgeHandler.java:234)[227:org.openhab.binding.homeduino:2.1.0.201702101614] at org.openhab.binding.homeduino.internal.connector.HomeduinoSerialConnector.sendMsgToListeners(HomeduinoSerialConnector.java:162)[227:org.openhab.binding.homeduino:2.1.0.201702101614] at org.openhab.binding.homeduino.internal.connector.HomeduinoStreamReader.run(HomeduinoStreamReader.java:92)[227:org.openhab.binding.homeduino:2.1.0.201702101614] 17:35:42.921 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'zwave:device:bba9ab40:node4' changed from ONLINE: Node initialising: WAIT to ONLINE 17:35:42.958 [WARN ] [l.serialmessage.SendDataMessageClass] - NODE 4: Already processed another send data request for this callback Id, ignoring. 17:35:44.652 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 524620726563656976652033323820393238203937323420302030203020302030203031313030313031303131303031303130313031303130313031313030313130303131303031313030313130303130313032 17:35:44.654 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage@1c766a5 17:35:44.817 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 524620726563656976652033313620393430203937333620302030203020302030203031313030313031303131303031303130313031303131303031313030313130303131303031313031303130313031303032 17:35:44.820 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage@4f1960 17:35:44.823 [ERROR] [l.connector.HomeduinoSerialConnector] - Event listener invoking error java.lang.NullPointerException at org.openhab.binding.homeduino.internal.messages.homeduino.Switch2Message$Protocol.process(Switch2Message.java:79)[227:org.openhab.binding.homeduino:2.1.0.201702101614] at org.openhab.binding.homeduino.internal.messages.homeduino.HomeduinoProtocol.process(HomeduinoProtocol.java:218)[227:org.openhab.binding.homeduino:2.1.0.201702101614] at org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage.getInterpretations(HomeduinoEventMessage.java:68)[227:org.openhab.binding.homeduino:2.1.0.201702101614] at org.openhab.binding.homeduino.handler.HomeduinoBridgeHandler$HomeduinoMessageListener.packetReceived(HomeduinoBridgeHandler.java:234)[227:org.openhab.binding.homeduino:2.1.0.201702101614] at org.openhab.binding.homeduino.internal.connector.HomeduinoSerialConnector.sendMsgToListeners(HomeduinoSerialConnector.java:162)[227:org.openhab.binding.homeduino:2.1.0.201702101614] at org.openhab.binding.homeduino.internal.connector.HomeduinoStreamReader.run(HomeduinoStreamReader.java:92)[227:org.openhab.binding.homeduino:2.1.0.201702101614] 17:35:46.546 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 524620726563656976652033323420393332203937323420302030203020302030203031313030313031303131303031303130313031303130313031313030313130303131303031313030313031303131303032 17:35:46.548 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage@17a90eb 17:35:48.001 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 524620726563656976652033323420393332203937323420302030203020302030203031313030313031303131303031303130313031303130313031313030313130303131303031313030313130303130313032 17:35:48.002 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage@13104d7 17:35:48.742 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Checking Homeduino transceiver connection, thing status = ONLINE

BUT in the control center it works!!

17:39:28.684 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch2:b7648a0e:11_16:command, command: ON 17:39:28.687 [DEBUG] [l.connector.HomeduinoSerialConnector] - Sending message: RF send 4 3 306 957 9808 0 0 0 0 0 01100101011001010101010101100110011001100101011002 17:39:28.825 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 41434B 17:39:28.827 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoAcknowledgementMessage@12c44e1 17:39:28.829 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Response received: org.openhab.binding.homeduino.internal.messages.HomeduinoAcknowledgementMessage@12c44e1 17:39:28.832 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Command successfully transmitted, 'ACK' received 17:39:28.839 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'SWITCH21116_Command' received command ON 17:39:28.847 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH21116_Command changed from OFF to ON 17:39:30.621 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch2:b7648a0e:11_16:command, command: OFF 17:39:30.624 [DEBUG] [l.connector.HomeduinoSerialConnector] - Sending message: RF send 4 3 306 957 9808 0 0 0 0 0 01100101011001010101010101100110011001100110010102 17:39:30.763 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 41434B 17:39:30.766 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoAcknowledgementMessage@a888cd 17:39:30.768 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Response received: org.openhab.binding.homeduino.internal.messages.HomeduinoAcknowledgementMessage@a888cd 17:39:30.770 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Command successfully transmitted, 'ACK' received 17:39:30.778 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'SWITCH21116_Command' received command OFF 17:39:30.787 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH21116_Command changed from ON to OFF

Great work - thanks!

Can it be that you used to use the protocol switch5 because the message which causes the null-pointer is not compatible with either switch1,2,3 or 4 but it is with switch5.

A new version which also supports switch4 (and less cryptic logging):
outdated download

Do you mean your light actually switch… (if so Hooray)

Yes Hooray - switch2 is working!

I have no switch5 devices - i think!

I only use one remotecontrol for one switch.

Yippiiiiiiiii Switch 2 is running!!! Great work Martin!!!

I have added 3 switch2 switches with the following results:

20:17:09.176 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'BeleuchtungTV_Command' received command OFF
20:17:09.181 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch2:4ea8812e:31_8:command, command: OFF
20:17:09.184 [DEBUG] [l.connector.HomeduinoSerialConnector] - Sending message: RF send 4 3 306 957 9808 0 0 0 0 0 01010101010101010101011001010110011001100110010102
20:17:09.321 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 41434B
20:17:09.322 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (HOMEDUINO_ACK): ACK
20:17:09.323 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Response received: org.openhab.binding.homeduino.internal.messages.HomeduinoAcknowledgementMessage@39a246
20:17:09.326 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Command successfully transmitted, 'ACK' received
20:17:09.330 [INFO ] [marthome.event.ItemStateChangedEvent] - BeleuchtungTV_Command changed from ON to OFF
20:17:10.468 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'BeleuchtungRegal_Command' received command OFF
20:17:10.470 [INFO ] [marthome.event.ItemStateChangedEvent] - BeleuchtungRegal_Command changed from ON to OFF
20:17:10.471 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch2:4ea8812e:31_16:command, command: OFF
20:17:10.473 [DEBUG] [l.connector.HomeduinoSerialConnector] - Sending message: RF send 4 3 306 957 9808 0 0 0 0 0 01010101010101010101010101100110011001100110010102
20:17:10.609 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 41434B
20:17:10.610 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (HOMEDUINO_ACK): ACK
20:17:10.611 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Response received: org.openhab.binding.homeduino.internal.messages.HomeduinoAcknowledgementMessage@1bec751
20:17:10.613 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Command successfully transmitted, 'ACK' received
20:17:15.506 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'BeleuchtungRegal_Command' received command ON
20:17:15.509 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch2:4ea8812e:31_16:command, command: ON
20:17:15.513 [DEBUG] [l.connector.HomeduinoSerialConnector] - Sending message: RF send 4 3 306 957 9808 0 0 0 0 0 01010101010101010101010101100110011001100101011002
20:17:15.650 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 41434B
20:17:15.652 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (HOMEDUINO_ACK): ACK
20:17:15.653 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Response received: org.openhab.binding.homeduino.internal.messages.HomeduinoAcknowledgementMessage@be8acd
20:17:15.659 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Command successfully transmitted, 'ACK' received
20:17:15.667 [INFO ] [marthome.event.ItemStateChangedEvent] - BeleuchtungRegal_Command changed from OFF to ON
20:17:16.776 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'BeleuchtungRegal_Command' received command OFF
20:17:16.781 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch2:4ea8812e:31_16:command, command: OFF
20:17:16.784 [DEBUG] [l.connector.HomeduinoSerialConnector] - Sending message: RF send 4 3 306 957 9808 0 0 0 0 0 01010101010101010101010101100110011001100110010102
20:17:16.920 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 41434B
20:17:16.921 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (HOMEDUINO_ACK): ACK
20:17:16.922 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Response received: org.openhab.binding.homeduino.internal.messages.HomeduinoAcknowledgementMessage@167f4e7
20:17:16.923 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Command successfully transmitted, 'ACK' received
20:17:16.927 [INFO ] [marthome.event.ItemStateChangedEvent] - BeleuchtungRegal_Command changed from ON to OFF
20:17:17.850 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 52462072656365697665203530382031393332203338383820393138342030203020302030203031303230313032303130313031303230323031303130313032303130323031303130313031303130323032303130323031303130313032303130313032303230313032303130323033
20:17:17.852 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (null): RF receive 508 1932 3888 9184 0 0 0 0 01020102010101020201010102010201010101010202010201010102010102020102010203
20:17:18.349 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 52462072656365697665203531362031393234203338373620393137322030203020302030203031303230313032303130313031303230323031303130313032303130323031303130313031303130323032303130323031303130313032303130313032303230313032303130323033
20:17:18.351 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (null): RF receive 516 1924 3876 9172 0 0 0 0 01020102010101020201010102010201010101010202010201010102010102020102010203
20:17:18.815 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'Kugellampe_Command' received command OFF
20:17:18.823 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch2:4ea8812e:31_4:command, command: OFF
20:17:18.826 [DEBUG] [l.connector.HomeduinoSerialConnector] - Sending message: RF send 4 3 306 957 9808 0 0 0 0 0 01010101010101010101011001100101011001100110010102
20:17:18.962 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 41434B
20:17:18.963 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (HOMEDUINO_ACK): ACK
20:17:18.964 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Response received: org.openhab.binding.homeduino.internal.messages.HomeduinoAcknowledgementMessage@63449f
20:17:18.966 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Command successfully transmitted, 'ACK' received
20:17:18.969 [INFO ] [marthome.event.ItemStateChangedEvent] - Kugellampe_Command changed from ON to OFF
20:17:41.389 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Checking Homeduino transceiver connection, thing status = ONLINE

and here is the log when pir1 or/and weather1 send a signal (not visible in the Inbox under paper ui):

20:17:41.389 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Checking Homeduino transceiver connection, thing status = ONLINE
20:17:52.848 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 52462072656365697665203530342031393336203338383820393138382030203020302030203031303230313032303130313031303230323031303130313032303130323031303130313031303130323032303130323031303130313032303130313032303230313032303130323033
20:17:52.853 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (null): RF receive 504 1936 3888 9188 0 0 0 0 01020102010101020201010102010201010101010202010201010102010102020102010203
20:17:53.348 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 52462072656365697665203531362031393234203338383020393139322030203020302030203031303230313032303130313031303230323031303130313032303130323031303130313031303130323032303130323031303130313032303130313032303230313032303130323033
20:17:53.357 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (null): RF receive 516 1924 3880 9192 0 0 0 0 01020102010101020201010102010201010101010202010201010102010102020102010203
20:18:27.848 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 52462072656365697665203530342031393336203338383820393138382030203020302030203031303230313032303130313031303230323031303130313032303130323031303130313031303130323032303130323031303130313032303130313032303230313032303130323033
20:18:27.850 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (null): RF receive 504 1936 3888 9188 0 0 0 0 01020102010101020201010102010201010101010202010201010102010102020102010203
20:18:28.347 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 52462072656365697665203531322031393238203338383020393138382030203020302030203031303230313032303130313031303230323031303130313032303130323031303130313031303130323032303130323031303130313032303130313032303230313032303130323033
20:18:28.354 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (null): RF receive 512 1928 3880 9188 0 0 0 0 01020102010101020201010102010201010101010202010201010102010102020102010203
20:18:41.389 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Checking Homeduino transceiver connection, thing status = ONLINE
20:19:02.840 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 52462072656365697665203530342031393336203338383820393230302030203020302030203031303230313032303130313031303230323031303130313032303130323031303130313031303130323032303130323031303130313031303130313032303230313032303130323033
20:19:02.842 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (null): RF receive 504 1936 3888 9200 0 0 0 0 01020102010101020201010102010201010101010202010201010101010102020102010203
20:19:03.333 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 52462072656365697665203531362031393234203338373620393138382030203020302030203031303230313032303130313031303230323031303130313032303130323031303130313031303130323032303130323031303130313031303130313032303230313032303130323033
20:19:03.337 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (null): RF receive 516 1924 3876 9188 0 0 0 0 01020102010101020201010102010201010101010202010201010101010102020102010203
20:19:34.651 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 5246207265636569766520353038203135323420313535363820302030203020302030203031313030313130303131303031313030313130303131303031313030313130303131303031313030313130303131303032
20:19:34.655 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (null): RF receive 508 1524 15568 0 0 0 0 0 01100110011001100110011001100110011001100110011002
20:19:34.910 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 5246207265636569766520353038203135323020313535363820302030203020302030203031313030313130303131303031313030313130303131303031313030313130303131303031313030313130303131303032
20:19:34.914 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (null): RF receive 508 1520 15568 0 0 0 0 0 01100110011001100110011001100110011001100110011002
20:19:35.169 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 5246207265636569766520353038203135323020313535363020302030203020302030203031313030313130303131303031313030313130303131303031313030313130303131303031313030313130303131303032
20:19:35.173 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (null): RF receive 508 1520 15560 0 0 0 0 0 01100110011001100110011001100110011001100110011002
20:19:35.429 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 5246207265636569766520353038203135323020313535353220302030203020302030203031313030313130303131303031313030313130303131303031313030313130303131303031313030313130303131303032
20:19:35.433 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (null): RF receive 508 1520 15552 0 0 0 0 0 01100110011001100110011001100110011001100110011002
20:19:37.840 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 52462072656365697665203530382031393332203338383420393138342030203020302030203031303230313032303130313031303230323031303130313032303130323031303130313031303130323032303130323031303130313031303130313032303230313032303130323033
20:19:37.842 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (null): RF receive 508 1932 3884 9184 0 0 0 0 01020102010101020201010102010201010101010202010201010101010102020102010203
20:19:38.332 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received message: 52462072656365697665203531322031393238203338383020393139362030203020302030203031303230313032303130313031303230323031303130313032303130323031303130313031303130323032303130323031303130313031303130313032303230313032303130323033
20:19:38.337 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received (null): RF receive 512 1928 3880 9196 0 0 0 0 01020102010101020201010102010201010101010202010201010101010102020102010203
20:19:41.389 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Checking Homeduino transceiver connection, thing status = ONLINE

I recognize that after a restart of openhab the homeduino binding is not active (transreciever offline), The log showed me the following:

19:17:26.905 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Checking Homeduino transceiver connection, thing status = OFFLINE
19:17:26.906 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Connecting to Homeduino transceiver
19:17:26.907 [DEBUG] [l.connector.HomeduinoSerialConnector] - Disconnecting
19:17:26.909 [DEBUG] [l.connector.HomeduinoSerialConnector] - Closed
19:17:26.933 [ERROR] [duino.handler.HomeduinoBridgeHandler] - Connection to RFXCOM transceiver failed: null

After a reboot of the whole system the problem was still there but with the following log:

19:20:28.726 [ERROR] [l.connector.HomeduinoSerialConnector] - Event listener invoking error
java.lang.NullPointerException
	at org.openhab.binding.homeduino.internal.messages.homeduino.Switch2Message$Protocol.process(Switch2Message.java:79)[229:org.openhab.binding.homeduino:2.1.0.201702101650]
	at org.openhab.binding.homeduino.internal.messages.homeduino.HomeduinoProtocol.process(HomeduinoProtocol.java:218)[229:org.openhab.binding.homeduino:2.1.0.201702101650]
	at org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage.getInterpretations(HomeduinoEventMessage.java:68)[229:org.openhab.binding.homeduino:2.1.0.201702101650]
	at org.openhab.binding.homeduino.handler.HomeduinoBridgeHandler$HomeduinoMessageListener.packetReceived(HomeduinoBridgeHandler.java:236)[229:org.openhab.binding.homeduino:2.1.0.201702101650]
	at org.openhab.binding.homeduino.internal.connector.HomeduinoSerialConnector.sendMsgToListeners(HomeduinoSerialConnector.java:162)[229:org.openhab.binding.homeduino:2.1.0.201702101650]
	at org.openhab.binding.homeduino.internal.connector.HomeduinoStreamReader.run(HomeduinoStreamReader.java:92)[229:org.openhab.binding.homeduino:2.1.0.201702101650]

After the second reboot every thing was and is fine and is running smooth.

Sometimes I have problems with the signal delivery to the wallswitches. From my feelings :slight_smile: the problem was not present with pimatic. But this is “detail tuning”:-).

If you need more information, please tell me.

Sometimes i get this error:

08:59:54.369 [ERROR] [l.connector.HomeduinoSerialConnector] - Event listener invoking error
java.lang.NullPointerException
	at org.openhab.binding.homeduino.internal.messages.homeduino.Switch2Message$Protocol.process(Switch2Message.java:79)[228:org.openhab.binding.homeduino:2.1.0.201702101650]
	at org.openhab.binding.homeduino.internal.messages.homeduino.HomeduinoProtocol.process(HomeduinoProtocol.java:218)[228:org.openhab.binding.homeduino:2.1.0.201702101650]
	at org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage.getInterpretations(HomeduinoEventMessage.java:68)[228:org.openhab.binding.homeduino:2.1.0.201702101650]
	at org.openhab.binding.homeduino.handler.HomeduinoBridgeHandler$HomeduinoMessageListener.packetReceived(HomeduinoBridgeHandler.java:236)[228:org.openhab.binding.homeduino:2.1.0.201702101650]
	at org.openhab.binding.homeduino.internal.connector.HomeduinoSerialConnector.sendMsgToListeners(HomeduinoSerialConnector.java:162)[228:org.openhab.binding.homeduino:2.1.0.201702101650]
	at org.openhab.binding.homeduino.internal.connector.HomeduinoStreamReader.run(HomeduinoStreamReader.java:92)[228:org.openhab.binding.homeduino:2.1.0.201702101650]

…when pressing the remotecontrolbutton.