From e30c3d38a40282d03adef4432e0c72c73ec12281 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sun, 19 Mar 2023 15:41:45 -0400 Subject: [PATCH] Turn on wife's desk lights if computer is turned on --- packages/lighting_and_scenes.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/lighting_and_scenes.yaml b/packages/lighting_and_scenes.yaml index 692eda7..8ba9f08 100644 --- a/packages/lighting_and_scenes.yaml +++ b/packages/lighting_and_scenes.yaml @@ -507,6 +507,11 @@ automation: from: 'off' to: 'on' id: lights-on + - platform: state + entity_id: binary_sensor.tina_desktop_on + from: 'off' + to: 'on' + id: computer-on action: - if: - condition: or @@ -515,6 +520,8 @@ automation: id: toggle-on - condition: trigger id: reset + - condition: trigger + id: computer-on then: - if: - condition: state