hello i am facing a double mqtt triggered automation
trigger:
- entity_id: sensor.teleinfo_periode
platform: state
condition:
- condition: template
value_template: '{{ state_attr("sensor.teleinfo_periode", "Couleur") in ["Rouge","Blanc"]
}}'
action:
with simple template trigger and no condition the automation is not fired
when settting with a state trigger and condition the automation is fired twice
I am pretty sure that this is due to the condition template
Yes this is it: my fault
RTFM:
An automation that triggers on any state change of the sensor will also trigger both on the change of the state or a change of the attributes. Such automations will be triggered twice if both the state and the attributes change.