mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
Implement _unrecorded_attributes in both sensor and binary_sensor entities to prevent Home Assistant Recorder database bloat. Excluded attributes (60-85% size reduction per state): - Descriptions/help text (static, large strings) - Large nested structures (periods, trend_attributes, chart data) - Frequently changing diagnostics (icon_color, cache_age) - Static/rarely changing config (currency, resolution) - Temporary/time-bound data (next_api_poll, last_*) - Redundant/derived data (price_spread, diff_%) Kept for history analysis: - timestamp (always first), all price values - Period timing (start, end, duration_minutes) - Price statistics (avg, min, max) - Boolean status flags, relaxation_active Impact: Reduces attribute size from ~3-8 KB to ~0.5-1.5 KB per state change. Expected savings: ~1 GB per month for typical installation. See: https://developers.home-assistant.io/docs/core/entity/#excluding-state-attributes-from-recorder-history |
||
|---|---|---|
| .. | ||
| api | ||
| binary_sensor | ||
| config_flow_handlers | ||
| coordinator | ||
| custom_translations | ||
| entity_utils | ||
| interval_pool | ||
| sensor | ||
| services | ||
| translations | ||
| utils | ||
| __init__.py | ||
| config_flow.py | ||
| const.py | ||
| data.py | ||
| diagnostics.py | ||
| entity.py | ||
| icons.json | ||
| manifest.json | ||
| services.yaml | ||