From 2791f04209e42cd9d7cc169404ca06b16fbbd312 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Thu, 24 Feb 2022 23:31:08 -0500 Subject: [PATCH] Now the theater light shouldnt turn off when we dont want it to. --- config/packages/lighting.yaml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/config/packages/lighting.yaml b/config/packages/lighting.yaml index af57b31..986b4f6 100755 --- a/config/packages/lighting.yaml +++ b/config/packages/lighting.yaml @@ -280,16 +280,9 @@ script: sequence: - condition: and conditions: - - condition: template - value_template: > - {%- if states.media_player.home_theater != "playing" -%} - true - {%- endif -%} - - condition: template - value_template: > - {%- if states.media_player.playstation_4 != "playing" -%} - true - {%- endif -%} + - condition: state + entity_id: media_player.theater_tv + state: 'off' - condition: state entity_id: binary_sensor.theater_occupancy state: 'off'