Intégration Overkiz + automation

Voici l’automation complète

alias: Radiateur - Clément
description: Radiateur - Clément
trigger:
  - platform: time_pattern
    minutes: /10
condition:
  - condition: or
    conditions:
      - condition: and
        conditions:
          - condition: state
            entity_id: input_boolean.thermostats_away
            state: "off"
          - condition: state
            entity_id: input_select.clement_radiateur_2
            state: Chauffage
          - condition: state
            entity_id: binary_sensor.io_1994022_3_contact
            state: "off"
          - condition: state
            entity_id: binary_sensor.samuel_geo
            state: "on"
          - condition: state
            entity_id: climate.radiateur_2
            state: heat
          - condition: state
            entity_id: automation.radiateur_clement
            state: "on"
      - condition: and
        conditions:
          - condition: state
            entity_id: input_boolean.thermostats_away
            state: "off"
          - condition: state
            entity_id: input_select.clement_radiateur_2
            state: Chauffage
          - condition: state
            entity_id: binary_sensor.io_1994022_3_contact
            state: "off"
          - condition: state
            entity_id: binary_sensor.valerie_geo
            state: "on"
          - condition: state
            entity_id: climate.radiateur_2
            state: heat
          - condition: state
            entity_id: automation.radiateur_clement
            state: "on"
      - condition: and
        conditions:
          - condition: state
            entity_id: input_boolean.thermostats_away
            state: "off"
          - condition: state
            entity_id: input_select.clement_radiateur_2
            state: Chauffage
          - condition: state
            entity_id: binary_sensor.io_1994022_3_contact
            state: "off"
          - condition: state
            entity_id: binary_sensor.samuel_geo
            state: "on"
          - condition: state
            entity_id: binary_sensor.valerie_geo
            state: "on"
          - condition: state
            entity_id: climate.radiateur_2
            state: heat
          - condition: state
            entity_id: automation.radiateur_clement
            state: "on"
action:
  - choose:
      - conditions:
          - condition: state
            entity_id: binary_sensor.heating_clement_1
            state: "on"
        sequence:
          - service: climate.set_temperature
            data:
              temperature: >-
                {{ states('input_number.heating_clement_temperature_confort_1')
                | float }}
            target:
              entity_id: climate.radiateur_2
      - conditions:
          - condition: state
            entity_id: binary_sensor.heating_clement_2
            state: "on"
        sequence:
          - service: climate.set_temperature
            data:
              temperature: >-
                {{ states('input_number.heating_clement_temperature_confort_2')
                | float }}
            target:
              entity_id: climate.radiateur_2
      - conditions:
          - condition: state
            entity_id: binary_sensor.heating_clement_3
            state: "on"
        sequence:
          - service: climate.set_temperature
            data:
              temperature: >-
                {{ states('input_number.heating_clement_temperature_confort_3')
                | float }}
            target:
              entity_id: climate.radiateur_2
      - conditions:
          - condition: state
            entity_id: binary_sensor.heating_clement_4
            state: "on"
        sequence:
          - service: climate.set_temperature
            data:
              temperature: >-
                {{ states('input_number.heating_clement_temperature_confort_4')
                | float }}
            target:
              entity_id: climate.radiateur_2
      - conditions:
          - condition: state
            entity_id: binary_sensor.heating_clement_1_s
            state: "on"
        sequence:
          - service: climate.set_temperature
            data:
              temperature: >-
                {{
                states('input_number.heating_clement_temperature_confort_1_s') |
                float }}
            target:
              entity_id: climate.radiateur_2
      - conditions:
          - condition: state
            entity_id: binary_sensor.heating_clement_2_s
            state: "on"
        sequence:
          - service: climate.set_temperature
            data:
              temperature: >-
                {{
                states('input_number.heating_clement_temperature_confort_2_s') |
                float }}
            target:
              entity_id: climate.radiateur_2
      - conditions:
          - condition: state
            entity_id: binary_sensor.heating_clement_3_s
            state: "on"
        sequence:
          - service: climate.set_temperature
            data:
              temperature: >-
                {{
                states('input_number.heating_clement_temperature_confort_3_s') |
                float }}
            target:
              entity_id: climate.radiateur_2
      - conditions:
          - condition: state
            entity_id: binary_sensor.heating_clement_4_s
            state: "on"
        sequence:
          - service: climate.set_temperature
            data:
              temperature: >-
                {{
                states('input_number.heating_clement_temperature_confort_4_s') |
                float }}
            target:
              entity_id: climate.radiateur_2
      - conditions:
          - condition: state
            entity_id: binary_sensor.heating_clement_1_d
            state: "on"
        sequence:
          - service: climate.set_temperature
            data:
              temperature: >-
                {{
                states('input_number.heating_clement_temperature_confort_1_d') |
                float }}
            target:
              entity_id: climate.radiateur_2
      - conditions:
          - condition: state
            entity_id: binary_sensor.heating_clement_2_d
            state: "on"
        sequence:
          - service: climate.set_temperature
            data:
              temperature: >-
                {{
                states('input_number.heating_clement_temperature_confort_2_d') |
                float }}
            target:
              entity_id: climate.radiateur_2
      - conditions:
          - condition: state
            entity_id: binary_sensor.heating_clement_3_d
            state: "on"
        sequence:
          - service: climate.set_temperature
            data:
              temperature: >-
                {{
                states('input_number.heating_clement_temperature_confort_3_d') |
                float }}
            target:
              entity_id: climate.radiateur_2
      - conditions:
          - condition: state
            entity_id: binary_sensor.heating_clement_4_d
            state: "on"
        sequence:
          - service: climate.set_temperature
            data:
              temperature: >-
                {{
                states('input_number.heating_clement_temperature_confort_4_d') |
                float }}
            target:
              entity_id: climate.radiateur_2
    default:
      - choose:
          - conditions:
              - condition: or
                conditions:
                  - condition: template
                    value_template: >-
                      {{ (state_attr('climate.radiateur_2','temperature') |
                      float >
                      states('input_number.heating_clement_temperature_eco') |
                      float) }}
                  - condition: template
                    value_template: >-
                      {{ (state_attr('climate.radiateur_2','temperature') |
                      float <
                      states('input_number.heating_clement_temperature_eco') |
                      float) }}
              - condition: state
                entity_id: input_select.clement_radiateur_2
                state: Chauffage
            sequence:
              - service: climate.set_temperature
                data:
                  temperature: >-
                    {{ states('input_number.heating_clement_temperature_eco') |
                    float }}
                target:
                  entity_id: climate.radiateur_2
mode: restart

J’utilise toujours l’intégration Hacs car pour l’instant le sensor climate n’est toujours pas intégré à l’intégration officielle Migrate ha-tahoma to Overkiz integration in core · Issue #697 · iMicknl/ha-tahoma · GitHub

ps: je tiens à rajouter que l’erreur se produit quand au minimum 2 radiateurs change de température en même temps à la même heure (celà à l’air de ne pas se produire quand seulement un radiateur change de température.