This commit is contained in:
Home Assistant Version Control
2026-08-05 20:45:47 +00:00
parent 9fb5aa9215
commit 4f53ecde30
3 changed files with 32 additions and 13 deletions
+15
View File
@@ -223,6 +223,10 @@
minutes: 0
seconds: 0
id: turn_off_logic
- trigger: state
entity_id: input_boolean.office_keep_lights_on
to: 'on'
id: keep_on_enabled
conditions: []
actions:
- choose:
@@ -270,6 +274,14 @@
data:
message: Office Lights Turned Off due to inactivity
title: ⚡️ Office Lights
- conditions:
- condition: trigger
id: keep_on_enabled
sequence:
- action: light.turn_on
target:
entity_id: light.playroom_light
data: {}
mode: restart
- id: '1781034724187'
alias: 'Office: Turn Off Lights on Exit'
@@ -286,6 +298,9 @@
- condition: template
value_template: '{{ states.binary_sensor.basement.last_changed > states.binary_sensor.office_door_contact.last_changed
}}'
- condition: state
entity_id: input_boolean.office_keep_lights_on
state: 'off'
actions:
- delay:
minutes: 2