Attempt to smooth out room presence sensors

This commit is contained in:
2023-11-04 13:47:18 -04:00
parent 20c150db61
commit dacab9ef4a

View File

@ -218,18 +218,21 @@ template:
is_state('light.master_bedroom_closet','on') or is_state('light.master_bedroom_closet','on') or
is_state('input_boolean.master_bedroom_sleeping','on') or is_state('input_boolean.master_bedroom_sleeping','on') or
not is_state('media_player.master_bedroom_firetv','off') }} not is_state('media_player.master_bedroom_firetv','off') }}
delay_off: "00:00:15"
- name: "Kallen Bedroom Occupied" - name: "Kallen Bedroom Occupied"
unique_id: d3fdbaee-48bd-44df-820e-6cbfd3d24c11 unique_id: d3fdbaee-48bd-44df-820e-6cbfd3d24c11
device_class: occupancy device_class: occupancy
state: > state: >
{{ is_state('light.kallen_bedroom_lights','on') or {{ is_state('light.kallen_bedroom_lights','on') or
is_state('input_boolean.kallen_sleeping','on') }} is_state('input_boolean.kallen_sleeping','on') }}
delay_off: "00:00:15"
- name: "Emma Bedroom Occupied" - name: "Emma Bedroom Occupied"
unique_id: d775db9a-187d-4c4b-a49d-f0e5a1e6ce3b unique_id: d775db9a-187d-4c4b-a49d-f0e5a1e6ce3b
device_class: occupancy device_class: occupancy
state: > state: >
{{ is_state('light.emma_bedroom_light','on') or {{ is_state('light.emma_bedroom_light','on') or
is_state('input_boolean.emma_sleeping','on') }} is_state('input_boolean.emma_sleeping','on') }}
delay_off: "00:00:15"
- name: "Living Room Occupied" - name: "Living Room Occupied"
unique_id: 25623e3d-d74f-471e-8c2d-abce16646282 unique_id: 25623e3d-d74f-471e-8c2d-abce16646282
device_class: occupancy device_class: occupancy
@ -240,7 +243,8 @@ template:
unique_id: fad33281-1c1a-4362-93e6-398334358027 unique_id: fad33281-1c1a-4362-93e6-398334358027
device_class: occupancy device_class: occupancy
state: > state: >
{{ is_state('timer.downstairs_bathroom_lights_timer','active') or is_state('binary_sensor.downstairs_bathroom_motion','on') }} {{ is_state('binary_sensor.downstairs_bathroom_motion','on') or is_state('timer.downstairs_bathroom_lights_timer','active') }}
delay_off: "00:00:15"
- sensor: - sensor:
- unique_id: people_at_home - unique_id: people_at_home
name: People at Home name: People at Home