v1.6.27 - Max hourly hail probability
What's new
Hail probability: max hourly value instead of daily mean
The hail_probability attribute on forecast sensors now shows the maximum hourly value for the day instead of the daily average.
Root cause of previous behavior: /api/4/mixer returns skyCover as a daily mean. If hail is forecast only for 1–2 hours, the daily average collapses to a few percent even when the peak risk is 60–70%.
Fix: Added a new API call to /api/4/parser/{id}/data/{startDate}/{nDays}, which exposes the raw hourly data from the iLMeteo parser. The integration now:
- Finds the iLMeteo parser by name
- Fetches hourly
skyCovervalues for yesterday through today+6 - Stores
max(hourly_values)per day inhail_by_day - Forecast sensors read from
hail_by_daykeyed by date
If the iLMeteo parser is not installed or the endpoint fails, hail_probability gracefully falls back to 0.