From a38cb080da6cee6097a8c2043ea6ab3bd5a1894d Mon Sep 17 00:00:00 2001 From: Bastian de Byl Date: Thu, 1 Oct 2026 16:21:09 -0400 Subject: [PATCH] feat(hass): hook the living room desk lamp into the light schedule switch.desk_lamp (EP10) is an on/off switch, so the area-targeted light.* actions skip it. It now follows light.living_room explicitly: on at sunset unless TV mode is on, on when the TV goes off in the evening, and off with the living room at 23:30, the 01:00 sweep and when the TV goes off late at night. Co-Authored-By: Claude Opus 5.5 --- ansible/roles/podman/files/hass/automations.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ansible/roles/podman/files/hass/automations.yaml b/ansible/roles/podman/files/hass/automations.yaml index 820e616..ac555cc 100644 --- a/ansible/roles/podman/files/hass/automations.yaml +++ b/ansible/roles/podman/files/hass/automations.yaml @@ -89,6 +89,9 @@ - action: script.evening_lights_apply data: apply: force + - action: switch.turn_on + target: + entity_id: switch.desk_lamp - conditions: - condition: or conditions: @@ -100,6 +103,9 @@ - action: light.turn_off target: area_id: living_room + - action: switch.turn_off + target: + entity_id: switch.desk_lamp mode: single - id: driveway_lights_on alias: Driveway String Lights On @@ -155,6 +161,10 @@ brightness_pct: 5 target: area_id: living_room + else: + - action: switch.turn_on + target: + entity_id: switch.desk_lamp mode: single - id: evening_dim_ramp alias: Lights - Evening Dim Ramp @@ -197,6 +207,9 @@ - action: light.turn_off target: entity_id: light.living_room + - action: switch.turn_off + target: + entity_id: switch.desk_lamp mode: single - id: lights_sweep_0100 alias: Lights - Sweep (01:00) @@ -226,6 +239,9 @@ - action: light.turn_off target: entity_id: light.living_room + - action: switch.turn_off + target: + entity_id: switch.desk_lamp mode: single - id: '1768862300896' alias: Bedroom On