1
0

Change bathroom automations

Merge with white temperature automations
This commit is contained in:
pgrondek 2021-05-25 13:54:21 +02:00
parent 9cd62eb477
commit 92bf8c23e2
4 changed files with 78 additions and 12 deletions

View File

@ -58,8 +58,20 @@
for: '0:05:00'
from: 'on'
to: 'off'
- platform: state
entity_id: binary_sensor.shower_motion
for: '0:02:00'
from: 'on'
to: 'off'
condition:
- condition: state
entity_id: binary_sensor.bathroom_motion_occupancy
for: '0:02:00'
state: 'off'
- condition: state
entity_id: binary_sensor.shower_motion
for: '0:02:00'
state: 'off'
action:
- service: light.turn_off
entity_id:
- light.bathroom_lights
- light.bathroom_mirror_lights
entity_id: light.bathroom_lights

View File

@ -1,5 +1,5 @@
- id: button-bathroom-mirror-on
alias: '[Bathroom] Mirror Button On'
- id: bathroom-mirror-lights-on
alias: '[Bathroom] Mirror Lights On'
trigger:
- device_id: 4d5298037e93ba11438409bff01b5005
domain: zha
@ -7,11 +7,30 @@
type: remote_button_short_press
subtype: turn_on
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'on'
sequence:
- service: light.turn_on
data:
entity_id: light.bathroom_mirror_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_mirror_lights
data:
brightness_pct: 100
kelvin: 3200
mode: single
- id: button-bathroom-mirror-off
- id: bathroom-mirror-lights-off
alias: '[Bathroom] Mirror Button Off'
trigger:
- device_id: 4d5298037e93ba11438409bff01b5005
@ -19,6 +38,11 @@
platform: device
type: remote_button_short_press
subtype: turn_off
- platform: state
entity_id: binary_sensor.bathroom_motion_occupancy
for: '0:05:00'
from: 'on'
to: 'off'
action:
- service: light.turn_off
data:

View File

@ -20,6 +20,7 @@
data:
device_name: Bathroom speaker
uri: 'spotify:playlist:71mXIu6HcdVj3fAMduaHop'
- id: bathroom-music-off
alias: '[Bathroom] Music Off'
mode: restart

View File

@ -7,8 +7,27 @@
from: 'off'
to: 'on'
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'on'
sequence:
- service: light.turn_on
entity_id: light.shower_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.shower_lights
data:
brightness_pct: 100
kelvin: 3200
- id: bathroom-shower-motion-off
alias: '[Bathroom] Shower Motion Off'
@ -16,9 +35,19 @@
trigger:
- platform: state
entity_id: binary_sensor.shower_motion
for: '0:01:00'
for: '0:02:00'
from: 'on'
to: 'off'
- platform: state
entity_id: binary_sensor.bathroom_motion_occupancy
for: '0:05:00'
from: 'on'
to: 'off'
condition:
- condition: state
entity_id: binary_sensor.shower_motion
for: '0:02:00'
state: 'off'
action:
- service: light.turn_off
entity_id: light.shower_lights