Interest in a homeduino binding

And I arrived back at working code which I understand, if multiple possible messages match I can return them both. All has been pushed :slight_smile:

Wednesday is my dev night, so next week I will start to do some cleaning and work on the sending of messages, which is now not yet supported.

Then there was the friday, I can handle (and auto-discover) my CoCo remote. And I’ll add a shutter now to make sure that I’m able to send the correct commands.

Hey Walter!

Sorry for late reply!
ad 1. i’m deffinitely going to switch to OH2 sooner or later … so no problem. I might even setup a test rig…
ad 2. no issues here. Runs stable as a rock!

It would be glad, if you could implement sending the different protocols from homedunio.
I will help you with the protocols.

What about receiving weather data from homeduino?

Thanks martinvw! Are there any news about the homeduino binding?

Have exactly the same situation about the 433Mhz sender for my wallplugs. I don´t want to switch to a much expensive solution like Tinkerforge if not needed, since martinvw has rock stable version running :wink:
That´s the last module in pimatic and i can complete switch to openHAB2.

What is/are the main homeduino protocols you are interested in?

I will try to pick it up again in this month, I was busy with some other small changes in the RFXCom module.

Hi martinvw, thanks for your reply. I´m interested in switch on/off the cheap radio outlets in the 433 MHz frequency. Used these HowTo´s for Pimatic.


I just checked in some code which makes the sending and receiving of homeduino protocol switch1 possible. For the shutter requested earlier in this topic I can yet only receive data. But sending should not be that hard anymore now.

Any other protocols people require to be able to test-drive later on?

Hi, is this project still alive?

if so i would like to help with testing.
I’m currently using homeduino together with an ugly Nodejs implementation to MQTT.

it works, but i’d like a native openhab implementation.

though i could not find any binary on your github for the addon?

I did a lot of work on it, but I decided that I changed the RFXCom binding too much to fit it in and had to bent the implementation also too much. So I decided to go for a separate binding after all :blush:

I made some first steps on extracting it and in the mean while I also did some maintenance on the RFXCom binding and my house…

I have a version which is embedded in the RFXCom module, you can find it here:

outdated download

Please don’t forget to pass the usb device to start-script of openhab and add the user to the dialout group.

awesome! I’ll try it out.

though a quick question, this completly replaces the RFXCOM right? so i should setup the homeduino as it was the RFXCom?

ps. let me know if you need some testing for the new binding!

Hi martinvw,
thanks for your great work. I tried the rfxcom-2.0.0 Snapshot and it is nearly working.
The bindings finds a few 433-MHz devices (e.g. HOMEDUINO_PIR1-0.4 or HOMEDUINO_SWITCH4-0.4) but the thing is an “Unknown device”.

This is the log:
22:13:20.339 [ERROR] [home.core.thing.binding.ThingFactory] - Thing factory (class org.openhab.binding.rfxcom.internal.RFXComHandlerFactory) returned null on create thing when it reports to support the thing type (rfxcom:homeduino_switch4).
22:13:20.341 [WARN ] [g.discovery.internal.PersistentInbox] - Cannot create thing. No binding found that supports creating a thing of type rfxcom:homeduino_switch4.
22:14:57.719 [ERROR] [home.core.thing.binding.ThingFactory] - Thing factory (class org.openhab.binding.rfxcom.internal.RFXComHandlerFactory) returned null on create thing when it reports to support the thing type (rfxcom:homeduino_switch4).
22:14:57.723 [WARN ] [g.discovery.internal.PersistentInbox] - Cannot create thing. No binding found that supports creating a thing of type rfxcom:homeduino_switch4.

Do know how to change the unknown device to an known device?

Does your openhab binding support all 433 MHz devices with rfcontroljs protocol implementations from the homduino solution.


I’m m looking forward to testing the new binding!!!

Hello martin,

It seems that the snapshot works, but I have, like kallecux, only unknown devices. Is it possible to implement pir1, weather1, and switch2 protocols?
With these protocols I can test the snapshot with my productive smarthome configuration under real conditions.

Thank you for your work!


pir1, switch1, switch2, switch4 and shutter3 are supposed to work. For weather more work as needed, please first test the current state :wink:

