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.
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