Hi
I got an json ( https://pollenkontroll.no/api/middleware/pollen/b5bb4856-2117-433d-bf18-53504ef2f101?t=1623043832177 ) that i want to sort and set status on sensors in Home assistant. Still struggling with function nodes and how to grab data and post it as payload.
I don't know if it's easier to putt all data to one sensor, and then use a template sensor in HA to set state, or to write it directly in NR to sensors with parameter and set state for today an an attribute for the tomorrow value.
It's the "name" and the level_description for today date and tomorrow that i need
data from my http request node:
[{"date":"2021-06-07","allergens":[{"name":"Salix","latin_name":"Salix","level_number":2,"level_description":"Low"},{"name":"Bjørk","latin_name":"Betula","level_number":2,"level_description":"Low"},{"name":"Or","latin_name":"","level_number":0,"level_description":"None"},{"name":"Hassel","latin_name":"Corylus","level_number":0,"level_description":"None"},{"name":"Gress","latin_name":"Gramineae","level_number":2,"level_description":"Low"},{"name":"Burot","latin_name":"Artemisia","level_number":0,"level_description":"None"}]},
{"date":"2021-06-08","allergens":[{"name":"Salix","latin_name":"Salix","level_number":2,"level_description":"Low"},{"name":"Bjørk","latin_name":"Betula","level_number":0,"level_description":"None"},{"name":"Or","latin_name":"","level_number":0,"level_description":"None"},{"name":"Hassel","latin_name":"Corylus","level_number":0,"level_description":"None"},{"name":"Gress","latin_name":"Gramineae","level_number":2,"level_description":"Low"},{"name":"Burot","latin_name":"Artemisia","level_number":0,"level_description":"None"}]}]