Search entities
search_search_entitiesFuzzy-search Home Assistant entities by matching a query against entity ID, friendly name, or device ID, returning ranked results with scores.
Instructions
Fuzzy-rank entities by entity_id, friendly_name and device_id.
Scores every entity against query with substring match (score 1.0)
or a sequence-similarity ratio, keeps only scores above 0, and returns
the top limit matches sorted descending.
Use when: you don't know the exact entity_id and want a ranked guess
from a name fragment.
Returns: list of dicts (entity_id, friendly_name, state, device_id,
score) up to limit entries.
Limits: entities that score exactly 0 are dropped entirely, not just
deprioritised.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of ranked results to return; defaults to 20. | |
| query | Yes | Search text to fuzzy-match against entity_id, friendly_name and device_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |