Hi I am trying to have my Blue Sound Speaker. Play a radio station (or source) when it turns on. I saw a post back from 2018 - that said to do this:
action:
- service: media_player.select_source
data:
entity_id: media_player.kitchen
source: P4
I tried this and it did not work.
Here is my Yamal below:
alias: Play NPR
description: “”
trigger:
- platform: device
device_id: 9ec31f154cc759befc4ec69025cad7de
domain: media_player
entity_id: 00f24cdb7f9723bb4374db41990eca49
type: turned_on
condition:
action: - action: media_player.select_source
metadata: {}
data:
source: P1
target:
device_id: 9ec31f154cc759befc4ec69025cad7de
mode: single
when I run it nothing happens… when I look at the device/speaker on my dashboard I can see the “source” and hit play and it works. But I want it to play that source as soon as it turns on.
Any help would be great!