Przemek Grondek
8816d10ca1
Add bedroom motion Update bathroom motion brightness and color temperature Update hallway motion
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
- id: hallway-motion-day
|
|
alias: '[Hallway] Motion Day'
|
|
mode: restart
|
|
trigger:
|
|
- platform: state
|
|
entity_id: binary_sensor.hallway_motion_sensor
|
|
from: 'off'
|
|
to: 'on'
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_select.home_mode
|
|
state: Day
|
|
action:
|
|
- service: light.turn_on
|
|
entity_id: light.hallway_lightstrip
|
|
data:
|
|
brightness_pct: 100
|
|
kelvin: 3200
|
|
- id: hallway-motion-night
|
|
alias: '[Hallway] Motion Night'
|
|
mode: restart
|
|
trigger:
|
|
- platform: state
|
|
entity_id: binary_sensor.hallway_motion_sensor
|
|
from: 'off'
|
|
to: 'on'
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_select.home_mode
|
|
state: Night
|
|
action:
|
|
- service: light.turn_on
|
|
entity_id: light.hallway_lightstrip
|
|
data:
|
|
brightness_pct: 5
|
|
rgb_color:
|
|
- 255
|
|
- 0
|
|
- 0
|
|
- id: hallway-motion-off
|
|
alias: '[Hallway] Motion Off'
|
|
mode: restart
|
|
trigger:
|
|
- platform: state
|
|
entity_id: binary_sensor.hallway_motion_sensor
|
|
for: '0:02:00'
|
|
from: 'on'
|
|
to: 'off'
|
|
action:
|
|
- service: light.turn_off
|
|
entity_id: light.hallway_lightstrip
|