diff --git a/INTEGRATIONS.md b/INTEGRATIONS.md index fe495df..8f1f9b0 100644 --- a/INTEGRATIONS.md +++ b/INTEGRATIONS.md @@ -369,7 +369,7 @@ osTicket's API cannot close a ticket, so this is the one place in the app that * *Monitoring* category, link to the page and can be silenced with maintenance on the integration. - If Home Assistant cannot be read for twenty minutes the watched entities are neither raised nor cleared, the Alerts page says it could not check, and the integration is raised as failing like any other. - A service reached at a server's address (the integration's URL) is offered as a suggested dependency on that server. -- **Not verified against a live Home Assistant** — built from its published REST API and tried against a pretend one. Every field is read defensively. If a read fails, the **Diagnostic Log** has what it answered. +- **Checked against a live Home Assistant** (Inspect): `/api/states` answered with 1,392 entities (about 600 KB) and every field the reader uses had a value. It was not checked with an entity that is `unavailable` or with a wrong token; those follow the published API and a pretend server. Every field is read defensively. If a read fails, the **Diagnostic Log** has what it answered. ### UPS (NUT or SNMP) diff --git a/server/src/integrations/homeassistant/adapter.ts b/server/src/integrations/homeassistant/adapter.ts index ca1ea52..e6730c5 100644 --- a/server/src/integrations/homeassistant/adapter.ts +++ b/server/src/integrations/homeassistant/adapter.ts @@ -6,7 +6,7 @@ * is running, `GET /api/states` lists every entity with its state and attributes. Which of them are worth watching is chosen in this app (services/homeAssistantSync.ts); * the token can belong to a user with no more rights than a viewer's. * - * Endpoints and field names are from Home Assistant's published REST API, and have not been checked against a live instance here; every field is read defensively. + * Endpoints and field names are from Home Assistant's published REST API, and were checked against a live instance (`/api/states`, 1,392 entities); every field is read defensively. */ import { requestJson } from "../httpJson.js"; import { withDiagLogging } from "../../services/diagLog.js";