Change bathroom automations
Merge with white temperature automations
This commit is contained in:
parent
9cd62eb477
commit
92bf8c23e2
@ -58,8 +58,20 @@
|
|||||||
for: '0:05:00'
|
for: '0:05:00'
|
||||||
from: 'on'
|
from: 'on'
|
||||||
to: 'off'
|
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:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id:
|
entity_id: light.bathroom_lights
|
||||||
- light.bathroom_lights
|
|
||||||
- light.bathroom_mirror_lights
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- id: button-bathroom-mirror-on
|
- id: bathroom-mirror-lights-on
|
||||||
alias: '[Bathroom] Mirror Button On'
|
alias: '[Bathroom] Mirror Lights On'
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 4d5298037e93ba11438409bff01b5005
|
- device_id: 4d5298037e93ba11438409bff01b5005
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -7,11 +7,30 @@
|
|||||||
type: remote_button_short_press
|
type: remote_button_short_press
|
||||||
subtype: turn_on
|
subtype: turn_on
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- choose:
|
||||||
data:
|
- conditions:
|
||||||
entity_id: light.bathroom_mirror_lights
|
- condition: state
|
||||||
|
entity_id: input_boolean.sleep_mode
|
||||||
|
state: 'on'
|
||||||
|
sequence:
|
||||||
|
- service: light.turn_on
|
||||||
|
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
|
mode: single
|
||||||
- id: button-bathroom-mirror-off
|
|
||||||
|
- id: bathroom-mirror-lights-off
|
||||||
alias: '[Bathroom] Mirror Button Off'
|
alias: '[Bathroom] Mirror Button Off'
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 4d5298037e93ba11438409bff01b5005
|
- device_id: 4d5298037e93ba11438409bff01b5005
|
||||||
@ -19,6 +38,11 @@
|
|||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_short_press
|
||||||
subtype: turn_off
|
subtype: turn_off
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.bathroom_motion_occupancy
|
||||||
|
for: '0:05:00'
|
||||||
|
from: 'on'
|
||||||
|
to: 'off'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
data:
|
data:
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
data:
|
data:
|
||||||
device_name: Bathroom speaker
|
device_name: Bathroom speaker
|
||||||
uri: 'spotify:playlist:71mXIu6HcdVj3fAMduaHop'
|
uri: 'spotify:playlist:71mXIu6HcdVj3fAMduaHop'
|
||||||
|
|
||||||
- id: bathroom-music-off
|
- id: bathroom-music-off
|
||||||
alias: '[Bathroom] Music Off'
|
alias: '[Bathroom] Music Off'
|
||||||
mode: restart
|
mode: restart
|
||||||
|
@ -7,8 +7,27 @@
|
|||||||
from: 'off'
|
from: 'off'
|
||||||
to: 'on'
|
to: 'on'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- choose:
|
||||||
entity_id: light.shower_lights
|
- 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
|
- id: bathroom-shower-motion-off
|
||||||
alias: '[Bathroom] Shower Motion Off'
|
alias: '[Bathroom] Shower Motion Off'
|
||||||
@ -16,9 +35,19 @@
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.shower_motion
|
entity_id: binary_sensor.shower_motion
|
||||||
for: '0:01:00'
|
for: '0:02:00'
|
||||||
from: 'on'
|
from: 'on'
|
||||||
to: 'off'
|
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:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.shower_lights
|
entity_id: light.shower_lights
|
Loading…
Reference in New Issue
Block a user