From 6dcfcb9ccdf8b775ec0a4cc268be594c5f5924c1 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Fri, 21 Apr 2023 14:13:06 -0400 Subject: [PATCH] Block unwanted light control after streaming or napping starts --- packages/lighting_and_scenes.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/packages/lighting_and_scenes.yaml b/packages/lighting_and_scenes.yaml index 3783d1d..eb39598 100644 --- a/packages/lighting_and_scenes.yaml +++ b/packages/lighting_and_scenes.yaml @@ -741,6 +741,18 @@ automation: from: 'off' to: 'on' id: basement-unoccupied + - platform: state + entity_id: + - input_boolean.studio_quiet + - input_boolean.recliner_mode + from: 'off' + to: 'on' + id: studio-quiet + - platform: state + entity_id: sensor.twitch_ironnerd24 + from: 'offline' + to: 'streaming' + id: stream-started condition: - condition: state entity_id: input_boolean.studio_quiet @@ -780,7 +792,10 @@ automation: {{ timer_duration('input_number.basement_studio_lights_off_delay') }} - conditions: - condition: trigger - id: basement-occupied + id: + - basement-occupied + - studio-quiet + - stream-started sequence: - service: timer.cancel target: