Hello all,
I have this authomation, that is trigered corectly (on the events) but no acction,. can someone help me understand where the problem is?
alias: AUTH - CLIMATE - Spegni Caldaia
description: ""
triggers:
-
trigger: template
value_template: >-
{% set c =
['climate.thermostat_camera_di_alex','climate.thermostat_camera_di_elena','climate.thermostat_piano_terra','climate.thermostat_camera_matrimoniale']
%}{{ 'false' if (
states.climate|selectattr('entity_id','in',c)|selectattr('attributes.hvac_action','==','heating')|list|count
- else 'true' }}
for:
hours: 0
minutes: 0
seconds: 30
conditions: []
actions:
- action: switch.turn_off
metadata: {}
target:
entity_id: switch.rele_caldaia
data: {}
mode: single