2021-05-25 12:33:35 +00:00
|
|
|
- id: kitchen-lights-on
|
|
|
|
alias: '[Kitchen] Lights On'
|
2021-01-12 23:34:38 +00:00
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.kitchen_motion_sensor
|
|
|
|
from: 'off'
|
|
|
|
to: 'on'
|
2022-04-24 00:20:47 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.kitchen_tabletop_motion_detection
|
|
|
|
to: 'on'
|
2021-01-12 23:34:38 +00:00
|
|
|
action:
|
2022-08-13 17:22:24 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: numeric_state
|
|
|
|
entity_id: sensor.office_illuminance
|
|
|
|
below: '150'
|
|
|
|
sequence:
|
|
|
|
- service: script.kitchen_lights_on
|
2021-05-10 10:24:31 +00:00
|
|
|
|
2021-05-25 12:33:35 +00:00
|
|
|
- id: kitchen-lights-off
|
|
|
|
alias: '[Kitchen] Lights Off'
|
2021-01-12 23:34:38 +00:00
|
|
|
mode: restart
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.kitchen_motion_sensor
|
|
|
|
for: '0:02:00'
|
|
|
|
from: 'on'
|
|
|
|
to: 'off'
|
2022-04-23 19:32:26 +00:00
|
|
|
- platform: state
|
2022-05-02 23:34:47 +00:00
|
|
|
entity_id: binary_sensor.kitchen_sink_motion_sensor
|
2022-04-23 19:32:26 +00:00
|
|
|
to: 'off'
|
2022-04-24 00:20:47 +00:00
|
|
|
for: '0:02:00'
|
2022-04-24 17:50:50 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.kitchen_tabletop_motion_detection
|
|
|
|
to: 'off'
|
|
|
|
for: '0:02:00'
|
2021-10-24 21:16:23 +00:00
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: binary_sensor.kitchen_motion_sensor
|
|
|
|
state: 'off'
|
|
|
|
for: '0:02:00'
|
2022-04-23 19:32:26 +00:00
|
|
|
- condition: state
|
2022-05-02 23:34:47 +00:00
|
|
|
entity_id: binary_sensor.kitchen_sink_motion_sensor
|
2022-04-23 19:32:26 +00:00
|
|
|
state: 'off'
|
2022-04-24 00:20:47 +00:00
|
|
|
for: '0:02:00'
|
|
|
|
- condition: state
|
|
|
|
entity_id: binary_sensor.kitchen_tabletop_motion_detection
|
|
|
|
state: 'off'
|
|
|
|
for: '0:02:00'
|
2021-01-12 23:34:38 +00:00
|
|
|
action:
|
2022-08-04 22:09:51 +00:00
|
|
|
- service: script.kitchen_lights_off
|