Tweak climate handling on master bedroom wakeup, close #106

This commit is contained in:
2023-08-19 18:29:13 -04:00
parent afb2958a77
commit a09009866b

View File

@ -102,7 +102,7 @@ script:
{% set ct = ct() | int %}
{% set cooling = state_attr('input_datetime.master_bedroom_cooling','timestamp') | int %}
{% set wakeup = state_attr('input_datetime.master_bedroom_wakeup','timestamp') | int %}
{{ 21600 < ct < cooling }}
{{ (21600 < ct < cooling) and is_state('binary_sensor.people_sleeping','off') }}
then:
- service: button.press
target: