MPD doesn't want to start

Hello all

I have home assistant.

I installed mopidy and after I configured MPD. From the log, it seems home assistant is connecting to mopidy but in home assistant, when I click on the “power” button, nothing happen.

Any idea? I want start and stop and manage spotify via home assistant, but I want use the audio of raspberry that I connected to my old Hi-Fi

Regards
Claudio

When you press the on button it should play, as on the mpd integration turn on does play - there is no concept of the device being “on” or “off” in the way that a radio or dvd player can be. See here https://github.com/home-assistant/home-assistant/blob/3dd5222ec7776dd4771ee9151b3de2d5ab7ff2b6/homeassistant/components/mpd/media_player.py#L346

But you have to give it something to play, a playlist or something. There is an example at the bottom of this page https://www.home-assistant.io/integrations/mpd/ and more general info here https://www.home-assistant.io/integrations/media_player/

Hello Nick.

I will read.
My idea is click on power and start spotify or tuneit. I was supposing there is a way from the mpd or using a card to choose

My final objective is have spotify and tuneit that i can get from raspberry audio and here from hifi or on the google speakers

Thanks for now

Have you read the docs I pointed to? You need to use the play_media service, not the play service. turn_on is the same as play.

I read, but I didn’t have time to work on.
But I didn’t understand your last post (the first one is clear, but I need to understand how tell to play Spotify)

Ignoring home assistant for a moment, can you get mopidy to play spotify?

From a first test it seems yes, but I have no a lot of time during the week.
I am also going to try “forked-daapd”: it seems manage more speakers (as I want) and there is a card for home assistant.
I will keep you updated

Maybe I solved in another way

You could explain how… maybe it can help someone else…

1 Like