#@stefan.cvetkovic You probably have a
1 messages · Page 1 of 1 (latest)
service: remote.turn_on
target:
entity_id: remote.android_integration_livingroom_tv
data:
activity: |-
{% if is_state('input_boolean.baby_mode', 'on') %}
'https://www.youtube.com/watch?v=tEkextPejH8&list=PLFEgnf4tmQe_L3xlmtFwX8Qm5czqwCcVi'
{% else %}
{% set playlists = [
'https://www.youtube.com/watch?v=SIq8-HdpKIo',
'https://www.youtube.com/watch?v=iL26uNfCqHg',
'https://www.youtube.com/watch?v=cR5_Jxt1t-Q',
'https://www.youtube.com/watch?v=6NXo0p0fe_0'
] %}
{{ playlists | random }}
{% endif %}
Here is my script. Now it doesnt break, but it doesnt work either. 🙂