Hi!
I have a toggle that I want to be able to turn on to play BBC Radio 1, I cannot get it working, can anyone help where I am going wrong please,
This is my automation;
`- id: ‘1669116584280’
alias: BBC Radio 1
description: ‘’
trigger:
- platform: state
entity_id:- input_boolean.bbc_radio_1
from: ‘off’
to: ‘on’
condition: []
action:
- input_boolean.bbc_radio_1
- service: media_player.play_media
target:
entity_id: media_player.echo_plus
data:
media_content_id: cast
media_content_type: ’ { “app_name”: “bbcsounds”, “media_id”: “bbc_radio_one”,
“is_live”: true }’
metadata: {}
mode: single`
This is my log:
Executed: 22 November 2022 at 11:47:31 Result: params: domain: media_player service: play_media service_data: media_content_id: cast media_content_type: ' { "app_name": "bbcsounds", "media_id": "bbc_radio_one", "is_live": true }' entity_id: - media_player.echo_plus target: entity_id: - media_player.echo_plus running_script: false limit: 10
Thanks in advance!