Now the theater light shouldnt turn off when we dont want it to.

This commit is contained in:
Jeffrey Stone 2022-02-24 23:31:08 -05:00
parent 787fff4004
commit 2791f04209
1 changed files with 3 additions and 10 deletions

View File

@ -280,16 +280,9 @@ script:
sequence: sequence:
- condition: and - condition: and
conditions: conditions:
- condition: template - condition: state
value_template: > entity_id: media_player.theater_tv
{%- if states.media_player.home_theater != "playing" -%} state: 'off'
true
{%- endif -%}
- condition: template
value_template: >
{%- if states.media_player.playstation_4 != "playing" -%}
true
{%- endif -%}
- condition: state - condition: state
entity_id: binary_sensor.theater_occupancy entity_id: binary_sensor.theater_occupancy
state: 'off' state: 'off'