[SOLVED] Cannot get MPD to work in OH2

Hello Guys,

i tried to install MPD1.9 Plugin in OH2 but i cannot get it to work. I cannot get Artist and Song name neither can i control the MPD server. Edit: tried also with 1.13 and 1.14

I used this tutorial for installing:

mpd.cfg:
mpd:wohnzimmer.host=192.168.1.95
mpd:wohnzimmer.port=6601
mpd:bad.host=192.168.1.95
mpd:bad.port=6602

items:
Switch mpd_Wohnzimmer_StartStop “Start/Stop” (gMPD_Wohnzimmer_StartStop) { mpd=“ON:wohnzimmer:play, OFF:wohnzimmer:stop”}
Switch mpd_Wohnzimmer_NextPrev “Track control” (gMPD_Wohnzimmer_NextPrev) { mpd=“ON:wohnzimmer:next, OFF:wohnzimmer:prev” }

String mpd_Wohnzimmer_CurrentTrack “Current track [%s]” { mpd=“TITLE:wohnzimmer:tracktitle” }
String mpd_Wohnzimmer_CurrentArtist “Current artist [%s]” { mpd=“ARTIST:wohnzimmer:trackartist” }
String mpd_Wohnzimmer_ConcatInfo “Now playing [%s]”

rules:
rule “mpd_Wohnzimmer_concat”
when
Item mpd_Wohnzimmer_CurrentTrack received update or
Item mpd_Wohnzimmer_CurrentArtist received update
then
mpd_Wohnzimmer_ConcatInfo.postUpdate(mpd_Wohnzimmer_CurrentTrack.state.toString + " / " + mpd_Wohnzimmer_CurrentArtist.state.toString)
end

Can somebody help me?

Solved, tried again with 1.14 and this config. now it works

Note that the IP addresses for both hosts are the same in your config, it shouldn’t be so.

It works, same ip adress is not a problem, since both host instances have different port numbers.

Also displaying the different songs playing works.