Has anyone any clues on how I diagnose the following error? The script appears valid in both the visual editor and YAML and I’ve checked that the correct devices/entities are referenced, and reselected the radio station requested from the HA Radio Browser. The script only seems to run as far as the initial attempt to set the volume.
Thanks.
alias: Radio 4 on soundbar (script)
description: Play on soundbar at 28% volume
sequence:
- service: media_player.volume_set
data:
volume_level: 0.28
target:
area_id: living_room
entity_id: media_player.soundbar_2
- service: media_player.play_media
target:
entity_id: media_player.googlehome4201
data:
media_content_id: ""
media_content_type: ""
metadata: {}
- service: media_player.play_media
target:
entity_id: media_player.soundbar_2
data:
media_content_id: media-source://radio_browser/d470fda1-753b-4037-973f-6f1bd27eb42f
media_content_type: audio/aac
metadata:
title: BBC Radio 4
thumbnail: https://i.imgur.com/OCqneDN.png
media_class: music
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://radio_browser
- media_content_type: music
media_content_id: media-source://radio_browser/country/GB
mode: single
icon: mdi:audio-video
Trace reads:
Play media on Corner
(script.1708445821467) turned off
Stopped because an error was encountered at 21 February 2024 at 12:05:14 (runtime: 0.06 seconds)
string index out of range
1 post - 1 participant