github PeterH24x7/-Solar-Analytics-integration-for-Home-Assistant-Energy-monitoring v11
Release 11 - token refresh, live data, 5min data and hour data resilience

7 hours ago

Release 11 notes:

#                 - Improved resilience against Solar Analytics API outages, token refresh failures,
#                   delayed/missing 5-minute data publication, live data publication delays and
#                   associated HA startup/reload conditions.
#                 - Authentication token - sa_auth_token_cached:
#                   - Added cached token preservation with automatic retry, recovery and failure
#                     diagnostics.
#                   - Records refresh failure reason, retry activity, recovery timestamps,
#                     failure duration and refresh failure counts as attributes.
#                 - 5-minute data - sa_data_by_5min_...:
#                   - Added sa_data_by_5min_time_stamp_cached to preserve the last valid
#                     5-minute timestamp during Solar Analytics API outages, delayed data publication
#                     events and Home Assistant startup/reload conditions.
#                   - Added automatic retry and recovery logic for both unavailable timestamps and
#                     stale 5-minute data publication events.
#                   - Added age-based stale timestamp detection to identify delayed publication of
#                     5-minute data before a timestamp continuity gap occurs.
#                   - Supports up to 3 retry attempts per failed 5-minute refresh cycle, with
#                     automatic recovery when data publication resumes.
#                   - Distinguishes between stale and unavailable refresh failures while providing a
#                     common outage tracking, retry and recovery model.
#                   - Records failure reason, retry activity, recovery status, failure/recovery
#                     timestamps, outage gap statistics and timestamp continuity diagnostics as
#                     sensor attributes.
#                   - Distinguishes between recovered outages and permanently lost 5-minute
#                     intervals resulting from extended publication failures.
#                 - Live data - sa_live_site_data_...:
#                   - Added live-data timestamp continuity for derived power sensors, preventing
#                     temporary unavailable states during known top-of-hour publication gaps.
#                   - Added scheduled-poll-aware live-data recovery logic to bridge temporary
#                     publication gaps, stale timestamp responses and short outages.
#                   - Added expected live-data timestamp preservation using a breadcrumb-based
#                     continuity model to bridge temporary publication gaps and outages while
#                     preserving timestamp continuity.
#                   - Added live-data failure reason, stale timestamp, recovery tracking and
#                     synthetic timestamp diagnostics, including outage counts, recovery
#                     timestamps and synthetic timestamp generation counts.
#                 - Hourly data - sa_data_by_hour_...:
#                   - For sa_todays_energy_generated_expected_total, now manages 
#                     sa_data_by_hour_time_stamp and sa_data_by_hour_generated_expected 
#                     unavailability (often occurs after midnight and before the early morning 
#                     reset), then the previous value is retained and the time_stamp attribute 
#                     set to the last update time. If the update of the value or the time_stamp 
#                     fails, then these are reported true by attributes update_failed and 
#                     timestamp_failed respectively.
#                   - sa_data_by_hour_generated_expected resets to zero on first update
#                     after midnight.
#                 - sa_status:
#                   * POTENTIAL breaking change for user configurations that directly use the state of 
#                     sa_status, which no longer returns the status text; instead use sa_mer_status.
#                   - Changed sa_status state to a refresh timestamp to guarantee detectable updates; 
#                     mer_status/dashboard_status/mer_percentage remain unchanged via attributes and 
#                     now include a time_stamp attribute.
#                 - sa_data_by_5min_history_..._imported/generated (solar_analytics_advanced.yaml):
#                   - Added imported and generated history sensors for major controllable loads 
#                     including EV Charger, Air Conditioner, Hot Water and Stove.
#                   - Enables consolidated imported/generated energy history attributes for advanced 
#                     charting and dashboard reporting.

Don't miss a new -Solar-Analytics-integration-for-Home-Assistant-Energy-monitoring release

NewReleases is sending notifications on new releases.