MPD don't turn on

Guys, I’m having problems using MPD as media player.

MPD don’t turn on, even when I click on Power or when I try to call the service.

Any idea?

Thanks

did you configure a port? Did you configure anything?

That how config is.

# Mopidy addon for hass.io
media_player:
  - platform: mpd
  host: 127.0.0.1
  port: 6600

Is that your normal indentation? If so, thats incorrect. Needs to be:

# Mopidy addon for hass.io
media_player:
  - platform: mpd
    host: 127.0.0.1
    port: 6600

Still not turning on.

is that the correct host? Doesn’t look right to me. Should contain your IP for the media_player.

It’s on the same Pi as Hassio. But even if a change the IP to 192.168.1.71 still not working.

Ah, you never know. I wasn’t sure if you knew that 127.0.0.1 was local host. Anyways, you should check and see if mpd is listening to port 6600.

Hello colleagues!
The same problem.
Does somebody know how to resolve it?
I used Raspberry Pi 2B with analog speaker (3,5 mm jack).
My configuration is:

Mopidy addon for hass.io

  • platform: mpd
    host: 10.168.1.6
    port: 6600
    My hardware (audio) is:
    “audio”: {
    “0”: {
    “name”: “bcm2835_alsa - bcm2835 ALSA”,
    “type”: “ALSA”,
    “devices”: {
    “0”: “digital audio playback”,
    “1”: “digital audio playback”
    }
    }
    }
    Maybe the problem is digital Alsa? If so how to change it? How to get some debuging info-?
    Thank you.

When I had this issue, it was due to a configuration error on Mopidy, not Home Asssistant. I had to change the mopidy.conf to allow connections outside of localhost. Here is a snippet of my mopidy.conf, which works with Home Assistant. You can see under [http] I changed the hostname to :: to allow all incoming connections. Also, if you run mopidy as a service, make sure you are editing the correct mopidy.conf (stored in /etc/mopidy) and remember to sudo to gain write access to the file. Hope this helps.

# This is the essential step!
# We tell MPD to route its output to an mp3 encoder and then to icecast
# The port and password values depend on your icecast installation!
[audio]
mixer = software
output = lamemp3enc ! shout2send mount=mopidy.mp3 ip=127.0.0.1 port=8000 passwo$

[mpd]
hostname = 0.0.0.0

[http]
enabled = true
hostname = ::


[stream]
enabled = true
protocols =
    http
    https
    mms
    rtmp
    rtmps
    rtsp
timeout = 5000

Thank you very much for advice.
How to use your recommendation under hassio os? I have no access to these folders.

Sorry, I didn’t realize you were running the Mopidy hass.io addon. I installed Mopidy on another Raspberry Pi, separate from Home Assistant–I didn’t use the Hass.io add-on. Since you’re using the Hass.io add-on, then you won’t have my problem with localhost since both Home Assistant and Mopidy are running on the same Raspberry Pi. I have no idea how to help, my bad.

My Mopidy addon plays music and tts fine. But i cant turn it on manually too. I guess this is by design. In standby it always off. Correct me if i’m wrong