3 files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user