Double trigger fired

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

how can i solve this

that does make sense. The sensor must be getting 2 state changes. An automation only fires once.

May this is mqtt is templated

  - platform: mqtt
    name: Teleinfo PĂ©riode
    state_topic: "tempo/periode"
    json_attributes_topic: "tempo/periode"
    json_attributes_template: "{{ {'Heure' : value[1:2]|replace('P','Pleine')|replace('C','Creuse'),  'Couleur' : value[-1]|r
eplace('B','Bleu')|replace('R','Rouge')|replace('W','Blanc')} | tojson }}"

simple string split into two json attributes

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.