2021-01-01 02:59:21 +00:00
|
|
|
- id: bathroom-shower-motion-on
|
2021-01-07 00:48:14 +00:00
|
|
|
alias: '[Bathroom] Shower Motion On'
|
2021-01-01 02:59:21 +00:00
|
|
|
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
|
2021-01-07 00:48:14 +00:00
|
|
|
alias: '[Bathroom] Shower Motion Off'
|
2021-01-01 02:59:21 +00:00
|
|
|
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
|