Skip to content

v2.7.0 — Local Weather Stations

Choose a tag to compare

@zach7036 zach7036 released this 05 Sep 22:17

Local weather from Home Assistant

This release adds optional Home Assistant weather-station support beyond the existing temperature sensor, with separate local history and per-field online fallback.

What's new

  • Configure a weather.* entity under Settings → Location & Weather → Local weather for temperature, wind speed, wind direction, and supported sky conditions.
  • Keep an optional dedicated temperature sensor; a valid reading from that sensor takes priority over the weather entity.
  • Normalize supported temperature and wind units, accept compass-point wind bearings, and check reporting timestamps instead of requiring readings to change.
  • Save local observations before requesting online weather, so local readings remain available when the internet request fails.
  • Preserve local observations separately from online weather so later syncs do not overwrite the new local history.
  • Display partial weather without misleading zero temperatures or clear-sky defaults, and show saved sync diagnostics in Station Doctor.
  • Add a setup, testing, and rollback guide.

Intentional behavior

  • Clear, partly cloudy, cloudy, and fog conditions have local mappings. Broad precipitation descriptions retain available online conditions rather than inventing intensity or type.
  • Day/night continues to use existing station-location-based online data; this release does not query sun.sun.
  • Online weather requests still run while weather syncing is enabled. The existing weather switch disables both sources and retains stored history.

Data preservation and rollback

The database changes are additive: two tables store local observations and sync results. This update does not delete detections or recordings, rebuild their tables, or reset the database. Existing completed weather history is retained.

Older code can ignore the new tables. For routine rollback, revert the code and relevant settings without restoring the entire database, which would discard detections recorded since a backup. See the guide for backup and same-Pi testing instructions.

Validation

  • 85 Python tests passed, including temporary-database and PHP/SQLite integration checks.
  • 11 weather UI checks and 6 PHP weather-switch checks passed.
  • PHP, JavaScript, and shell syntax checks passed.
  • Live Home Assistant/Raspberry Pi integration testing has not been confirmed for this release.

Full changes: v2.6.1...v2.7.0