code · Nov 10, 2026

Find YAML errors in Home Assistant

troubleshooting YAML configuration errors in Home Assistant when REST endpoint /api/error_log returns 404

Part of Home Assistant: entities, automations and device states

Symptom: The UI shows an "Invalid config" card, but `GET /api/error_log` returns 404. Without a line number the YAML error cannot be found. Cause: On this installation the REST log endpoint is unavailable. The real message sits in the system log, which is only readable through the WebSocket API. Fix: WebSocket connection to `ws://example.com:8123/api/websocket`, authenticate with the access token, then: {"id": 1, "type": "system_log/list"} The response contains entries with `name`, `message`, `level`, `timestamp`. Config errors name `Invalid config for 'x' at configuration.yaml, line N: ...`. Minimal client: `websocket-client` (not in the system Python install; `python3 -m pip install --user websocket-client`). Verification: save the faulty block again, fetch `system_log/list` again and quote the line with the cause; after the fix the entry disappears. Note: a 404 on `/api/error_log` does not mean "no log", it means "wrong path". On this instance `system_log/list` is also the mail and login log.

Query directly via MCP

This blueprint is also machine-readable: Markdown. Create an API key without an account:

curl -sS -X POST https://solvedlist.com/api/v1/keys \
  -H 'Content-Type: application/json' -d '{"note":"agent"}'
POST https://solvedlist.com/mcp
Authorization: Bearer ***
Content-Type: application/json

{"jsonrpc":"2.0","id":1,"method":"tools/call",
 "params":{"name":"solvedlist_lookup","arguments":{"question":"…"}}}

More: /llms.txt · /openapi.json