Skip to content

v0.1.43 — weather entity active-slot fix

Choose a tag to compare

@mrebbert mrebbert released this 26 Jun 17:14

Bug fix: weather.<system> showed the wrong sky state

What was broken

The weather entity (and everything that consumes its condition — Lovelace cards, automations, voice assistants) showed the sky state of the first 3-hour forecast slot of the day instead of the currently active slot. In practice that meant clear-night was reported all day on most installs, because the API returns slots ordered from midnight UTC.

What changed

The entity now walks the forecast list and picks the latest slot whose period_start is in the past — i.e. the bucket that actually contains "now". condition, native_temperature and native_wind_speed reflect that slot.

The hourly forecast (weather.get_forecasts) was already correct — it returns the full slot list — so that surface is unchanged.

What you need to do

Nothing — once HA refreshes the entity (within an hour, or immediately after a restart), the state will track reality.

Full changelog

See CHANGELOG.md.