I’m new here, I’m discovering the world of Gladys. Please excuse me if I don’t use the right terms.
I’m in the Metz area, the water supplier is « Eau de Metz », we have connected meters.
According to Gemini… it seems to be a direct subsidiary of Veolia, it seems that we can use their APIs.
I’d be happy to be the tester if someone wants to start on the subject.
Maybe this could be useful for other regions and other utilities
Thank you very much!!!
Here is the AI’s response on the subject
Access to APIs and consumption data for Eau de Metz / Veoliais structured around the following official resources:
Official API Portal: Veolia has a dedicated space for developers on the Veolia Eau France API Portal to view the catalog and connect applications.
Customer site and new platform: Veolia’s online services use the centralized platform accessible via eau.veolia fr
Community integrations (e.g. Home Assistant): Open source projects like the Home Assistant Veolia integration allow you to retrieve daily consumption data and history directly from Veolia’s official website.
Official mobile application: The Eau de Metz application (available on the play store) allows you to monitor consumption, account balance, and work alerts.
Hello,
it works perfectly.
A general question, in Gladys can we inject the consumption history files from previous years to create graphs and/or comparisons?
Thanks
There is no simple way, you have to « play » with databases and SQL queries.
And before doing that, you need to stop Gladys to avoid corrupting your database.
In short, this is not for the average user
Thanks @Olivier.L57 for your feedback, glad it works for you!
Great idea for the history: it’s done, version 1.0.2 is available
Small clarification: there is no file import, as an external integration cannot receive any. But it’s not necessary: Veolia already keeps the history on its site, and the integration fetches it automatically.
What version 1.0.2 brings:
Automatic import of the last 2 years
The integration retrieves the previous 24 months from Veolia.
Each reading is stored on its respective day, so Gladys’s graphs also show past years.
The import runs in the background and takes about 8 minutes (one month every 20 seconds, to be gentle on Gladys and Veolia).
If it’s interrupted (restart, Veolia unavailable), it resumes where it left off.
New widget « Water: Year Comparison »
A graph with each month of the last 3 years side by side.
The total for each year.
The difference with last year over the same period (from January to the last complete month), for example « −12 % ».
Its figures come directly from Veolia: it works even if Gladys hasn’t kept the history.
To take advantage of it
Update the Veolia integration in Gladys.
Nothing else to do: the import starts automatically at the first refresh. To launch it immediately, click on Test the connection in the configuration.
Add the widget « Water: Year Comparison » to your dashboard.
In Settings → System, set the state history retention to at least 2 years. Otherwise, Gladys deletes old readings after a few months.
A question for you
I don’t know how many years of daily readings Veolia actually keeps. Once the import is finished, can you tell me how far back your data goes in Gladys? That will help me set the import duration.
Happy update, and don’t hesitate if something’s wrong!
Thanks for your quick response!
I won’t be able to provide you with the long-term history. The smart meter was installed this year only, but I do have the estimated monthly value for 2025.
I haven’t noticed any bugs. Thanks again!
Oh yes, it is possible to set the y-axis scale as you wish, the graph is a bit « flat », especially if one day there is a significant consumption peak.
Not annoying at all, on the contrary, it’s thanks to your feedback that the integration is progressing
For the scale, unfortunately it’s not possible from the integration:
the scale of the graphs is calculated by Gladys itself;
an external integration cannot adjust it, neither in its widget nor in the « Graph » box;
it always starts from the highest displayed value, hence the « flat » effect after a peak.
I could have cut the bars above a threshold, but the graph would be wrong, and a consumption peak (a leak, for example), is precisely what we want to see.
I have therefore made a request for Gladys to allow setting the min/max of the Y-axis: Graphiques : pouvoir régler l'échelle de l'axe Y (min / max)
It would be useful for all integrations (water, gas, electricity…). Don’t hesitate to vote for it
As soon as Gladys allows it, I’ll add it to the widget settings.
The Veolia water integration has its external integration, published by @prohand. You confirmed that it was working, and version 1.0.2 adds the history.
You install it from the integrations catalog.
The scale of the graph, on the other hand, is calculated by Gladys. An integration cannot set it. If you want to choose the min and max yourself, it’s a request on the graphs, not on Veolia: a new topic will be more appropriate.
I’m moving this topic to « Delivered Requests ». If there’s still a case that doesn’t fit, open a new topic: it will be easier to follow.