Sentinel-2 smart home integration, free and open source

Satellite view of your home, garden or field: vegetation, plant moisture, snow and clouds.
Overviewâ
Sentinel-2 brings the European Copernicus satellites into Gladys. You declare zones (your garden, a field, a holiday home). For each zone, the integration follows what the satellites see:
- the last clear satellite image, as a camera;
- the vegetation (NDVI) and the water held by the plants (NDMI);
- the snow cover and the clouds of the last pass;
- the number of days since the last clear image.
Sentinel-2A, 2B and 2C pass over Europe every 2 to 5 days, at about 10:30 local time, with a resolution of 10 m per pixel. Clouds hide many passes, so the integration only uses the clear ones.
Requirementsâ
- Gladys Assistant 5.3.0 or later.
- A free account on the Copernicus Data Space Ecosystem with an OAuth client. The free plan gives 10 000 requests and 10 000 processing units a month: one zone needs about 130 requests a month.
- At least one house with a location in Gladys (Settings â Houses), or the coordinates of your zones.
Configurationâ
- Create an account on dataspace.copernicus.eu.
- Open the Sentinel Hub dashboard, then User settings â OAuth clients â Create. Give it a name, choose Never expire, and copy the client ID and the client secret. The secret is shown only once.
- In Gladys, open the configuration of the integration, paste the client ID and the client secret, then save. Test the connection asks Copernicus for a token.
- Press Add a zone: a name, then a house of Gladys or a point typed as "latitude, longitude" (right click on Google Maps or OpenStreetMap copies it), and a size from 250 m to 5 km. Up to 10 zones.
- Open the Discover tab and add the device of the zone.
| Setting | Use |
|---|---|
| Client ID, client secret | The OAuth client of your Copernicus account. |
| Clouds allowed on a clear image | 5 to 50 % of the zone (20 % by default). Only clear passes update the indices, the image and the scenes. |
| NDVI change that fires a scene | 0.05 to 0.20 (0.10 by default), for "Vegetation changed". |
| Colours of the camera image | Natural colours, false colours (vegetation in red) or an NDVI map. |
| Language of the feature names | Automatic follows the language of your dashboard. |
The buttons Edit a zone, Remove a zone and List the zones take a zone by its number in the list or by its name. A new point or size starts the history of the zone again.
Usageâ
Devicesâ
When a zone is added, the integration reads its past year in one request. After that, it reads the zone every 6 hours.
| Feature | Meaning |
|---|---|
| Satellite image | The last clear image (camera), 512 Ă 512 px. |
| Vegetation (NDVI) | -1 to 1: under 0.2 bare soil or built-up area, 0.2 to 0.4 sparse, 0.4 to 0.6 moderate, 0.6 and above dense vegetation. |
| Plant moisture (NDMI) | -1 to 1: under 0 very dry, 0 to 0.2 dry, 0.2 to 0.4 normal, 0.4 and above moist. |
| Snow cover | % of what the satellite saw that is snow. |
| Clouds at the last pass | % of the zone, clear pass or not. |
| Days since a clear image | Age of the image and of the indices. |
The indices describe the vegetation of the whole square: on a built-up zone they stay low all year. Compare a zone with itself over time.
Dashboard widgetsâ
- Satellite view: the last clear image of a zone in natural colours, false colours or an NDVI map, with its vegetation, its moisture and its age.
- Vegetation season: the NDVI and/or NDMI of a zone over 3, 6 or 12 months.
- Satellite zones: every zone on one card, with its vegetation and its last clear day.

Scenesâ
Triggers, all with an optional zone filter:
- New clear satellite image: the image is already on the camera, so the "send camera image" action of Gladys can send it.
- Vegetation changed: decline or growth of the NDVI beyond the threshold since the previous clear image.
- Plant moisture changed: the NDMI moved into another level.
- Snow appeared or melted: at least 30 % of the zone is snow, or no longer.
The action Read a satellite zone gives the last clear values of a zone to the next actions of the scene. It can ask Copernicus first.
Examples:
- When the garden moisture becomes "very dry" â send a message "The garden is thirsty, water it this evening".
- When a new clear image of the field arrives â send the camera image on Telegram.
- When the snow melts at the chalet â turn the heating of the chalet to frost protection.
Transportâ
Cloud: the integration reads the Sentinel Hub APIs of the Copernicus Data Space over the internet with your OAuth client. The coordinates of your zones go to Copernicus. Images are kept in the /data volume of the integration, so they are downloaded only once.
Data licenceâ
Copernicus Sentinel data are free and open. The widgets show "Contains modified Copernicus Sentinel data [year]". This integration is not affiliated with the European Union, the ESA or the Copernicus programme.
Troubleshootingâ
- "OAuth client refused": check the client ID and secret, and that the client has not expired (Sentinel Hub dashboard, OAuth clients). Create a new one if needed.
- "Monthly quota spent": the dashboard shows your usage. The integration tries again 6 hours later. Fewer or smaller zones use less.
- No image for days: clouds. The "Clouds at the last pass" feature shows it; raise the cloud limit if your region is often cloudy.
- The indices look wrong: a zone that is mostly roofs, roads or water has a low NDVI. Choose a smaller zone centred on the garden or the field.
- List the zones shows every zone, its last clear image and the requests of the month. For a bug report, give this list, the versions of Gladys and of the integration, and the logs (
DEBUG=gladys-integration-sdkin developer mode).
Configuration settingsâ
These are the settings Sentinel-2 asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Copernicus Data Space account | section | No | The images come from the Sentinel-2 satellites of the European Copernicus programme, through the Sentinel Hub APIs of the Copernicus Data Space Ecosystem. The account is free (10 000 requests a month, far more than the integration needs). 1. Create an account on dataspace.copernicus.eu. 2. Open the Sentinel Hub dashboard, User settings, OAuth clients, then Create: give a name, choose âNever expireâ, and copy the client ID and the client secret (the secret is shown only once). 3. Paste them below and save. 4. Add a zone with the âAdd a zoneâ button, then add its device from the Discover tab. |
| Client ID | string | Yes | |
| Client secret | secret | Yes | |
| Images and scenes | section | No | A pass counts as clear when clouds cover at most the share below of the zone: only clear passes update the indices, the image and the scenes. The NDVI threshold sets how much the vegetation must change between two clear passes to fire âVegetation changedâ. |
| Clouds allowed on a clear image | select | No | |
| NDVI change that fires a scene | select | No | |
| Colours of the camera image | select | No | |
| Language of the feature names | select | No | Automatic: the language of your dashboard, once a widget of the integration was shown. |
How to install Sentinel-2 in Gladysâ
- In Gladys, open Integrations: Sentinel-2 appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/william-de71/gladys-sentinel-2:0.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/William-De71/gladys-sentinel-2.
Sentinel-2 requires Gladys >=5.3.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â
Sentinel-2 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 William-De71, 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