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.
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
avr_spotify: alias: AVR Spotify sequence: - service: media_player.turn_on target: device_id: 95daaxxxxx entity_id: media_player.spotify_xxxx - delay: hours: 0 minutes: 0 seconds: 10 milliseconds: 0 - service: media_player.volume_set data: volume_level: 0.35 target: device_id: 95daaxxxxx - service: media_player.select_source target: entity_id: media_player.spotify_xxxx data: source: Denon AVR-X1300W - service: media_player.play_media target: entity_id: media_player.spotify_xxxx device_id: 95daaxxxxx mode: single
Currently I could not find any answers to this issue within the community.
Thanks for your help!