Retrieve the coordinates of the house configured in the Gladys core

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.

Would it be possible to retrieve the address using this future development?

Yes, there’s a chance :slight_smile:
We’ll test it when it’s pushed :wink:

I’m interested too! For example, to create a weather integration that directly uses the default location of the house :slight_smile:

I plan a weather integration for us Swiss!

Can’t we coordinate with the dev of @Will_71 and choose his « weather provider »?
I know there was talk of merging Openweathermap and MétéoFrance in the internal integration and choosing the one we wanted.
Now with the external integration, I don’t know what the situation is, too many topics to follow and remember :roll_eyes:

@pierre-gilles modified the SDK so that we can develop external weather integrations.
The widget I developed will be in the core and we will be able to choose the source that will take either OpenWeather, Météo France, Météo Suisse…
On my side, the external Météo-France integration is ready to be tested. I’m just waiting for the SDK and Gladys core PR, with the weather part, to be ready.