List recorder statistic IDs
statistics_list_statistic_idsLists recorder statistic IDs by type (sum or mean) to discover entities with long-term statistics before fetching detailed statistics or metadata.
Instructions
List recorder statistic IDs of the requested type.
Calls WS recorder/list_statistic_ids and returns one entry per
statistic the recorder tracks, with its source and unit.
Use when: discovering which entities have long-term statistics before
calling statistics_get_statistics or statistics_get_statistics_metadata.
Not for: raw short-term state history — use
history_get_state_history instead.
Returns: list of {"statistic_id", "name", "source", "unit", "has_sum", "has_mean"} dicts.
Errors: [{"error": "..."}] when statistic_type is not 'sum'/'mean',
when the WS response isn't a list, or when the WS call raises.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| statistic_type | No | Which kind of statistic to list: 'sum' for counters (energy, gas, water) or 'mean' for sensors (temperature, humidity). | sum |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |