Hello,
When developing the vigieau integration, it would have been interesting to retrieve the coordinates of the house that we configured in Gladys.
Here is claude’s feedback on the subject:
1 & 2. Retrieving Gladys house location — impossible, and there's no workaround
I cloned the core of Gladys to verify rather than assume. The house does have coordinates (server/models/house.js: latitude/longitude), but nothing exposes them to an integration container:
The integration host API (/api/integration/v1/*) has exactly 21 routes (server/api/routes.js) — none of them concern the house. getConfig() only returns the integration's own config.
GET /api/v1/house is authenticated: true, so a user JWT: session.validateAccessToken requires audience: 'user', whereas an integration token has audience: 'integration'. The middleware states this explicitly — the two audiences never intersect.
Detour via getDevices(): the response does include room, but getStandardDeviceIncludes() does not nest the house — the room only has a house_id, without coordinates.
The requested button would therefore require a PR on the core (a GET /api/integration/v1/house route + an SDK method). I haven't implemented anything on this side, and I've recorded the finding in CLAUDE.md so that it isn't reinvented.