mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
More light fixes
This commit is contained in:
@@ -74,7 +74,7 @@ template:
|
||||
{% set outside_temp_high = states('sensor.dark_sky_apparent_temperature')|float + 2 >= states('input_number.toshiba_trigger_temp')|float %}
|
||||
{% set someone_home = is_state('binary_sensor.someone_home', 'on') %}
|
||||
{% set bedroom_ready = is_state('group.bedroom_windows', 'off') or is_state('binary_sensor.bedroom_door_contact', 'off') %}
|
||||
{% set kitchen_ready = is_state('binary_sensor.kitchen_window_contact', 'off') or is_state('binary_sensor.kitchen_door_contact', 'off') %}
|
||||
{% set kitchen_ready = is_state('binary_sensor.kitchen_window_contact', 'off') or is_state('binary_sensor.kitchen_door', 'off') %}
|
||||
{% set ac_off = is_state('climate.toshiba_ac', 'off') %}
|
||||
{{ temp_matching and outside_temp_high and someone_home and bedroom_ready and kitchen_ready and ac_off }}
|
||||
|
||||
@@ -160,7 +160,7 @@ automation:
|
||||
- binary_sensor.living_room_right_window_contact
|
||||
- group.bedroom_windows
|
||||
- binary_sensor.kitchen_window_contact
|
||||
- binary_sensor.kitchen_door_contact
|
||||
- binary_sensor.kitchen_door
|
||||
from: "on"
|
||||
to: "off"
|
||||
action:
|
||||
|
||||
Reference in New Issue
Block a user