2021-01-11 00:33:46 +00:00
|
|
|
- id: hallway-motion-day
|
|
|
|
alias: '[Hallway] Motion Day'
|
2021-01-10 23:07:44 +00:00
|
|
|
mode: restart
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.hallway_motion_sensor
|
|
|
|
from: 'off'
|
|
|
|
to: 'on'
|
2021-01-11 00:33:46 +00:00
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
2021-01-10 23:07:44 +00:00
|
|
|
action:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.hallway_lightstrip
|
2021-01-11 00:33:46 +00:00
|
|
|
data:
|
|
|
|
brightness: 100
|
|
|
|
kelvin: 2000
|
|
|
|
- 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: 5
|
|
|
|
rgb_color:
|
|
|
|
- 255
|
|
|
|
- 0
|
|
|
|
- 0
|
2021-01-10 23:07:44 +00:00
|
|
|
- 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
|