Ingest Home Assistant location
POST/api/v1/gps/ingest/home-assistant
Receives a location update from Home Assistant and stores it as a GPS point. Send either the token of a Home Assistant GPS source (the configuration.yaml setup), or a personal API token with the gps:ingest scope; points sent with an API token go to the Home Assistant source connected to it in Location Sources. latitude and longitude are required; leave out unknown values instead of sending 0.
Access: The token of a GPS source configured in GeoPulse, or a personal API token with the gps:ingest scope.
Request
Responses
- 200
- 400
- 401
- 403
Location accepted
Bad Request
Authentication is required or the provided credentials are invalid.
The API token lacks the gps:ingest scope (API_TOKEN_SCOPE_REQUIRED), no GPS source is connected to it (GPS_SOURCE_NOT_CONNECTED), or its GPS source is disabled (GPS_SOURCE_DISABLED).