Hi,
I’m very new to this. I got my arduino setup and connected to a mqtt broker and also set up that broker in openHAB and it connects and everything. The issue is I can’t figure out how to connect up MQTT to an item. I tried it in multiple different ways looking around on google none of which seemed to work. I think it might be related to the broker part of it but I’m not sure how the MQTT data is formatted. (as in like whats the > vs. < or what does command:*:default do/mean and how does it get sent out to MQTT). The MQTT topic that should get on or off should be “desk/rgb-lights/switch”. I’ve tested it with MQTT.fx and it does work correctly without openHAB.
If anyone could help that would be great
Did you create these in paperUI? Did you link your on/off channel already via PaperUI to an item? Can you show us the configuration of the on/off channel?
I just figured out why… I had it connected to a different item which wasn’t set up in the items file so it wasn’t hooked up to the correct item. Now it works correctly and everything is working good Thanks for your help!