manual override reset plus minor fixes #3

Merged
pierre merged 31 commits from dev into main 2026-01-15 14:23:00 +01:00
Showing only changes of commit 2fdf78ac75 - Show all commits

View File

@@ -327,8 +327,9 @@ variables:
{{ none }} {{ none }}
{% endif %} {% endif %}
override_duration_exceeded: > override_duration_exceeded: >
{% if override_last_change != none and override_reset_duration_seconds > 0 and setpoint_change_source_entity and states(setpoint_change_source_entity) == 'manual' %} {% set last_change = override_last_change %}
{% set elapsed = (now() - override_last_change).total_seconds() %} {% if last_change != none and last_change is not string and override_reset_duration_seconds > 0 and setpoint_change_source_entity and states(setpoint_change_source_entity) == 'manual' %}
{% set elapsed = (now() - last_change).total_seconds() %}
{{ elapsed > override_reset_duration_seconds }} {{ elapsed > override_reset_duration_seconds }}
{% else %} {% else %}
false false
@@ -505,7 +506,7 @@ actions:
{{ temperature_sensor is defined and states(temperature_sensor) | is_number }} {{ temperature_sensor is defined and states(temperature_sensor) | is_number }}
- condition: template - condition: template
value_template: > value_template: >
{{ remote_temperature_last_change != none }} {{ remote_temperature_last_change != none and remote_temperature_last_change is not string }}
- condition: template - condition: template
value_template: > value_template: >
{{ (now() - remote_temperature_last_change).total_seconds() > 1499 }} {{ (now() - remote_temperature_last_change).total_seconds() > 1499 }}