2021-01-11 04:49:34 +01: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-12-12 23:19:49 +01:00
|
|
|
below: '16'
|
2021-01-11 04:49:34 +01:00
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
2022-08-06 23:41:47 +02:00
|
|
|
- condition: state
|
|
|
|
entity_id: media_player.bedroom_tv
|
|
|
|
state: 'off'
|
2021-01-11 04:49:34 +01:00
|
|
|
action:
|
2022-08-06 23:41:47 +02:00
|
|
|
- service: script.bedroom_lights_on
|
2021-05-10 12:24:31 +02:00
|
|
|
|
2021-01-11 04:49:34 +01: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 23:28:54 +01:00
|
|
|
condition:
|
|
|
|
- condition: state
|
2022-04-30 18:05:15 +02:00
|
|
|
entity_id: alarm_control_panel.home_alarm
|
2021-01-18 23:28:54 +01:00
|
|
|
state: disarmed
|
2021-01-11 04:49:34 +01:00
|
|
|
action:
|
2021-11-12 02:56:26 +01:00
|
|
|
- service: script.bedroom_lights_off
|