I’m using OH 3.0.1 on a Pi 4b. I have mosquitto. On a different Pi (it’s a zero) I’m running mopidy with Mopiqtt that is configured back to talk to the broker on the Pi 4. Everything is working…
Except, I’m trying to control playback state with an openhab Switch item. I’ve created a thing with the mqtt broker bridge. The tricky part is that the stateTopic payload and the commandTopic payload use different words for their state. Here’s my Thing:
From this you can see what I’m trying to do: have the state set using different payloads from what the command is using. Is there a way to do this? For what it’s worth, when I delete the command part, the switch updates correctly using the “playing” and “paused” payloads. If I don’t delete that part, the switch correctly controls the playback state, it just doesn’t update when something else controls the playback state.