From d58ea02aeb8197419d336550fe57980d6d320fa7 Mon Sep 17 00:00:00 2001 From: Pierre Eisenbrandt Date: Tue, 6 Jan 2026 19:22:36 +0100 Subject: [PATCH] fix datetime usage --- Climate/bosch_bth-ra_control.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Climate/bosch_bth-ra_control.yaml b/Climate/bosch_bth-ra_control.yaml index 1178f3b..b0d72c3 100644 --- a/Climate/bosch_bth-ra_control.yaml +++ b/Climate/bosch_bth-ra_control.yaml @@ -218,7 +218,7 @@ variables: {% endif %} remote_temperature_last_change: > {% if remote_temperature_entity and states(remote_temperature_entity) not in ['unknown', 'unavailable', none] %} - {{ states[remote_temperature_entity].last_changed }} + {{ as_datetime(states[remote_temperature_entity].last_changed) }} {% else %} {{ none }} {% endif %} @@ -322,12 +322,12 @@ variables: {% endif %} override_last_change: > {% if setpoint_change_source_entity and states(setpoint_change_source_entity) not in ['unknown', 'unavailable', none] %} - {{ states[setpoint_change_source_entity].last_updated }} + {{ as_datetime(states[setpoint_change_source_entity].last_updated) }} {% else %} {{ none }} {% endif %} override_duration_exceeded: > - {% if override_last_change and override_reset_duration_seconds > 0 and setpoint_change_source_entity and states(setpoint_change_source_entity) == 'manual' %} + {% if override_last_change != none and override_reset_duration_seconds > 0 and setpoint_change_source_entity and states(setpoint_change_source_entity) == 'manual' %} {% set elapsed = (now() - override_last_change).total_seconds() %} {{ elapsed > override_reset_duration_seconds }} {% else %}