2023-06-12 21:56:22 +00:00
|
|
|
- id: living_room_lights_on
|
2023-04-22 18:03:39 +00:00
|
|
|
alias: '[Living Room] Lights On'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.presence_sensor_fp2_couch
|
|
|
|
to: 'on'
|
|
|
|
action:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: numeric_state
|
|
|
|
entity_id: sensor.office_illuminance
|
|
|
|
below: '200'
|
|
|
|
sequence:
|
|
|
|
- service: script.living_room_lights_on
|
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: living_room_lights_off
|
2023-04-22 18:03:39 +00:00
|
|
|
alias: '[Living Room] Lights Off'
|
|
|
|
mode: restart
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.presence_sensor_fp2_couch
|
|
|
|
to: 'off'
|
2023-04-25 12:58:41 +00:00
|
|
|
for:
|
|
|
|
seconds: 5
|
2023-04-22 18:03:39 +00:00
|
|
|
action:
|
|
|
|
- service: script.living_room_lights_off
|