List ESPHome devices
esphome_list_devicesList all ESPHome devices and their online status by matching YAML configs with Home Assistant device-registry entries and entity states.
Instructions
List ESPHome devices from YAML configs, the HA device registry and online status.
Combines <name>.yaml files under /config/esphome/ with matching HA
device-registry entries (identified via ESPHome config entries,
identifiers domain, or manufacturer as a fallback). A device's
connected status comes from its own entities' states (entity registry
device_id match): any entity in a state other than "unavailable"
means connected, since ESPHome entities share one per-config-entry
availability flag (homeassistant/components/esphome/entity.py) —
not from a binary_sensor.*_api_connection_status entity, which is not
guaranteed to exist.
Use when: getting an overview of every ESPHome device, whether or not it
currently has a matching HA device.
Not for: one device's entities — use esphome_get_device_entities.
Returns: {"yaml_configs": [...], "ha_devices": [...], "online": <int>, "offline": <int>}, where each ha_devices entry's connected is True,
False, or None (no known entities/states yet).
Errors: ha_devices becomes [{"error": str(e)}] if reading the HA
device registry raises; entity-registry/config-entry/state lookups are
silently skipped (treated as empty) on error instead of failing the
whole call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||