Geocaching smart home integration, free and open source

Geocaching account: finds count, hidden caches, favorite points, followed items
Follow your Geocaching account in Gladys: number of finds, hidden caches, favorite points, souvenirs, favorite points received, plus the geocaches and trackables (Travel Bugs, geocoins) you choose to follow. The data comes from the official Geocaching API (cloud), read once an hour by default.
Before you start: Geocaching API access
The Geocaching API is reserved for partners approved by Geocaching HQ, as for Home Assistant:
- Ask Geocaching HQ for API access (see the API documentation).
- Create an application and note its client ID (consumer key) and its client secret.
- Declare the redirect URI of Gladys in the application. Gladys chooses it: click Connect once (step 3 below) and read it in the logs of the integration (
Authorization requested, redirect URI: ...), then add it to your application.
Installation
- In Gladys, open Integrations, then the external integrations store.
- Search for Geocaching and click Install.
- Wait for the container to start: the integration shows up in the list.
Configuration
- Open the Configuration tab of the integration.
- Enter the Client ID and the Client secret of your application, then save.
- Click Connect: sign in on geocaching.com and allow Gladys to read your account.
- Optional: list the tracked geocaches (
GC1A2B3, GC4D5E6) and tracked trackables (public codesTB1A2B3), 50 at most each, separated by commas. - Optional: change the refresh interval (in seconds, from 15 minutes to 24 hours, 1 hour by default).
The Test the connection button reads the account right away and shows what was found. When Geocaching refuses the connection (revoked access, expired authorization), the status says so: click Connect again.
Devices
Open the Discover tab to add the devices:
- Geocaching player: finds, hides, favorite points to give, souvenirs, favorite points received (counters with history).
- One device per tracked geocache: its favorite points, and the day you found it.
- One device per tracked trackable: the distance travelled (km) and where it is (
GC… nameof the geocache, or@playerholding it).
Scenes and dashboards
Triggers (Integrations category of the scene editor):
- New geocache finds: your find count went up. Variables: player, total finds, new finds.
- Favorite points received: players gave favorite points to your geocaches. Variables: total received, new points.
- Tracked geocache found: you logged a tracked geocache as found (filter on the geocache). Variables: code, name, date.
- Trackable moved: a tracked trackable changed geocache or holder (filter on the trackable). Variables: location, geocache, holder, distance, missing.
- Account disconnected: Geocaching refused the connection, click Connect again. Variable: reason.
The changes are detected between two refreshes; the last data is kept in the integration volume, so a restart neither loses nor replays an event.
Actions:
- Refresh the Geocaching account: reads the account now and returns its counters.
- Look up a geocache (code
GC…): name, owner, favorite points, found or not, date, link. - Look up a trackable (code
TB…): name, location, geocache, holder, distance, missing, link.
Widget — Geocaching account: finds, hides, favorite points, souvenirs and favorites received; how many tracked geocaches you found, where each trackable is, the time of the last refresh, and a Refresh button.
Privacy
The integration only reads your account. The tokens stay in the Gladys configuration and are never written to the logs.
Help
A question or a problem? Ask on the Gladys community forum or open an issue on the GitHub repository.
Configuration settings
These are the settings Geocaching asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Getting started | section | No | The Geocaching API is reserved for approved partners. Ask Geocaching HQ for API access, then create an application whose redirect URI is the one Gladys uses (it is written in the integration logs when you click "Connect"). Enter its client ID and secret below, save, then click "Connect". |
| Client ID | string | Yes | Client ID (consumer key) of your Geocaching API application. |
| Client secret | secret | Yes | Client secret of the same application, never shown again. |
| Geocaching account | oauth2 | No | Sign in on geocaching.com and allow Gladys to read your account. |
| Tracked geocaches | string | No | Geocache codes to follow, separated by commas (50 at most): one device each, with its favorite points and the day you found it. |
| Tracked trackables | string | No | Public codes (TB…) of the Travel Bugs and geocoins to follow, separated by commas: one device each, with its distance and location. |
| Refresh interval (s) | number | No | How often the account is read, in seconds (15 minutes to 24 hours). |
How to install Geocaching in Gladys
- In Gladys, open Integrations: Geocaching appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/prohand/gladys-geocaching:1.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/prohand/gladys-geocaching.
Geocaching requires Gladys >=5.1.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.
Not running Gladys yet? It is free and open source: follow the installation guide to get started.
About external integrations
Geocaching is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by prohand, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation