Interior door sensors and automations
This commit is contained in:
@ -539,6 +539,30 @@ automation:
|
||||
seconds: 2
|
||||
# The delay is to prevent the boolean from re-running the automation if the lights were turned on manually
|
||||
|
||||
- id: 47645bcf-a6ed-4c34-8ece-8daed4b10d9a
|
||||
alias: Basement Door Handling
|
||||
description: Turns on lights in basement when door is opened, if not already on
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.basement_studio_door
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
id: door-open
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.studio_quiet
|
||||
state: 'off'
|
||||
action:
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: light.basement_studio_lights
|
||||
state: 'off'
|
||||
then:
|
||||
- service: light.turn_on
|
||||
target:
|
||||
entity_id: light.basement_studio_lights
|
||||
|
||||
script:
|
||||
adaptive_on_first_floor:
|
||||
alias: Adaptive on First Floor
|
||||
|
Reference in New Issue
Block a user