Fix Syntax Error

This commit is contained in:
2022-05-16 13:35:20 -07:00
parent 6f622dc51e
commit fc3ae0c3fd

View File

@@ -41,10 +41,12 @@ script:
option: Idle
# Roku Input
- conditions: "{{ state_attr('media_player.living_room_receiver', 'source') == 'Roku Ultra' }}"
- conditions:
- condition: "{{ state_attr('media_player.living_room_receiver', 'source') == 'Roku Ultra' }}"
sequence:
- choose:
- conditions: "{{ is_state('media_player.living_room_roku', 'playing' }}"
- conditions:
- condition: "{{ is_state('media_player.living_room_roku', 'playing' }}"
sequence:
- service: input_select.select_option
target:
@@ -52,7 +54,8 @@ script:
data:
option: Playing
- conditions: "{{ is_state('media_player.living_room_roku', 'paused' }}"
- conditions:
- condition: "{{ is_state('media_player.living_room_roku', 'paused' }}"
sequence:
- service: input_select.select_option
target:
@@ -82,7 +85,7 @@ automation:
to: Stopped
for:
minutes: 10
actions:
action:
- service: input_select.select_option
target:
entity_id: "{{ trigger.entity_id }}"
@@ -95,5 +98,5 @@ automation:
event: start
- platform: state
entity_id: media_player.living_room_receiver
actions:
action:
- service: script.ht_player_state_update