Exploring MQTT Binding for Raspberry Pi Communication

Hey OpenHAB Community, I’m diving into the MQTT Binding world, aiming to connect my Raspberry Pis for smarter home automation. Previously, I relied on the MQTT Action Binding with some rules to send specific text values to my devices. Now, with the release of openHAB 2.5, I’m excited to explore the MQTT Binding using switches and channels for a more streamlined setup.

I’ve followed several guides and the official documentation, but I’m hitting a snag—no messages are being received on the other Raspberry Pis. I’m using the embedded broker, created a MQTT generic thing, and connected to a Switch Channel with the command topic set to “test”. The idea is that switching the state of the switch to ON or OFF should send “ON” or “OFF” messages. However, when I subscribe to the topic “test” on another Pi using mosquitto_sub -t test, nothing happens when I toggle the switch. The logs don’t show any errors, and both the broker and generic thing are ONLINE / INITIALIZED. I’m puzzled—could my subscription approach be incorrect? Any insights or suggestions would be greatly appreciated! Thanks, Phil.