2021-01-11 03:49:34 +00:00
|
|
|
- id: bedroom-motion-dark
|
|
|
|
alias: '[Bedroom] Motion day dark'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.bedroom_motion_occupancy
|
|
|
|
from: 'off'
|
|
|
|
to: 'on'
|
|
|
|
condition:
|
|
|
|
- condition: numeric_state
|
|
|
|
entity_id: sensor.bedroom_motion_illuminance
|
2021-08-12 21:15:36 +00:00
|
|
|
below: '21'
|
2021-01-11 03:49:34 +00:00
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
|
|
|
action:
|
2021-05-25 12:33:35 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
state: 'on'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.bedroom_lights
|
|
|
|
data:
|
|
|
|
brightness_pct: 60
|
|
|
|
kelvin: 2000
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
state: 'off'
|
|
|
|
sequence:
|
2021-05-25 14:56:30 +00:00
|
|
|
- service: light.turn_on
|
2021-05-25 12:33:35 +00:00
|
|
|
entity_id: light.bedroom_lights
|
|
|
|
data:
|
|
|
|
brightness_pct: 60
|
|
|
|
kelvin: 3200
|
2021-05-10 10:24:31 +00:00
|
|
|
|
2021-01-11 03:49:34 +00:00
|
|
|
- id: bedroom-motion-off
|
|
|
|
alias: '[Bedroom] Motion Off'
|
|
|
|
mode: restart
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.bedroom_motion_occupancy
|
|
|
|
for: '0:02:00'
|
|
|
|
from: 'on'
|
|
|
|
to: 'off'
|
2021-01-18 22:28:54 +00:00
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: alarm_control_panel.ha_alarm
|
|
|
|
state: disarmed
|
2021-01-11 03:49:34 +00:00
|
|
|
action:
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.bedroom_lights
|