My script to switch on internet radio and immediately set the correct volume no longer works completely. Internet radio turns on but the volume does not change. I also have scripts to set the volume to a certain setting in one go, this one works. Anyone have any idea why the last part of the script is not executed? I also tried to run the volume setting in the beginning of the script but that doesn’t work either.
From this last part won’t work
skyradio_internetradio:
alias: SkyRadio
sequence:
- service: homeassistant.turn_on
data:
entity_id: switch.internet_radio
- service: homeassistant.turn_off
data:
entity_id:
- switch.veronica
- switch.radio10
- switch.qmusic
- switch.slamfm
- service: media_player.play_media
target:
entity_id: media_player.192_168_13_202
data:
media_content_id: media-source://radio_browser/9650457a-0601-11e8-ae97-52543be04c81
media_content_type: audio/mpeg
metadata:
title: Sky Radio 101 FM
thumbnail: http://www.skyradio.nl/icons/apple-icon-120x120.png
media_class: music
children_media_class:
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://radio_browser
- media_content_type: music
media_content_id: media-source://radio_browser/country/NL
mode: single
icon: mdi:radio-tower
- service: media_player.volume_set
data_template:
entity_id: media_player.denon_avr_x1200w
volume_level: 0.25
Scripts for volume step works
volume20:
alias: volume 20
sequence:
- service: media_player.volume_set
data_template:
entity_id: media_player.denon_avr_x1200w
volume_level: 0.2
volume25:
alias: volume 25
sequence:
- service: media_player.volume_set
data_template:
entity_id: media_player.denon_avr_x1200w
volume_level: 0.25
volume30:
alias: volume 30
sequence:
- service: media_player.volume_set
data_template:
entity_id: media_player.denon_avr_x1200w
volume_level: 0.3