Hi,
I tried to find the solution by myself searching and searching on the Forum but no way
I would like to get into HA the Pollens Name/Level from my region
That data can be get through that JSON URL : https://www.pollens.fr/risks/thea/counties/26
If I’m writing this :
- platform: rest
name: Pollen_Tilleul
resource: https://www.pollens.fr/risks/thea/counties/26
value_template: “{{ value_json.risks[0].level}}”
scan_interval: 43200
Then I’m able so here to visualized in Lovelace the Level of the first element which is the ‘Tilleul’ Pollen
I can do then the same for value_json.risks[1].level, value_json.risks[2].level, etc… and display so all the POllens levels through an entities-card
Issue is that I’m not sure the JSON Array will keep the same sorting at each Request.
Is this possible to get for example the Pollen ‘Tilleul’ as an entity and its Level as an Attribute of this entity ?
At the end my ideal solution would be to display all the Pollens into an Flex-Table-Card (like the one below) but where ‘room’ will be my Pollen Names and ‘Temperature’ will be my corresponding PollenLevels
If someone have a example of code to share or just explanation how to do it that ould be great
Thanks