# Pollens custom component sensor

**URL:** <https://forum.hacf.fr/t/pollens-custom-component-sensor/3336>\
**Category:** Intégration\
**Tags:** integration, integration-personnalisee-custom-component\
**Created:** [Mars 3, 2021, 7:27 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336 "2021-03-03T19:27:16Z")\
**Posts on this page:** 20\
**Page:** 10

<div class="post-metadata">

**Author:** ![titof2375](https://forum.hacf.fr/user_avatar/forum.hacf.fr/titof2375/32/39471_2.png) [@titof2375](https://forum.hacf.fr/u/titof2375)\
**Post date:** [Avril 2, 2023, 9:31 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/183 "2023-04-02T09:31:29Z")

</div>

Bonjour, je suis un peut perdu, je vois que certain on un chiffre comme resultat pour le taux de pollen moi j’ai que nul ou moyen etc …  
comment faire pour avoir les chiffres?

---

<div class="post-metadata">

**Author:** ![Giga77](https://forum.hacf.fr/user_avatar/forum.hacf.fr/giga77/32/113727_2.png) [@Giga77](https://forum.hacf.fr/u/Giga77)\
**Post date:** [Avril 2, 2023, 9:48 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/184 "2023-04-02T09:48:20Z")

</div>

ç est dans la documentation, à faire lors de l'instalation:

 ![image](https://forum.hacf.fr/uploads/default/original/3X/5/e/5ebeb5970c3af44c21bdd40d915232212d85d11f.png)

---

<div class="post-metadata">

**Author:** ![titof2375](https://forum.hacf.fr/user_avatar/forum.hacf.fr/titof2375/32/39471_2.png) [@titof2375](https://forum.hacf.fr/u/titof2375)\
**Post date:** [Avril 2, 2023, 9:59 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/185 "2023-04-02T09:59:08Z")

</div>

merci et le taux max est bien de 4?

---

<div class="post-metadata">

**Author:** ![FillR2](https://forum.hacf.fr/user_avatar/forum.hacf.fr/fillr2/32/14398_2.png) [@FillR2](https://forum.hacf.fr/u/FillR2)\
**Post date:** [Avril 2, 2023, 10:29 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/186 "2023-04-02T10:29:07Z")

</div>

**3**

> [@Pollens custom component sensor](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/130):
>
> Bonsoir, voila ce que j’ai finalement réussit à faire: pour que tout fonctionne il faut: un input\_select.departement qui contient les dpts que vous souhaitez monitorer: Pour la gauge, j’ai créé un sensor qui me donne la valeur du dpt choisi via le input\_select play_button sensor et enfin les play_button cartes

---

<div class="post-metadata">

**Author:** ![PenPen](https://forum.hacf.fr/user_avatar/forum.hacf.fr/penpen/32/75799_2.png) [@PenPen](https://forum.hacf.fr/u/PenPen)\
**Post date:** [Avril 14, 2023, 7:53 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/188 "2023-04-14T07:53:47Z")

</div>

Bonjour,  
Super projet 🙂

Pour les utilisateurs belges,  
Pensez-vous possible d’intégrer les données de ce site ?  
[https://airallergy.sciensano.be/fr](https://airallergy.sciensano.be/fr)

Étant totalement incompétent dans le codage, je ne sais pas si il existe une api.  
Le site renvoie vers une app

> <https://play.google.com/store/apps/details?id=be.irm.kmi.meteo>
>
> The belgian weather forecast on your phone with the RM...

Lié à l’IRM de Belgique

Merci d’avance 😊

---

<div class="post-metadata">

**Author:** ![FillR2](https://forum.hacf.fr/user_avatar/forum.hacf.fr/fillr2/32/14398_2.png) [@FillR2](https://forum.hacf.fr/u/FillR2)\
**Post date:** [Avril 20, 2023, 6:21 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/189 "2023-04-20T18:21:51Z")

</div>

Maintenant qu'on a des états numériques pour chaque pollen, voici ma carte de suivi, on verra ce que ça donnera sur une saison.

 ![image](https://forum.hacf.fr/uploads/default/original/3X/3/6/36da45e1b6beb0eea3cc3688503954249bf528bb.png)

```auto
chart_type: line
period: week
type: statistics-graph
entities:
  - entity: sensor.pollens_75_ambroisies
    name: Ambroisies
  - entity: sensor.pollens_75_bouleau
    name: Armoise
  - entity: sensor.pollens_75_bouleau
    name: Aulne
  - entity: sensor.pollens_75_bouleau
    name: Bouleau
  - entity: sensor.pollens_75_charme
    name: Charme
  - entity: sensor.pollens_75_chataignier
    name: Châtaignier
  - entity: sensor.pollens_75_chene
    name: Chêne
  - entity: sensor.pollens_75_cupressacées
    name: Cupressacées
  - entity: sensor.pollens_75_frene
    name: Frêne
  - entity: sensor.pollens_75_graminees
    name: Graminés
  - entity: sensor.pollens_75_noisetier
    name: Noisetier
  - entity: sensor.pollens_75_olivier
    name: Olivier
  - entity: sensor.pollens_75_oseille
    name: Oseille
  - entity: sensor.pollens_75_peuplier
    name: Peuplier
  - entity: sensor.pollens_75_plantain
    name: Plantain
  - entity: sensor.pollens_75_platane
    name: Platane
  - entity: sensor.pollens_75_saule
    name: Saule
  - entity: sensor.pollens_75_tilleul
    name: Tilleul
  - entity: sensor.pollens_75_urticacees
    name: Urticacées
stat_types:
  - mean
days_to_show: 360
hide_legend: false

```

---

<div class="post-metadata">

**Author:** ![WarC0zes](https://forum.hacf.fr/user_avatar/forum.hacf.fr/warc0zes/32/137471_2.png) [@WarC0zes](https://forum.hacf.fr/u/WarC0zes)\
**Post date:** [Avril 30, 2023, 3:02 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/190 "2023-04-30T03:02:11Z")

</div>

Bonjour,  
j'ai jouer avec l'intégration Pollens et vous partage ma carte. Merci a tous ceux qui ont partager leur carte pour donner des idées. J'ai configurer les états en texte ( ceux qui ont en numérique faudra adapter ), Les états et border sont en couleur ( suivant le niveau ). La bar de risque change de couleur suivant le niveau. Les entités sont filtrer pour afficher que celle du moment et ranger par ordre alphabétique.

 ![Pollen card](https://forum.hacf.fr/uploads/default/original/3X/8/4/8494f8b3e8e6c665ec1758e0edb1846a740dbbaa.png)

Code:

```auto
type: custom:stack-in-card
mode: vertical
keep:
  box_shadow: true
  margin: false
  border_radius: true
  background: false
  outer_padding: false
cards:
  - type: custom:mod-card
    card_mod:
      style:
        .: |
          :host {
            --text-divider-color: rgb(68, 115, 158);
            --text-divider-line-size: 1px;
          }
    card:
      type: custom:text-divider-row
      text: POLLENS
      align: left
  - type: custom:mod-card
    card_mod:
      style: |
        ha-card {
          margin: -15px -5px 0px -5px;
        }  
    card:
      type: horizontal-stack
      cards:
        - type: custom:button-card
          entity: sensor.pollens_11
          name: 'Pollens Aude:'
          icon: mdi:alert-decagram-outline
          layout: icon_name_state2nd
          color_type: icon
          show_name: true
          show_state: true
          state:
            - value: nul
              operator: '=='
              color: black
              icon: mdi:decagram-outline
              styles:
                state:
                  - color: black
            - value: faible
              operator: '=='
              color: green
              icon: mdi:check-decagram-outline
              styles:
                state:
                  - color: green
            - value: moyen
              operator: '=='
              color: orange
              icon: mdi:alert-decagram-outline
              styles:
                state:
                  - color: orange
            - value: élevé
              operator: '=='
              color: red
              icon: mdi:alert-decagram
              styles:
                state:
                  - color: red
          size: 55%
          styles:
            card:
              - '--mdc-ripple-color': rgb(68, 115, 158)
              - '--mdc-ripple-press-opacity': 0.5
            name:
              - font-size: 16px
            state:
              - font-weight: bold
              - font-size: 16px
        - type: custom:bar-card
          entities:
            - entity: sensor.pollens_11_risklevel
              name: Risque Pollen
              icon: mdi:alert-circle
              height: 47px
              color: red
              min: 0
              max: 4
              positions:
                indicator: 'off'
                icon: 'off'
              severity:
                - color: Red
                  from: 2
                  to: 3
                - color: Orange
                  from: 1
                  to: 2
                - color: Green
                  from: 0
                  to: 1
          card_mod:
            style: >
              bar-card-currentbar, bar-card-backgroundbar {
                border-radius: 25px;
              }

              #states > bar-card-row > bar-card-card > bar-card-background >
              bar-card-contentbar > bar-card-name {
                font-size: 16px;

              } ha-card {
                margin-top: -2px;
                background: none;
                border: none;
              }
  - type: conditional
    conditions:
      - entity: sensor.pollens_11
        state_not: nul
    card:
      type: custom:mod-card
      card_mod:
        style: |
          ha-card {
            margin: 5px 5px 5px 5px;
          }
      card:
        type: custom:auto-entities
        card:
          type: grid
          columns: 5
          square: false
        card_param: cards
        filter:
          include:
            - entity_id: sensor.pollens_11_*
              options:
                type: custom:button-card
                color_type: icon
                aspect_ratio: 1/1
                show_name: true
                show_state: true
                name: |
                  [[[
                    return entity.attributes.pollen_name + ":"
                  ]]]
                styles:
                  card:
                    - '--mdc-ripple-color': rgb(68, 115, 158)
                    - '--mdc-ripple-press-opacity': 0.5
                    - border-radius: 8px
                  name:
                    - font-size: 14px
                  state:
                    - font-weight: bold
                    - font-size: 12px
                state:
                  - value: faible
                    operator: '=='
                    color: green
                    styles:
                      card:
                        - box-shadow: 0px 0px 0px 2px green
                      state:
                        - color: green
                  - value: moyen
                    operator: '=='
                    color: orange
                    styles:
                      card:
                        - box-shadow: 0px 0px 0px 2px orange
                      state:
                        - color: orange
                  - value: élevé
                    operator: '=='
                    color: red
                    styles:
                      card:
                        - box-shadow: 0px 0px 0px 2px red
                      state:
                        - color: red
                size: 50%
          exclude:
            - entity_id: sensor.pollens_11_*
              state: nul
            - entity_id: sensor.pollens_11
            - entity_id: sensor.pollens_11_risklevel
        sort:
          method: name
          reverse: false

```

Edit:  
J'ai corriger le code, en ajoutant la partie stack-in-card, pour avoir la carte qui s'affiche en un seul carte.

Edit 2:  
Code corrigé pour les états a 3 max (nul, faible, moyen et élevé) au lieu de 4 avant ( erreur de ma part ).

---

<div class="post-metadata">

**Author:** ![Forgeron](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/f/d9b06d/32.png) [@Forgeron](https://forum.hacf.fr/u/Forgeron)\
**Post date:** [Avril 30, 2023, 7:23 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/191 "2023-04-30T07:23:53Z")

</div>

Bonjour, j’adore ta carte ! Je n’arrive pas à l’ajouter sur mon tableau de bord, je pense que c’est un problème de lovelace. J’ai installé card-mod 3, il faut autre chose ?

Merci à toi,

---

<div class="post-metadata">

**Author:** ![WarC0zes](https://forum.hacf.fr/user_avatar/forum.hacf.fr/warc0zes/32/137471_2.png) [@WarC0zes](https://forum.hacf.fr/u/WarC0zes)\
**Post date:** [Avril 30, 2023, 7:46 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/192 "2023-04-30T07:46:07Z")

</div>

Oups désoler, ta besoin de button-card, card-mod, bar-card et text-divider-row.

> **[GitHub - custom-cards/button-card: ❇️ Lovelace button-card for home assistant](https://github.com/custom-cards/button-card)**
>
> ❇️ Lovelace button-card for home assistant. Contribute to custom-cards/button-card development by creating an account on GitHub.

> **[GitHub - thomasloven/lovelace-card-mod: 🔹 Add CSS styles to (almost) any...](https://github.com/thomasloven/lovelace-card-mod)**
>
> 🔹 Add CSS styles to (almost) any lovelace card. Contribute to thomasloven/lovelace-card-mod development by creating an account on GitHub.

> **[GitHub - custom-cards/bar-card: Customizable Animated Bar card for Home...](https://github.com/custom-cards/bar-card)**
>
> Customizable Animated Bar card for Home Assistant Lovelace - GitHub - custom-cards/bar-card: Customizable Animated Bar card for Home Assistant Lovelace

> **[GitHub - iantrich/text-divider-row: 🗂 Text Divider Row](https://github.com/iantrich/text-divider-row)**
>
> 🗂 Text Divider Row. Contribute to iantrich/text-divider-row development by creating an account on GitHub.

Edit:  
J’utilise aussi stack-in-card pour avoir toute la carte assembler en une, mais **[vertical-stack-in-card](https://github.com/ofekashery/vertical-stack-in-card)** peu être utiliser a la place aussi. @Lesuperlolo a trouvé seul, mais encore un oublie de ma part.

> **[GitHub - custom-cards/stack-in-card: 🛠 group multiple cards into one card...](https://github.com/custom-cards/stack-in-card)**
>
> 🛠 group multiple cards into one card without the borders - GitHub - custom-cards/stack-in-card: 🛠 group multiple cards into one card without the borders

---

<div class="post-metadata">

**Author:** ![Lesuperlolo](https://forum.hacf.fr/user_avatar/forum.hacf.fr/lesuperlolo/32/21946_2.png) [@Lesuperlolo](https://forum.hacf.fr/u/Lesuperlolo)\
**Post date:** [Avril 30, 2023, 12:38 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/193 "2023-04-30T12:38:59Z")

</div>

@WarC0zes J’ai dû ajouter  
`type: vertical-stack cards:`  
avant ton code pour que la carte s’affiche correctement chez moi.

---

<div class="post-metadata">

**Author:** ![WarC0zes](https://forum.hacf.fr/user_avatar/forum.hacf.fr/warc0zes/32/137471_2.png) [@WarC0zes](https://forum.hacf.fr/u/WarC0zes)\
**Post date:** [Avril 30, 2023, 1:39 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/194 "2023-04-30T13:39:43Z")

</div>

Bien vue, j’utilise stack-in-card mais vertical-stack-in-card fait l’affaire aussi. Désoler de l’oublie 😉

Edit:  
j’ai ajouter le bout de code manquant pour stack-in-card, dans mon post précédent.

---

<div class="post-metadata">

**Author:** ![Christophe69480](https://forum.hacf.fr/user_avatar/forum.hacf.fr/christophe69480/32/110253_2.png) [@Christophe69480](https://forum.hacf.fr/u/Christophe69480)\
**Post date:** [Mai 1, 2023, 8:15 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/195 "2023-05-01T08:15:06Z")

</div>

Merci pour le partage, magifique !!!  
il faut également auto entities

> **[GitHub - thomasloven/lovelace-auto-entities: 🔹Automatically populate the...](https://github.com/thomasloven/lovelace-auto-entities)**
>
> 🔹Automatically populate the entities-list of lovelace cards - GitHub - thomasloven/lovelace-auto-entities: 🔹Automatically populate the entities-list of lovelace cards

---

<div class="post-metadata">

**Author:** ![Forgeron](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/f/d9b06d/32.png) [@Forgeron](https://forum.hacf.fr/u/Forgeron)\
**Post date:** [Mai 1, 2023, 11:37 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/196 "2023-05-01T11:37:23Z")

</div>

Merci à tous, ça fonctionne nickel !

---

<div class="post-metadata">

**Author:** ![MicroFire](https://forum.hacf.fr/user_avatar/forum.hacf.fr/microfire/32/9492_2.png) [@MicroFire](https://forum.hacf.fr/u/MicroFire)\
**Post date:** [Mai 10, 2023, 7:13 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/197 "2023-05-10T19:13:42Z")

</div>

Merci pour le partage

---

<div class="post-metadata">

**Author:** ![jerome6994](https://forum.hacf.fr/user_avatar/forum.hacf.fr/jerome6994/32/13064_2.png) [@jerome6994](https://forum.hacf.fr/u/jerome6994)\
**Post date:** [Mai 25, 2023, 9:39 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/198 "2023-05-25T09:39:56Z")

</div>

Merci @WarC0zes pour le partage et voici chez moi

 ![image](https://forum.hacf.fr/uploads/default/original/3X/a/c/ac85aa79bfb93e605d33741d029cf5a973c891c1.png)

J'ai juste sur la partie state très faible, faible etc... où je suis obligé de mettre des value du type 0, 1, 2, 3, 4 pour avoir les couleurs

---

<div class="post-metadata">

**Author:** ![Caillema](https://forum.hacf.fr/user_avatar/forum.hacf.fr/caillema/32/2964_2.png) [@Caillema](https://forum.hacf.fr/u/Caillema)\
**Post date:** [Mai 25, 2023, 10:26 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/199 "2023-05-25T10:26:44Z")

</div>

Merci @WarC0zes pour ta carte !  
Par contre, sais-tu s'il est possible d'afficher toute sauf celle égal à 0, parce que ça surcharge un peu :

 ![image](https://forum.hacf.fr/uploads/default/original/3X/b/4/b4eae147b77f21f9545be92f1c6260fe8f3f792e.png)

---

<div class="post-metadata">

**Author:** ![Giga77](https://forum.hacf.fr/user_avatar/forum.hacf.fr/giga77/32/113727_2.png) [@Giga77](https://forum.hacf.fr/u/Giga77)\
**Post date:** [Mai 25, 2023, 11:14 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/200 "2023-05-25T11:14:11Z")

</div>

Tu dois avoir un exclude :

```auto
        exclude:
          - entity_id: sensor.pollens_XX_*
            state: <1
          - entity_id: sensor.pollens_XX
          - entity_id: sensor.pollens_XX_risklevel

```

---

<div class="post-metadata">

**Author:** ![Giga77](https://forum.hacf.fr/user_avatar/forum.hacf.fr/giga77/32/113727_2.png) [@Giga77](https://forum.hacf.fr/u/Giga77)\
**Post date:** [Mai 25, 2023, 11:19 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/201 "2023-05-25T11:19:23Z")

</div>

> [@jerome6994](#):
>
> es value du type 0, 1, 2, 3, 4 pour avoir les couleurs

La valeur max est 3.

J'ai adapté comme ça:

```auto
type: custom:stack-in-card
mode: vertical
keep:
  box_shadow: true
  margin: false
  border_radius: true
  background: false
  outer_padding: false
cards:
  - type: custom:mod-card
    card_mod:
      style: |
        ha-card {
          margin: 5px 5px 14px 5px;
        }
    card:
      type: horizontal-stack
      cards:
        - type: custom:button-card
          entity: sensor.pollens_74
          name: 'Pollens :'
          icon: mdi:alert-decagram-outline
          layout: icon_name_state2nd
          color_type: icon
          show_name: true
          show_state: true
          state:
            - value: nul
              operator: '=='
              color: '#75f94c'
              styles:
                state:
                  - color: '#75f94c'
            - value: faible
              operator: '=='
              color: green
              styles:
                state:
                  - color: green
            - value: moyen
              operator: '=='
              color: yellow
              styles:
                state:
                  - color: yellow
            - value: élevé
              operator: '=='
              color: red
              styles:
                state:
                  - color: red
          size: 60%
          styles:
            card:
              - '--mdc-ripple-color': rgb(68, 115, 158)
              - '--mdc-ripple-press-opacity': 0.5
            name:
              - font-size: 16px
            state:
              - font-weight: bold
              - font-size: 16px
        - type: custom:bar-card
          entities:
            - entity: sensor.pollens_74_risklevel
              name: Risque Pollen
              icon: mdi:alert-circle
              color: red
              min: 0
              max: 3
              positions:
                indicator: 'off'
                icon: 'off'
              severity:
                - color: Red
                  from: 2
                  to: 3
                - color: Yellow
                  from: 1
                  to: 2
                - color: Green
                  from: 0
                  to: 1
          card_mod:
            style: >
              bar-card-currentbar, bar-card-backgroundbar {
                border-radius: 25px;
              }

              #states > bar-card-row > bar-card-card > bar-card-background >
              bar-card-contentbar > bar-card-name {
                font-size: 16px;
                color: grey;
                font-weight: bold;
              }
  - type: custom:mod-card
    card_mod:
      style: |
        ha-card {
          margin: -5px 5px 7px 5px;
        }
    card:
      type: custom:auto-entities
      card:
        type: grid
        columns: 5
        square: true
      card_param: cards
      filter:
        include:
          - entity_id: sensor.pollens_74_*
            options:
              type: custom:button-card
              color_type: icon
              aspect_ratio: 1/1
              show_name: true
              show_state: true
              name: |
                [[[
                  return entity.attributes.pollen_name + ":"
                ]]]
              styles:
                card:
                  - '--mdc-ripple-color': rgb(68, 115, 158)
                  - '--mdc-ripple-press-opacity': 0.5
                name:
                  - font-size: 14px
                state:
                  - font-weight: bold
                  - font-size: 12px
              state:
                - value: 1
                  operator: '=='
                  color: green
                  styles:
                    card:
                      - box-shadow: 0px 0px 0px 1.1px green
                    state:
                      - color: green
                - value: 2
                  operator: '=='
                  color: yellow
                  styles:
                    card:
                      - box-shadow: 0px 0px 0px 1.1px yellow
                    state:
                      - color: yellow
                - value: 3
                  operator: '=='
                  color: red
                  styles:
                    card:
                      - box-shadow: 0px 0px 0px 1.1px red
                    state:
                      - color: red
              size: 50%
        exclude:
          - entity_id: sensor.pollens_74_*
            state: <1
          - entity_id: sensor.pollens_74
          - entity_id: sensor.pollens_74_risklevel
      sort:
        method: name
        reverse: false

```

 ![image](https://forum.hacf.fr/uploads/default/original/3X/7/6/7622f163d49968f5e707115cb4d8c5a5b9e49ff2.png)

PS: merci @WarC0zes

---

<div class="post-metadata">

**Author:** ![WarC0zes](https://forum.hacf.fr/user_avatar/forum.hacf.fr/warc0zes/32/137471_2.png) [@WarC0zes](https://forum.hacf.fr/u/WarC0zes)\
**Post date:** [Mai 25, 2023, 11:27 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/202 "2023-05-25T11:27:10Z")

</div>

Bonjour @jerome6994,  
J’ai les statuts en texte et pas en numérique, ta pas le choix que d’adapter pour ta config et remplacer le texte par des chiffres dans la partie `- value:`.

---

<div class="post-metadata">

**Author:** ![WarC0zes](https://forum.hacf.fr/user_avatar/forum.hacf.fr/warc0zes/32/137471_2.png) [@WarC0zes](https://forum.hacf.fr/u/WarC0zes)\
**Post date:** [Mai 25, 2023, 11:30 UTC](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336/203 "2023-05-25T11:30:47Z")

</div>

> [@Giga77](#):
>
> La valeur max est 3.

Pas fait gaffe quand j’ai fait la carte, j’ai mis a 4 max mais ta raison c’est 3 le max. Faut que je corrige le code 😅

Edit:  
Code original corrigé.

[Page précédente](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336.md?page=9)

[Page suivante](https://forum.hacf.fr/t/pollens-custom-component-sensor/3336.md?page=11)