A highly experimental download for the pure homeduino binding is available now:

outdated download

Hello Martin,

thank you for your work. The setup of the plugin was very easy without any problems. By using my remote for the switches I found the switch at the inbox, add the switch as thing, add the 2 items… every thing fine. The homeduino receives commands from the remote and change the state of the switch correctly, but only by pressing the remote button for longer time (2 seconds something like that). Karaf logs the following:
22:25:54.998 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH2_Command changed from OFF to ON
22:25:55.005 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH2_Contact changed from CLOSED to OPEN
22:25:55.136 [WARN ] [al.messages.homeduino.Switch2Message] - state: 1
22:25:55.138 [WARN ] [al.messages.homeduino.Switch2Message] - Id: 8
22:25:55.140 [WARN ] [al.messages.homeduino.Switch2Message] - Unitcode: 15
22:25:55.301 [WARN ] [al.messages.homeduino.Switch2Message] - state: 1
22:25:55.303 [WARN ] [al.messages.homeduino.Switch2Message] - Id: 8
22:25:55.309 [WARN ] [al.messages.homeduino.Switch2Message] - Unitcode: 15
22:25:56.391 [WARN ] [al.messages.homeduino.Switch2Message] - state: 0
22:25:56.393 [WARN ] [al.messages.homeduino.Switch2Message] - Id: 8
22:25:56.395 [WARN ] [al.messages.homeduino.Switch2Message] - Unitcode: 15
Under pimatic my houseCode was 31 and the unitCode was 16. Is there something wrong with the codes?
My second problem:
I can not switch by using the virtual switch under control dashboard. After switching I receive the following error under karaf:

22:20:08.531 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘SWITCH2_Command’ received command OFF
22:20:08.534 [ERROR] [ding.homeduino.handler.RFXComHandler] - Transmitting error: java.lang.NoSuchMethodException: org.openhab.binding.homeduino.internal.messages.homeduino.Switch2Message.()
22:20:08.544 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH2_Command changed from ON to OFF

Have a nice evening and thank your for your effort!

I think I spotted a bug parsing the output to explain the 8 vs 31. The unitCode is something that I have to look into.

