There is also this data in the Json
"hourlyLoadData": {
"total": [3, 3, 3, 3],
"dayrisk_personalized": false,
"hourly": [
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3],
[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3],
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3],
[3, 3, 1, 1, 1, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
]
},
which I interpret as hourly allergy risk. The correct rest-sensor to fetch this data would be
- platform: rest
name: "pollen_data_klagenfurt"
unique_id: '648d2575-31af-455d-9866-bcfafd68d892'
icon: mdi:flower-pollen-outline
resource: "https://www.polleninformation.at/index.php?eID=appinterface&pure_json=1&lang_code=de&lang_id=0&action=getFullContaminationData&type=gps&value[latitude]=46.628&value[longitude]=14.309&country_id=1&personal_contamination=false&sensitivity=0&country=AT&sessionid="
method: GET
scan_interval: 600
value_template: "{{ value_json.success }}"
json_attributes_path: "$.result.hourlyLoadData"
json_attributes:
- hourly
also you would need an template sensor to interpret this data for homeassistant
- platform: template
sensors:
pollen_risk_current_hour:
friendly_name: "Pollenrisiko Aktuelle Stunde"
value_template: >
{% set current_hour = now().hour %}
{% set hourly_risks = state_attr('sensor.pollen_data_klagenfurt', 'hourly') %}
{% if hourly_risks is not none and current_hour < hourly_risks[0] | length %}
{{ hourly_risks[0][current_hour] }}
{% else %}
unknown
{% endif %}
icon_template: "mdi:flower-pollen"