1
0

Add bathroom door sensor automations

This commit is contained in:
pgrondek 2021-05-10 11:26:11 +02:00
parent 4c0b0c4140
commit 1c25a6ee23
3 changed files with 38 additions and 20 deletions

View File

@ -17,6 +17,10 @@
- platform: state
entity_id: binary_sensor.shower_motion
to: 'on'
# Use open/close sensors
- platform: state
entity_id: binary_sensor.bathroom_door_open_close
to: 'open'
- platform: state
entity_id: binary_sensor.bedroom_window_open_close
to: 'open'

View File

@ -0,0 +1,34 @@
- id: bathroom-door-day
alias: '[Bathroom] Door Open Day'
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.bathroom_door_open_close
to: 'on'
condition:
- condition: state
entity_id: input_select.home_mode
state: Day
action:
- service: light.turn_on
entity_id: light.bathroom_lights
data:
brightness_pct: 100
kelvin: 3200
- id: bathroom-door-night
alias: '[Bathroom] Door Night'
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.bathroom_door_open_close
to: 'on'
condition:
- condition: state
entity_id: input_select.home_mode
state: Night
action:
- service: light.turn_on
entity_id: light.bathroom_lights
data:
brightness_pct: 5
kelvin: 2700

View File

@ -16,26 +16,6 @@
data:
brightness_pct: 100
kelvin: 3200
- id: bathroom-motion-party
alias: '[Bathroom] Motion Party'
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.bathroom_motion_occupancy
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: input_select.home_mode
state: Party
action:
- service: light.turn_on
entity_id:
- light.bathroom_lights
- light.bathroom_mirror_lights
data:
brightness_pct: 100
kelvin: 3200
- id: bathroom-motion-night
alias: '[Bathroom] Motion Night'
mode: restart