Add bathroom door sensor automations
This commit is contained in:
parent
4c0b0c4140
commit
1c25a6ee23
@ -17,6 +17,10 @@
|
|||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.shower_motion
|
entity_id: binary_sensor.shower_motion
|
||||||
to: 'on'
|
to: 'on'
|
||||||
|
# Use open/close sensors
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.bathroom_door_open_close
|
||||||
|
to: 'open'
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.bedroom_window_open_close
|
entity_id: binary_sensor.bedroom_window_open_close
|
||||||
to: 'open'
|
to: 'open'
|
||||||
|
34
automations/files/automations/bathroom-door.yaml
Normal file
34
automations/files/automations/bathroom-door.yaml
Normal 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
|
@ -16,26 +16,6 @@
|
|||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
kelvin: 3200
|
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
|
- id: bathroom-motion-night
|
||||||
alias: '[Bathroom] Motion Night'
|
alias: '[Bathroom] Motion Night'
|
||||||
mode: restart
|
mode: restart
|
||||||
|
Loading…
Reference in New Issue
Block a user