I configured an automation with a template trigger, sometimes the trigger is activated for no reason (probably climate object as some faults), to avoid a wrong action I would like to validate with a time directly in the trigger path. I tried something like under but I’m not able to save my automation.
Can someone help me?
'{{
(is_state_attr(‘climate.pianosopra’,‘hvac_action’,‘off’)
or
is_state(‘climate.pianosopra’,‘off’))
and is_state(‘input_boolean.termterraauto’,‘on’)
and
(is_state_attr(‘climate.pianoterra’,‘hvac_action’,‘off’)
or is_state(‘climate.pianoterra’,‘off’))
and is_state(‘input_boolean.termsopraauto’,‘on’) }}
for: “00:01:00”``