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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
3d03332aaa
commit
a38cb080da
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user