I’m trying to get my receiver to turn on and change to a source when I start playing Sonos. I’ve got it to the point of turning on but can’t figure out how to get it to change to the correct source. Below is what I have for my automation.
#Onkyo on for Sonos
- alias: ‘Onkyo on for music’
trigger:
platform: state
entity_id: media_player.bathroom
to: ‘playing’
action:- service: homeassistant.turn_on
entity_id: media_player.onkyo - service: media_player.select_source
entity_id: video6
- service: homeassistant.turn_on