Get statistics metadata
statistics_get_statistics_metadataRetrieve unit, source, and name metadata for specified Home Assistant statistic IDs without fetching historical values. Use when you know the IDs and need only descriptive details.
Instructions
Get metadata (unit, source, name) for specific recorder statistic IDs.
Calls WS recorder/get_statistics_metadata and returns one entry per
requested ID.
Use when: you already know the statistic IDs and only need their
unit/source/name, without their historical values.
Not for: the actual aggregated values — use statistics_get_statistics.
Returns: list of {"statistic_id", "name", "source", "unit", "has_sum", "has_mean"} dicts.
Errors: [{"error": "..."}] when the WS response isn't a list or the
WS call raises.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| statistic_ids | Yes | Statistic IDs to fetch metadata for, e.g. ['sensor.energy_consumption']. Discover valid values with `statistics_list_statistic_ids`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |