This Prometheus exporter works with the netatmo energy API. It reads the current temperature measurement and set point temperature and exports it in prometheus readable way alongside with other metrics. This exporter publishes metrics per room and per modules.
IMPORTANT: this exporter works only with netatmo Thermostats and Valves.
The best way to deploy is by creating a docker image by executing:
docker build -t netatmo_energy_exporter .
- First of all create an App in netatmos developers portal
- Generate and copy the client id and secret
- if you're going to use the refresh token, generate one and copy it
- Run by executing:
or
docker run -d -p 2112:2112 netatmo_energy_exporter \ --client-id=${CLIENT_ID} --client-secret=${CLIENT_SECRET} \ --username=${USERNAME} --password=${PASSWORD}
docker run -d -p 2112:2112 netatmo_energy_exporter \ --client-id=${CLIENT_ID} --client-secret=${CLIENT_SECRET} \ --refresh-token=${REFRESH_TOKEN}
Netatmo has deprecated the ability to use the password credential flow, even though it's still listed. If you're experiencing any issues while using your username + password combination, try to get the refresh token. You should use the following scopes while generating the token:
- read_station
- read_thermostat
--client-id :: netatmo APP client id [required]
--client-secret :: netatmo APP client secret [required]
--username :: netatmo username [required]
--password :: netatmo password [required]
--refresh-token :: netatmo refresh token [required]
--listen :: address in default go format to listen to (default 0.0.0.0:2112) [optional]