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:
|
2021-05-25 12:33:35 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
|
|
|
- condition: numeric_state
|
2022-05-02 23:34:47 +00:00
|
|
|
entity_id: sensor.office_illuminance
|
2022-04-23 18:22:09 +00:00
|
|
|
below: '150'
|
2021-05-25 12:33:35 +00:00
|
|
|
sequence:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
state: 'on'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.kitchen_lights
|
|
|
|
data:
|
|
|
|
brightness_pct: 100
|
|
|
|
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.kitchen_lights
|
|
|
|
data:
|
|
|
|
brightness_pct: 100
|
|
|
|
kelvin: 3200
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Night
|
2022-04-21 21:17:44 +00:00
|
|
|
- condition: numeric_state
|
2022-05-02 23:34:47 +00:00
|
|
|
entity_id: sensor.office_illuminance
|
2022-04-21 21:17:44 +00:00
|
|
|
below: '100'
|
2021-05-25 12:33:35 +00:00
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.kitchen_lights
|
|
|
|
data:
|
|
|
|
brightness_pct: 5
|
|
|
|
kelvin: 2700
|
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:
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.kitchen_lights
|
2022-04-23 19:32:26 +00:00
|
|
|
|
|
|
|
- id: kitchen-sink-light-off
|
|
|
|
alias: '[Kitchen] Sink light off'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- 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'
|
|
|
|
for: '0:05:00'
|
|
|
|
condition: [ ]
|
|
|
|
action:
|
|
|
|
- service: light.turn_off
|
|
|
|
data: { }
|
|
|
|
target:
|
|
|
|
entity_id: light.kitchen_sink_lighstrip
|