ha_history_list_entities
Find the exact entity_id required by history analytics tools. Filter Home Assistant entities by area, device, device_class, or search, then group results by area and device for clear selection.
Instructions
Primary discovery tool for the exact entity_ids that the ha_history_* analytics tools require. Filter by area, device, device_class, and search. Results are grouped by area and device and include entity_id, name, unit, and type. For one entity's live state, use ha_history_get_state after discovery. Not needed before device-control (Hass*) tools — those take plain names and areas, never entity_ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| areas | No | Optional area/room filter, e.g. ["Kitchen"] or ["Cave", "Kitchen", "Salon", "Outdoor"]. | |
| device | No | Optional device-name filter when the user clearly refers to one appliance or device. | |
| search | No | Matched against entity_id, friendly name, and device name. Multiple words use AND semantics. Use for name words like "cave" or "charger", not type words that device_classes can express. | |
| domains | No | Optional entity domains, e.g. ["sensor"], ["binary_sensor"], or ["person","device_tracker"] for person tracking. Leave empty for statistics-ready entities. | |
| max_results | No | Max entity rows to return. Default: 100. Pass "all" for the complete list. | |
| include_state | No | When true, adds the current state value to each row. Default: false. Costs one extra full state-machine fetch — use only when current values matter. | |
| device_classes | No | Optional device-class filter, e.g. ["temperature"] or ["temperature", "humidity"]. |