Validate energy dashboard configuration
energy_validate_energy_prefsValidate the saved Energy Dashboard configuration without changes, checking energy sources and device consumption for issues such as missing statistic IDs after edits.
Instructions
Validate the currently saved Energy Dashboard configuration.
Calls the WebSocket endpoint energy/validate, which checks the saved
energy_sources/device_consumption for issues (e.g. a statistic ID
that no longer exists) without changing anything.
Use when: checking whether the current Energy Dashboard setup has
issues, e.g. after editing sources with energy_save_energy_prefs or
one of the energy_add_* helpers.
Not for: reading the configuration itself — use
energy_get_energy_prefs.
Returns: dict as returned by HA's energy/validate WS command, listing
any detected issues per source.
Errors: {"error": str(e)} when the WS call raises.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||