Change bathroom automations
Merge multiple automations to one Merge with white temperature automations
This commit is contained in:
parent
75709f5c86
commit
9cd62eb477
@ -1,34 +0,0 @@
|
||||
- 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
|
65
configuration/automations/bathroom-lights.yaml
Normal file
65
configuration/automations/bathroom-lights.yaml
Normal file
@ -0,0 +1,65 @@
|
||||
- id: button-lights-on
|
||||
alias: '[Bathroom] Lights On'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bathroom_motion_occupancy
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bathroom_door_open_close
|
||||
to: 'on'
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.home_mode
|
||||
state: Day
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
entity_id: light.bathroom_lights
|
||||
data:
|
||||
brightness_pct: 100
|
||||
kelvin: 2000
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.sleep_mode
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: light.toggle
|
||||
entity_id: light.bathroom_lights
|
||||
data:
|
||||
brightness_pct: 100
|
||||
kelvin: 3200
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.home_mode
|
||||
state: Night
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
entity_id: light.bathroom_lights
|
||||
data:
|
||||
brightness_pct: 5
|
||||
kelvin: 2700
|
||||
mode: single
|
||||
|
||||
- id: bathroom-lights-off
|
||||
alias: '[Bathroom] Lights Off'
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bathroom_motion_occupancy
|
||||
for: '0:05:00'
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
action:
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- light.bathroom_lights
|
||||
- light.bathroom_mirror_lights
|
@ -1,50 +0,0 @@
|
||||
- id: bathroom-motion-day
|
||||
alias: '[Bathroom] Motion Day'
|
||||
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: Day
|
||||
action:
|
||||
- service: light.turn_on
|
||||
entity_id: light.bathroom_lights
|
||||
data:
|
||||
brightness_pct: 100
|
||||
kelvin: 3200
|
||||
- id: bathroom-motion-night
|
||||
alias: '[Bathroom] Motion Night'
|
||||
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: Night
|
||||
action:
|
||||
- service: light.turn_on
|
||||
entity_id: light.bathroom_lights
|
||||
data:
|
||||
brightness_pct: 5
|
||||
kelvin: 2700
|
||||
- id: bathroom-motion-off
|
||||
alias: '[Bathroom] Motion Off'
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bathroom_motion_occupancy
|
||||
for: '0:05:00'
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
action:
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- light.bathroom_lights
|
||||
- light.bathroom_mirror_lights
|
Loading…
Reference in New Issue
Block a user