I have three scripts in scripts.yaml the first two work and the third does not. The third also appears different in on the home page, a slider (call service) instead of “Execute”.
Here is the scripts.yaml file
radio1:
alias: "Radio 1:IQ"
sequence:
- service: media_player.turn_on
data:
entity_id: media_player.tx8050
- service: media_player.play_media
data:
entity_id: media_player.tx8050
media_content_type: "radio"
media_content_id: "1"
radio2:
alias: "Radio 2:WVTF"
sequence:
- service: media_player.turn_on
data:
entity_id: media_player.tx8050
- service: media_player.play_media
data:
entity_id: media_player.tx8050
media_content_type: "radio"
media_content_id: "2"
radio3:
alias: "Radio IQ On"
sequence:
- service: switch.turn_on
entity_id: switch.leviton_dzpa11lw_plugin_appliance_module_switch
- delay: "00:02:00"
- service: media_player.turn_on
data:
entity_id: media_player.tx8050
- delay: "00:01:00"
- service: media_player.play_media
data:
entity_id: media_player.tx8050
media_content_type: "radio"
media_content_id: "1" text by 4 spaces