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
|
- action: script.evening_lights_apply
|
||||||
data:
|
data:
|
||||||
apply: force
|
apply: force
|
||||||
|
- action: switch.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: switch.desk_lamp
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: or
|
- condition: or
|
||||||
conditions:
|
conditions:
|
||||||
@@ -100,6 +103,9 @@
|
|||||||
- action: light.turn_off
|
- action: light.turn_off
|
||||||
target:
|
target:
|
||||||
area_id: living_room
|
area_id: living_room
|
||||||
|
- action: switch.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: switch.desk_lamp
|
||||||
mode: single
|
mode: single
|
||||||
- id: driveway_lights_on
|
- id: driveway_lights_on
|
||||||
alias: Driveway String Lights On
|
alias: Driveway String Lights On
|
||||||
@@ -155,6 +161,10 @@
|
|||||||
brightness_pct: 5
|
brightness_pct: 5
|
||||||
target:
|
target:
|
||||||
area_id: living_room
|
area_id: living_room
|
||||||
|
else:
|
||||||
|
- action: switch.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: switch.desk_lamp
|
||||||
mode: single
|
mode: single
|
||||||
- id: evening_dim_ramp
|
- id: evening_dim_ramp
|
||||||
alias: Lights - Evening Dim Ramp
|
alias: Lights - Evening Dim Ramp
|
||||||
@@ -197,6 +207,9 @@
|
|||||||
- action: light.turn_off
|
- action: light.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: light.living_room
|
entity_id: light.living_room
|
||||||
|
- action: switch.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: switch.desk_lamp
|
||||||
mode: single
|
mode: single
|
||||||
- id: lights_sweep_0100
|
- id: lights_sweep_0100
|
||||||
alias: Lights - Sweep (01:00)
|
alias: Lights - Sweep (01:00)
|
||||||
@@ -226,6 +239,9 @@
|
|||||||
- action: light.turn_off
|
- action: light.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: light.living_room
|
entity_id: light.living_room
|
||||||
|
- action: switch.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: switch.desk_lamp
|
||||||
mode: single
|
mode: single
|
||||||
- id: '1768862300896'
|
- id: '1768862300896'
|
||||||
alias: Bedroom On
|
alias: Bedroom On
|
||||||
|
|||||||
Reference in New Issue
Block a user