hass.tibber_prices/custom_components/tibber_prices
Julian Pawlowski 38ce1c4c50 feat(chart_export): add Chart Data Export diagnostic sensor
Added optional diagnostic binary sensor that exposes get_chartdata
service results as entity attributes for legacy dashboard tools.

Key features:
- Entity: binary_sensor.tibber_home_NAME_chart_data_export
- Configurable via Options Flow Step 7 (YAML parameters)
- Calls get_chartdata service with user configuration
- Exposes response as attributes for chart cards
- Disabled by default (opt-in)
- Auto-refreshes on coordinator updates
- Manual refresh via homeassistant.update_entity

Implementation details:
- Added chart_data_export entity description to definitions.py
- Implemented state/attribute logic in binary_sensor/core.py
- Added YAML configuration schema in schemas.py
- Added validation in options_flow.py (Step 7)
- Service call validation with detailed error messages
- Attribute ordering: metadata first, descriptions next, service data last
- Dynamic icon mapping (database-export/database-alert)

Translations:
- Added chart_data_export_config to all 5 languages
- Added Step 7 descriptions with legacy warning
- Added invalid_yaml_syntax/invalid_yaml_structure error messages
- Added custom_translations for sensor descriptions

Documentation:
- Added Chart Data Export section to sensors.md
- Added comprehensive service guide to services.md
- Migration path from sensor to service
- Configuration instructions via Options Flow

Impact: Provides backward compatibility for dashboard tools that can
only read entity attributes (e.g., older ApexCharts versions). New
integrations should use tibber_prices.get_chartdata service directly.
2025-11-17 03:14:02 +00:00
..
binary_sensor feat(chart_export): add Chart Data Export diagnostic sensor 2025-11-17 03:14:02 +00:00
config_flow_handlers feat(chart_export): add Chart Data Export diagnostic sensor 2025-11-17 03:14:02 +00:00
custom_translations feat(chart_export): add Chart Data Export diagnostic sensor 2025-11-17 03:14:02 +00:00
entity_utils feat(sensors): add momentum-based trend detection with two new sensors 2025-11-16 12:49:43 +00:00
period_utils refactor(volatility): migrate to coefficient of variation calculation 2025-11-14 01:12:47 +00:00
sensor feat(sensors): improve price trend sensors with temporal context 2025-11-16 17:09:16 +00:00
translations feat(chart_export): add Chart Data Export diagnostic sensor 2025-11-17 03:14:02 +00:00
__init__.py fix: handle unknown integration version in setup entry 2025-11-09 16:04:04 +00:00
api.py feat(api): add multi-home support and diagnostic sensors 2025-11-16 00:11:56 +00:00
average_utils.py refactor(sensors): Refactor price sensor calculations and remove unused methods 2025-11-15 09:29:33 +00:00
config_flow.py refactor(config_flow): restructure package to satisfy hassfest validation 2025-11-15 17:40:53 +00:00
const.py feat(chart_export): add Chart Data Export diagnostic sensor 2025-11-17 03:14:02 +00:00
coordinator.py feat(sensors): improve price trend sensors with temporal context 2025-11-16 17:09:16 +00:00
data.py refactoring 2025-04-23 16:42:31 +00:00
diagnostics.py update dev environment 2025-11-03 15:54:01 +00:00
entity.py feat(api): add multi-home support and diagnostic sensors 2025-11-16 00:11:56 +00:00
manifest.json chore(release): bump version to 0.10.0 2025-11-16 23:52:57 +00:00
price_utils.py feat(sensors): add momentum-based trend detection with two new sensors 2025-11-16 12:49:43 +00:00
services.py feat(chart_export): add Chart Data Export diagnostic sensor 2025-11-17 03:14:02 +00:00
services.yaml feat(chart_export): add Chart Data Export diagnostic sensor 2025-11-17 03:14:02 +00:00