mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
887 B
887 B
Architecture
Note: This guide is under construction. For now, please refer to
AGENTS.mdfor detailed architecture information.
Core Components
Data Flow
TibberPricesApiClient- GraphQL API clientTibberPricesDataUpdateCoordinator- Update orchestration & caching- Price enrichment functions - Statistical calculations
- Entity platforms - Sensors and binary sensors
- Custom services - API endpoints
Key Patterns
- Dual translation system:
/translations/(HA schema) +/custom_translations/(extended) - Price enrichment: 24h trailing/leading averages, ratings, differences
- Quarter-hour precision: Entity updates on 00/15/30/45 boundaries
- Intelligent caching: User data (24h), price data (calendar day validation)
See AGENTS.md "Architecture Overview" section for complete details.