Capteur CO² senseair S8 sous esphome

Mouais… Tu te bases pas sur l’exemple ci-dessus Moi je vois plus ça

      on_value_range:
        - below: 400
          then:
            - switch.turn_off: rouge
            - switch.turn_off: jaune
            - switch.turn_off: vert
        - above: 400
          below: 900
          then:
            - switch.turn_on: vert
        - above: 900
          below: 2200
          then:
            - switch.turn_on: jaune
        - above: 2200
          then:
            - switch.turn_on: rouge

Comme ça c’est pas possible d’avoir 2 intervalles en même temps
Pour bien faire, il faut pê pas exclure les valeurs 400/900/2200 donc je ferai un

      on_value_range:
        - below: 400
          then:
            - switch.turn_off: rouge
            - switch.turn_off: jaune
            - switch.turn_off: vert
        - above: 399
          below: 900
          then:
            - switch.turn_on: vert
        - above: 899
          below: 2200
          then:
            - switch.turn_on: jaune
        - above: 2199
          then:
            - switch.turn_on: rouge

A confirmer si les - devant above sont significatifs

1 « J'aime »