pimatic plugin for controlling Mopidy through websockets.
device config example:
device rules examples:
if smartphone is present then play mopidy-player
if smartphone is absent then pause mopidy-player
if smartphone is absent then stop mopidy-player
if buttonVolumeLow is pressed then change volume of mopidy-player to 5
if buttonNext is pressed then play next song Music
if buttonPrev is pressed then play previous song Music
Currently no predicates for the mopidy plugin. If you would like to do something when the state changes you could use the attribute predicate.
if $mopidy-player.state equals "play" then switch speakers on
if $mopidy-player.state equals "pause" then switch speakers off