2023-06-12 21:56:22 +00:00
|
|
|
- id: bedroom_bed_motion_night
|
2021-06-07 09:06:46 +00:00
|
|
|
alias: '[Bedroom] Bed motion night'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.bedroom_bed_motion_sensor_ias_zone
|
|
|
|
from: 'off'
|
|
|
|
to: 'on'
|
|
|
|
action:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Night
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.bed_lightstrip
|
|
|
|
data:
|
2021-12-05 22:30:07 +00:00
|
|
|
brightness_pct: 10
|
2021-06-07 09:06:46 +00:00
|
|
|
rgb_color:
|
|
|
|
- 255
|
|
|
|
- 0
|
|
|
|
- 0
|
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bedroom_bed_motion_off
|
2021-06-07 09:06:46 +00:00
|
|
|
alias: '[Bedroom] Bed motion Off'
|
|
|
|
mode: restart
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.bedroom_bed_motion_sensor_ias_zone
|
|
|
|
for: '0:01:00'
|
|
|
|
from: 'on'
|
|
|
|
to: 'off'
|
|
|
|
action:
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.bed_lightstrip
|