Unable to connect to MPD


Home assistant cannot connect to my mpd server.
Log only says: 17-01-03 09:39:53 homeassistant.components.media_player.mpd: Unable to connect to MPD

I know mpd is working fine since I can access it from any other device at home.
I’ve tried with or without password.
I have kodi installed as well, which is working fine. But no luck with mpd…
My version of mpd is MPD 0.19.0
Any idea?
What could make Home Assistant not able to connect to mpd?
I’ve checked mpd’s config file, seems ok to me.

I had the same issue. I explicitly added the port and it was recognised by home assistant.

Thx for your answer. I had added the port as well but not working for me unfortunately.
My config is:

I typed into my web browser, I got:
OK MPD 0.19.0
ACK [5@0] {} unknown command “GET”
ACK [5@0] {} Invalid word character

What could this mean? Don’t know whether this is related to Home assistant not being able to connect to mpd…

Will try to reinstall mpd.

Just in case someone else runs into this and smashes their head against the wall for a good hour. host value should just be IP address, no http://. So:

  • platform: mpd
    name: mpd
    port: 6600

Hi @bionemesis

can you please tell me how you installed MPD on your pi?