pimatic plugin for controlling the Music Player Daemon.
device config example:
device rules examples:
if smartphone is present then play mpd-player
if smartphone is absent then pause mpd-player
if smartphone is absent then stop mpd-player
if buttonVolumeLow is pressed then change volume of mpd-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 mpd plugin. If you would like to do something when the state changes u could use the attribute predicate.
if $mpd-player.state equals "play" then switch speakers on
if $mpd-player.state equals "pause" then switch speakers off