Hey all,
so i have various rads and i want to setup an alert if any of them have a fault.
first im putting the evohome values into a template.
then i want an auotmation if any of those values for them changes to like “fault” or “low battery”
config
sensor template
kitchen_warning:
friendly_name: "Radiator Kitchen Warning"
value_template: >
{% if state_attr('climate.kitchen', 'status').active_faults %}
{% if state_attr('climate.kitchen', 'status').active_faults[0].fault_type == 'TempZoneActuatorLowBattery' %}
Kitchen Radiator: Low Battery
{% endif %}
Kitchen Radiator: Fault
{% else %}
Kitchen Radiator: All ok
{% endif %}
landing_warning:
friendly_name: "Radiator Landing Warning"
value_template: >
{% if state_attr('climate.landing', 'status').active_faults %}
{% if state_attr('climate.landing', 'status').active_faults[0].fault_type == 'TempZoneActuatorLowBattery' %}
Landing Radiator: Low Battery
{% endif %}
Landing Radiator: Fault
{% else %}
Landing Radiator: All ok
{% endif %}
livng_room_warning:
friendly_name: "Radiator Livng Room Warning"
value_template: >
{% if state_attr('climate.livng_room', 'status').active_faults %}
{% if state_attr('climate.livng_room', 'status').active_faults[0].fault_type == 'TempZoneActuatorLowBattery' %}
Livng Room Radiator: Low Battery
{% endif %}
Livng Room Radiator: Fault
{% else %}
Livng Room Radiator: All ok
{% endif %}
not sure what to change ‘eq’ and have it “like” fault to however?
- alias: 'rad alert fault'
id: rad_alert_fault_on
trigger:
platform: template
value_template: >
{% set rads = [states.sensor.kitchen_warning,
states.sensor.landing_warning,
states.sensor.livng_room_warning] %}
{{ rads | selectattr('state', '?????', 'fault') | list | count > 0 }}
for:
minutes: 1