More light fixes

This commit is contained in:
Georgi Gardev
2022-12-01 16:02:00 +02:00
parent 7e4a14e736
commit 2260316a61
11 changed files with 85 additions and 138 deletions
+2 -2
View File
@@ -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: