Hey all, I’m new to OpenHAB and have been exploring its capabilities over the past few weeks. I must say, the community and the platform itself are truly impressive! However, I’ve encountered a small issue with the MQTT binding that I’m hoping to resolve with your help.
My Setup
I have OpenHAB 2 installed on an Odroid C1 running Ubuntu 14.04.5 LTS. I’ve successfully installed the MQTT binding via PaperUI and set up Mosquitto (version 1.4.10) as my MQTT broker. The broker is pulling temperature data from a NodeMCU ESP-12E with ESP Easy firmware, which reports under the topic /Node2/Boat/Temperature.
Configuration
Here’s how I’ve configured the item and sitemap:
**Item Configuration:**Number Temp “Temperature [%.2f F]” (Sjoukje) {mqtt=“<[mosquitto:/Node2/Boat/Temperature:state:default]”}
**Sitemap Configuration:**sitemap default label=“Sjoukje Sensors” { Frame label=“On-board Temperature” { Text item=Temp }}
The Issue
Despite everything seeming to be set up correctly, I’m not receiving any sensor information on my sitemap. I’ve verified that the MQTT broker is working by subscribing to the topic using mosquitto_sub, and I can see the temperature data being published. However, OpenHAB isn’t picking up the data.
My Plan
Once I get this working, I plan to add more sensors, including water sensors in the boat hull, a relay for the heating system, and water tank level sensors. I’ve already successfully integrated RGBW lights using a MiLight controller, so I’m eager to expand further.
Questions
- Could there be an issue with the MQTT binding configuration?
- Are there any common pitfalls when setting up MQTT with OpenHAB that I might have overlooked?
- Would it help to enable debug logging for the MQTT binding to get more detailed information?
Any guidance or suggestions would be greatly appreciated! Thanks in advance for your help.
Best regards,
James