Check ESPHome dashboard reachability
esphome_ping_dashboardVerify the ESPHome Device Builder dashboard is reachable by calling its /ping endpoint. Diagnose connection failures from compile, validate, or upload operations.
Instructions
Check whether the ESPHome Device Builder dashboard responds.
Resolves where the dashboard is (esphome_dashboard.DashboardLocator,
ADR-0004 D2) — an explicit ESPHOME_DASHBOARD_URL (mode "explicit")
if set, else in add-on mode the installed ESPHome add-on's own
site-ingress port, always dialled at http://127.0.0.1:<ingress_port>
(mode "supervisor_ingress") — then calls GET /ping there. A False
reachable here does not necessarily mean the add-on itself is down;
see diagnosis/advice for what to check next.
Use when: diagnosing a connection failure from
esphome_compile_device/esphome_validate_config/esphome_upload_device,
or confirming the dashboard is reachable before calling one of them.
Not for: add-on version/update status — use esphome_get_addon_info.
Returns: {"reachable": True, "url": ..., "mode": "explicit"| "supervisor_ingress", "result": {...}} (the raw /ping JSON) on
success.
Errors: never raises. On failure: {"reachable": False, "error": <stable code>, "message": ...} — "esphome_not_configured" (neither
ESPHOME_DASHBOARD_URL nor the add-on's own info could be resolved) has
no url/mode; "esphome_unreachable"/"esphome_auth_required" add
url, mode and a diagnosis: {"mode", "dashboard_url", "slug", "addon_state", "ingress", "ingress_port", "advice"} built from the
ESPHome add-on's own GET /addons/<slug>/info (slug/addon_state/
ingress/ingress_port are None outside supervisor_ingress mode).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||