Hey OpenHAB Community,
I try to get the MQTT Bindung to talk to some other Raspberry Pis. Previously I used the MQTT Action Binding with some rules to send specific text values to the berries.
With the new released openHAB 2.5 I want to implement the MQTT Binding using switches and channels. Even If I tried several guides and the official description of the binding, I cant receive any messages on other berries.
I am using the embedded broker, created a MQTT generic thing and connected to a Switch Channel (“MQTT command topic” is “test”). Changing the state of the switch to ON or OFF shall send “ON” or “OFF”.
No error messages are at the log files and the broker and generic thing are ONLINE / INITIALIZED.
With the other PI I subscribe to the topic “test” (like I did with the MQTT Action binding) :
mosquitto_sub –t test
Switching the MQTT-Switch doesn’t give me any response at the subscribed topic.
I really don’t know my mistake – Could be the subscription to the topic “test” by the mosquitto client the wrong approach?