Hello community
short introduction:
I started with a raspberry to make my home a little smarter. and meanwhile I’m happy that I made this decision. due to the many forum posts i was able to solve my first problems and meanwhile have installed some components in the system.
As far as I have helpful configurations I will share it to the community.
problem:
I have integrated my denon avr and my spotify premium acc and added them to a lovelace card.
when I press the play button on the spotify card, HA is showing the following error. For sure there is no media payer selected .
With help of the three dots in edge I can select the avr as source for my spotify. avr gets turned on with correct spotify connect source. I am not sure which command the spotify card is using there. Afterwards I can start playing music by pressing the play button.
My wish is, to press the button once: turn avr on and start playing on selected spotify source. Is this possible? and if yes, how? script? I tried out with a script but my success was very little. I can turn on the AVR and switch the source, but no music is playing
Does your AVR switch on when you do the media_player.select_source?
If so, you might just need to add a delay between it and the media_player.play_media, time for the AVR to “warm up”.
And/or add a “choose” to only do the delay if the AVR is not available, yet.
yes the AVR turns on when selecting the source, but the AVR is showing the spotify source a half second and selects the initial source instead of spotify. I don’t know why
general question: play_media command expects content ID and type (spotify playlist for example). I would be happy if the last online title is played. Is that possible?