https://github.com/kamaradclimber/vigieau
A custom integration for home-assistant on the Vigieau dataset
https://github.com/kamaradclimber/vigieau
hacktoberfest hacs-integration home-assistant open-data water
Last synced: 12 months ago
JSON representation
A custom integration for home-assistant on the Vigieau dataset
- Host: GitHub
- URL: https://github.com/kamaradclimber/vigieau
- Owner: kamaradclimber
- License: apache-2.0
- Created: 2023-07-15T13:32:56.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-06-17T07:05:44.000Z (12 months ago)
- Last Synced: 2025-06-17T08:20:47.671Z (12 months ago)
- Topics: hacktoberfest, hacs-integration, home-assistant, open-data, water
- Language: Python
- Homepage:
- Size: 292 KB
- Stars: 23
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Vigieau for home-assistant
Component to expose water restrictions in France through Vigieau api. See https://vigieau.gouv.fr/ for web access.
This integration share location via a 3rd party (government) website (as the website does).
Data is based on the [vigieau](https://www.data.gouv.fr/fr/datasets/donnee-secheresse-vigieau/) dataset. It's really great to have access to such data.

## Installation
It must be used as a custom repository via HACS.
## Configuration
Once the custom integration has been added, add "vigieau" integration through the UI.
You can choose the location either by using HA coordinates (default), giving a specific town zip code or select a point in a map.

HA coordinates are the one defined during initial setup and accessible using (`System>General>Edit location`)
Once a first location is added a new one can be added (using city zip code or a pin on a map)
### Using Zip Code

Localisation is based on INSEE Code, not ZIP/Postal code. If several INSEE code correspond to provided Zip code, manual selection will be required..

### Selecting a point on map

## Known issues and workaround
### Error communicating with API: Impossible to find approximate address of the current HA instance. API returned no result.
This integration uses a geocoding API to get the city code from INSEE (used as a input by Vigieau API). It is based on governement data which is still incomplete in some France areas.
A workaround can be used by setting the `VIGIEAU_FORCED_INSEE_CITY_CODE` environment variable with the city code as value.
⚠ Value of city code is not necessarily city "postal code". You can find it easily of wikipedia under the name [code commune](https://fr.wikipedia.org/wiki/Code_officiel_g%C3%A9ographique#Code_commune).