Following the request from @Olivier.L57, here is a first version of the Veolia external integration: it retrieves your water consumption from your Veolia customer space (eau.veolia.fr).
The history is dated correctly: Veolia publishes readings with 1 to 3 days delay, each reading is sorted by the date the water was consumed. When the meter is added, the current month and the previous month are imported.
A dashboard widget: last day, month, year, index, daily graph (7, 14 or 30 days), reading date and reliability (measured / estimated), Refresh button.
3 scene triggers:
New water reading
High water consumption: threshold in liters/day, useful for detecting a leak
Water reading late: the meter is no longer reporting
2 scene actions:
Refresh water consumption
Get water consumption: last day, this month, last month, this year, in L and m³ (e.g.: a message on the 1st of each month with the consumption of the previous month)
Cloud Badge on the device: Cloud / Unreachable, with an orange dot if no more readings are coming in.
« Check my town » button in the configuration: enter your postal code, it tells you if your town is managed and on which portal.
Prerequisites
Gladys 5.1 or newer
A remote-read water meter and a Veolia customer space (e-mail + password)
Managed portals: eau.veolia.fr and Eau de Toulouse Métropole
Veolia does not offer an official API for this data. The integration works like the website (same method as the Veolia Home Assistant integration). If Veolia changes its website, an update will be needed.
Your credentials remain in the Gladys configuration and are only sent to Veolia. The integration only reads: it does not modify anything on your account.
Reading every 6 hours by default (adjustable): Veolia only publishes one reading per day.
Need testers
I don’t have a Veolia meter: your feedback is precious!
Does Test the connection display your meter and your last reading correctly?
Do the values match those on the Veolia website?
Does your town have its own Veolia portal? Give me its address, I will add it.
In case of issues, open an issue on GitHub or reply here with the integration logs (remember to hide your e-mail and your meter number).
Thanks for the issue and for the very complete report! It’s in place in v1.3.0.
New portals managed
C Mon O
Atlantic’Eau
Calléo
Eau du Coquelicot
Eaux de Dinan
Nantes Métropole
Odici
SMAEP Ouest Briard
Sobass
Valyo
Vendée Eau
They are added to eau.veolia.fr and Eau de Toulouse Métropole.
To test C Mon O
Update the Veolia integration in Gladys.
Configuration tab → Customer space: choose C Mon O.
Click on Test the connection, then add the meter in Discovery.
The Check my town button now indicates the correct portal to choose for the towns of these services (for example La Roche-sur-Yon → Vendée Eau).
I don’t have an account on these portals, so your feedback on C Mon O is very interesting to me. If it doesn’t work, put the message displayed in the status here or on the issue, without the password.
@prohand, I managed to log in, I have my meter but no data has been sent to Gladys. All values are zero.
Maybe the API doesn’t return any values in my region?
Thanks @Will_71! I think your meter is not remotely read: Veolia then does not have daily readings, only billed volumes. Update the integration (v1.3.1) then click on Test the connection: the message now indicates the type of reading provided by Veolia. You can also check « Reading type » on your C Mon O subscription page. Let me know what is displayed.
Version 1.3.1 no longer displays false zeros, and the logs indicate what Veolia returns with each refresh.
@Will_71: Version 1.3.2 is available. Update the integration, then click Test Connection. The message now provides the meter reading type (or “not specified”) and the number of readings that Veolia sends. Copy the line for me (you can hide the meter number). If the type is “not specified,” also send the log line that starts with Subscription … no mode_releve.
Veolia does not provide a « meter reading type » for your meter. On your portal, the C Mon O website then does not display daily consumption. It only displays the billed volumes (one line per invoice: period, m³, index). Your meter is therefore not remotely read by Veolia.
Can you confirm what you see on C Mon O, under the consumption section? A daily curve, or just a list « From … to … » with m³?
If it’s the list, I can add that in the integration:
Yes, add the billed volumes: Gladys would have the meter index with each invoice and the consumption of each billed period. This only changes a few times a year, and there will be no daily value.
No, not useful for me: I leave it as is, with a clearer message (« meter not remotely read ») in Test the connection.
Click on Test Connection: you should see « not tele-read… Last invoice: X m³ (date → date), index Y m³ ».
As your meter is already added, go to Discovery and click on Update: this adds the « Billed Consumption » value.
The Water Consumption widget displays the last invoice, the index, and a graph of the last invoices.
The values are sorted by the date of each invoice, so they only change a few times a year. I don’t have a C Mon O account to test: let me know if the numbers match those on the website.