1
0

Change Bathroom automations

This commit is contained in:
Przemek Grondek 2021-01-01 03:59:21 +01:00
parent d59394d430
commit 5a9956cbcd
3 changed files with 51 additions and 2 deletions

View File

@ -0,0 +1,18 @@
- id: button-bathroom-on
alias: Button On computer cave
trigger:
- device_id: 800c754de6e6b10259f371adc123b909
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
condition: []
action:
- service: light.toggle
data:
entity_id:
- light.bathroom_1
- light.bathroom_2
- light.bathroom_3
- light.bathroom_4
mode: single

View File

@ -1,4 +1,4 @@
- id: button-bathroom-on
- id: button-bathroom-mirror-on
alias: Button On computer cave
trigger:
- device_id: 4d5298037e93ba11438409bff01b5005
@ -15,7 +15,7 @@
- light.mirror_middle
- light.mirror_right
mode: single
- id: button-bathroom-off
- id: button-bathroom-mirror-off
alias: Button Off computer cave
trigger:
- device_id: 4d5298037e93ba11438409bff01b5005

View File

@ -0,0 +1,31 @@
- id: bathroom-shower-motion-on
alias: Bathroom Shower Motion On
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.shower_motion
from: 'off'
to: 'on'
action:
- service: light.turn_on
entity_id:
- light.shower_1
- light.shower_2
- light.shower_3
- light.shower_4
- id: bathroom-shower-motion-off
alias: Bathroom Shower Motion Off
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.shower_motion
for: '0:01:00'
from: 'on'
to: 'off'
action:
- service: light.turn_off
entity_id:
- light.shower_1
- light.shower_2
- light.shower_3
- light.shower_4