MQTT & event bus

536 views
Skip to first unread message

Janus

unread,
Apr 17, 2015, 5:05:08 AM4/17/15
to ope...@googlegroups.com

Hi guys,

I want to use OpenHab to connect some Arduino devices to use the really nice OpenHab interface and rule engine. The most simple solution seems to use the MQTT binding because it's lightweigth.
I'm not yet at the stage of implementing the Arduino code but I want to use an ethernet connection similar to this : http://npanel.project.free.fr/wp/?p=607.

Concerning the MQTT, my aim is to get all OpenHab events under the form of an MQTT message and to be able to updete status of items in OpenHab using MQTT messages. This seems to be exactly the role of MQTT event bus binding (or MQTT binding overall if you use item-level binding).
I tried to set that up with the following steps:
  • setting up the MQTT broker (mosquitto)
  • configuration file with broker and event bus binding setup
  • Items and sitemap configuration.
The MQTT connection between OpenHab and MQTT broker seems to work (I can see success in logs of both broker and MQTT), but when I try to activate items in OpenHab, I only get events on the OpenHab event bus but no MQTT message. I tried in DEBUG mode but just no error and no MQTT message.
Is it the proper way to use the binding and just the configuration not properly set up or am I completely wrong in setting up the binding?

Many thanks.
Cheers
Thomas

Roque Pinto

unread,
Apr 18, 2015, 2:37:45 PM4/18/15
to ope...@googlegroups.com
Take a look at mysensors http://www.mysensors.org/controller/openhab it integrates into OpenHab via MQTT or Serial gateway.
- RNP

Janus

unread,
Apr 19, 2015, 11:12:34 AM4/19/15
to ope...@googlegroups.com
Thx for the information! I think I will stick to Ethernet but I might change my mind.
For my problem I just forgot to add the proper binding into the add-on folder...
Reply all
Reply to author
Forward
0 new messages