Fix Syntax Error
This commit is contained in:
@@ -41,10 +41,12 @@ script:
|
|||||||
option: Idle
|
option: Idle
|
||||||
|
|
||||||
# Roku Input
|
# 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:
|
sequence:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions: "{{ is_state('media_player.living_room_roku', 'playing' }}"
|
- conditions:
|
||||||
|
- condition: "{{ is_state('media_player.living_room_roku', 'playing' }}"
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
@@ -52,7 +54,8 @@ script:
|
|||||||
data:
|
data:
|
||||||
option: Playing
|
option: Playing
|
||||||
|
|
||||||
- conditions: "{{ is_state('media_player.living_room_roku', 'paused' }}"
|
- conditions:
|
||||||
|
- condition: "{{ is_state('media_player.living_room_roku', 'paused' }}"
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
@@ -82,7 +85,7 @@ automation:
|
|||||||
to: Stopped
|
to: Stopped
|
||||||
for:
|
for:
|
||||||
minutes: 10
|
minutes: 10
|
||||||
actions:
|
action:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
entity_id: "{{ trigger.entity_id }}"
|
entity_id: "{{ trigger.entity_id }}"
|
||||||
@@ -95,5 +98,5 @@ automation:
|
|||||||
event: start
|
event: start
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: media_player.living_room_receiver
|
entity_id: media_player.living_room_receiver
|
||||||
actions:
|
action:
|
||||||
- service: script.ht_player_state_update
|
- service: script.ht_player_state_update
|
||||||
|
|||||||
Reference in New Issue
Block a user