Skip to content

v1.6.27 - Max hourly hail probability

Choose a tag to compare

@yashijoe yashijoe released this 17 Jun 14:11

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:

  1. Finds the iLMeteo parser by name
  2. Fetches hourly skyCover values for yesterday through today+6
  3. Stores max(hourly_values) per day in hail_by_day
  4. Forecast sensors read from hail_by_day keyed by date

If the iLMeteo parser is not installed or the endpoint fails, hail_probability gracefully falls back to 0.