I’m trying to get a radio channel to automatically play on a Chromecast-enabled speaker in my kitchen. I can see that the automation is triggered and in the system log I can see that commands are sent to my speaker but it never starts playing.
- alias: God morgon!
initial_state: True
hide_entity: False
trigger:
platform: state
entity_id: binary_sensor.motion_hall
from: 'off'
to: 'on'
action:
service: media_player.play_media
data:
entity_id: media_player.sony_x77
media_content_id: https://live-cdn.sr.se/pool2/p4malmo/p4malmo.isml/p4malmo.m3u8
media_content_type: 'audio/mp4'
condition:
- condition: time
after: '06:30:00'
before: '09:30:00'
- condition: state
state: 'idle'
entity_id: media_player.sony_x77
What am I missing here to get it to start playing?
So yes, it could very well be that it has a problem with HTTPS. But if I cast this radio channel from their app, this is the URL that I can see is playing when looking at the details on this receiver.