Add new condition for basement door sensor closed
This commit is contained in:
@ -549,11 +549,23 @@ automation:
|
|||||||
from: 'off'
|
from: 'off'
|
||||||
to: 'on'
|
to: 'on'
|
||||||
id: door-open
|
id: door-open
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.basement_studio_door
|
||||||
|
from: 'on'
|
||||||
|
to: 'off'
|
||||||
|
for:
|
||||||
|
minutes: 10
|
||||||
|
id: door-closed
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.studio_quiet
|
entity_id: input_boolean.studio_quiet
|
||||||
state: 'off'
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
|
choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: door-open
|
||||||
|
sequence:
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: light.basement_studio_lights
|
entity_id: light.basement_studio_lights
|
||||||
@ -562,6 +574,24 @@ automation:
|
|||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: light.basement_studio_lights
|
entity_id: light.basement_studio_lights
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: door-closed
|
||||||
|
sequence:
|
||||||
|
- if:
|
||||||
|
- condition: and
|
||||||
|
conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.tony_desktop_on
|
||||||
|
state: 'off'
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.kallen_desktop_on
|
||||||
|
state: 'off'
|
||||||
|
then:
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: light.basement_studio_lights
|
||||||
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
adaptive_on_first_floor:
|
adaptive_on_first_floor:
|
||||||
|
Reference in New Issue
Block a user