Could you enable debug logging to extract the string which was received by the openhab homeduino binding? I don’t know whether the logging is sophisticated enough but I remember seeing a logging per character, just add the whole log between two ```.

Ouch, sending was only correctly implemented for switch1, some changes are needed, I implemented them quickly in between work, it might improve :slight_smile:

outdated download

Hello Martin,
thanks for your work - i tested your homeduino binding by copying the .jar file into the addons folder.
After a reboot i found the binding in the bindings-section. The transceiver could be added and configured. The new thing was online. Everything works good.

Then i searched new homeduino things - there were found a PIR (thats true) and i pushed the button on the remote control to send a command to the switch - there were a few switches found.

I added the corresponding items and tried to act the switches via the control-section in the paper-ui.

This is the result:
08:23:58.838 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 0A
08:23:58.839 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoEventMessage@89ab68
08:23:58.843 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received message from bridge: homeduino:homeduino:b7648a0e message: org.openhab.binding.homeduino.internal.messages.homeduino.Switch4Message@c88eb8
08:23:58.857 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received message from bridge: homeduino:homeduino:b7648a0e message: org.openhab.binding.homeduino.internal.messages.homeduino.Switch4Message@c88eb8
08:23:58.859 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received message from bridge: homeduino:homeduino:b7648a0e message: org.openhab.binding.homeduino.internal.messages.homeduino.Pir1Message@ecb38c
08:23:58.860 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received message from bridge: homeduino:homeduino:b7648a0e message: org.openhab.binding.homeduino.internal.messages.homeduino.Pir1Message@ecb38c
08:24:02.309 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘SWITCH205_Command’ received command ON
08:24:02.318 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch2:b7648a0e:0_5:command, command: ON
08:24:02.320 [ERROR] [ding.homeduino.handler.RFXComHandler] - Transmitting error: java.lang.NoSuchMethodException: org.openhab.binding.homeduino.internal.messages.homeduino.Switch2Message.()
08:24:02.323 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH205_Command changed from OFF to ON
08:24:05.367 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘SWITCH285_Command’ received command ON
08:24:05.375 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch2:b7648a0e:8_5:command, command: ON
08:24:05.378 [ERROR] [ding.homeduino.handler.RFXComHandler] - Transmitting error: java.lang.NoSuchMethodException: org.openhab.binding.homeduino.internal.messages.homeduino.Switch2Message.()
08:24:05.383 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH285_Command changed from OFF to ON
08:24:06.705 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘SWITCH4011_Command’ received command ON
08:24:06.717 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch4:b7648a0e:0_11:command, command: ON
08:24:06.721 [ERROR] [ding.homeduino.handler.RFXComHandler] - Transmitting error: java.lang.NoSuchMethodException: org.openhab.binding.homeduino.internal.messages.homeduino.Switch4Message.()
08:24:06.725 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH4011_Command changed from OFF to ON
08:24:08.075 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘SWITCH41611_Command’ received command ON
08:24:08.083 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch4:b7648a0e:16_11:command, command: ON
08:24:08.092 [ERROR] [ding.homeduino.handler.RFXComHandler] - Transmitting error: java.lang.NoSuchMethodException: org.openhab.binding.homeduino.internal.messages.homeduino.Switch4Message.()
08:24:08.096 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH41611_Command changed from OFF to ON
08:24:08.171 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Checking Homeduino transceiver connection, thing status = ONLINE
08:24:10.238 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘SWITCH484_Command’ received command OFF
08:24:10.248 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch4:b7648a0e:8_4:command, command: OFF
08:24:10.253 [ERROR] [ding.homeduino.handler.RFXComHandler] - Transmitting error: java.lang.NoSuchMethodException: org.openhab.binding.homeduino.internal.messages.homeduino.Switch4Message.()
08:24:10.258 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH484_Command changed from ON to OFF
08:24:11.350 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘SWITCH484_Command’ received command ON
08:24:11.364 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch4:b7648a0e:8_4:command, command: ON
08:24:11.366 [ERROR] [ding.homeduino.handler.RFXComHandler] - Transmitting error: java.lang.NoSuchMethodException: org.openhab.binding.homeduino.internal.messages.homeduino.Switch4Message.()
08:24:11.367 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH484_Command changed from OFF to ON


That should work with the new version which I published just a few seconds before your message

edit: no it does NOT

I checked it:

Now i got this message when switching via the control-section:

‘08:44:04.361 [DEBUG] [ding.homeduino.handler.RFXComHandler] - Received channel: homeduino:switch2:b7648a0e:8_5:command, command: OFF
08:44:04.364 [DEBUG] [l.connector.HomeduinoSerialConnector] - Sending message: null
08:44:04.371 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 45
08:44:04.375 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 52
08:44:04.379 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 52
08:44:04.383 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 20
08:44:04.387 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 75
08:44:04.388 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 6E
08:44:04.389 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 6B
08:44:04.390 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 6E
08:44:04.391 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 6F
08:44:04.391 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 77
08:44:04.392 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 6E
08:44:04.392 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 5F
08:44:04.393 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 63
08:44:04.394 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 6F
08:44:04.394 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 6D
08:44:04.395 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 6D
08:44:04.396 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 61
08:44:04.397 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 6E
08:44:04.399 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 64
08:44:04.400 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 0D
08:44:04.401 [DEBUG] [rnal.connector.HomeduinoStreamReader] - Received data (len=1): 0A
08:44:04.402 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Message received: org.openhab.binding.homeduino.internal.messages.HomeduinoErrorMessage@14a7b01
08:44:04.403 [DEBUG] [duino.handler.HomeduinoBridgeHandler] - Response received: org.openhab.binding.homeduino.internal.messages.HomeduinoErrorMessage@14a7b01
08:44:04.404 [ERROR] [duino.handler.HomeduinoBridgeHandler] - Command transmit failed, ‘ERR’ received
08:44:04.406 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘SWITCH285_Command’ received command OFF
08:44:04.410 [INFO ] [marthome.event.ItemStateChangedEvent] - SWITCH285_Command changed from ON to OFF’