Integrating Anglia water usage for smart meters (UK)

You will need to upgrade to one of the beta releases as the previous versions of the modules have been taken down.

Thanks @11harveyj . Just downloaded and restarted HA. Iā€™m getting a little further, but the integration still doesnā€™t load. Here is what I am seeingā€¦

image

Any next step suggestions please?

Seems like the API is returning some invalid data.

Can you open an issue on GitHub and enable debug logging please?

Iā€™ve completely removed the integration and started again and it is working, however, I am zero usage for 30th April and the 1st of May and have the following for the 2nd May :astonished: (although the Anglian app is showing the correct readings).

The import from 3rd onwards looks correct.

Make sure to run the force refresh statistics service as per the release notes:

If upgrading from a previous version, please manually run anglian_water.force_refresh_statistics with a start date of at least a year ago, and end date of the current date.

That behaviour is intended as it only requests the last 2 days of usage if the integration has been setup before.

2 Likes

Thankyou. All good now.

1 Like

been missing data since the 6th and contacted AW and they apparently have an issue getting the data distributed in case someone else is wondering - no eta for the fix yet

1 Like

and it seems it is back now

Iā€™ve just raised an issue, itā€™s asking for a custom tariff when selecting standard? Curious as to whether this is usage/m3 or usage+sewerage(90% usage)/m3?

Hello all,

I donā€™t have any readings since the 1st of August and I canā€™t see anything wrong on the logs after the runs. I see my data on AW website. Has anybody experienced the same? Not sure where to start debugging.

Just realised @11harveyj has created a more proper integration, than the app daemon and manual meters hack, thanks!
Is now installed and hopefully ready to get dataā€¦

While I try to find how to run the force refresh, I guess I will stop the previous script and remove the meters since I will be able to get historic data or Iā€™m missing something?

Thank you.

You will get historic data pulled in and you can add to your energy dashboard, although AW have replaced their mobile app entirely (which is what this was based on) so Iā€™m not 100% sure how long it will work in itā€™s current state. The new one is much more complicated when it comes to auth and is pretty much just a container for their website so will take some time to pick it apart.

1 Like

Thank you! I can say that at the moment is working like a charm and I have the past history on my energy dashboard.

Lets see how long it takes for them to retire the old app.

Iā€™m hoping they leave it as it is for now, theyā€™ve stuck an overlay on the old app and thatā€™s about it, but based on previous conversations Iā€™ve had with one of their directors they seemed interested in the idea but radio silence since.

1 Like

Thanks for the integration :grinning:
It is probably a lack of knowledge on my part but how could I use this data to identify a possible leak?
It provides an entity that I could alert on for the daily water usage but that will never be zero, and hourly data loaded into long-term statistics that should often be zero but I do not know how I would generate an event from them.
It would be really good to have the integration set an entity if there were no contiguous zero readings over a block of x hours in the last 24, where x is configurable. Or similar.
Sorry if I am missing an obvious trick but otherwise thanks in advance for your thoughts.

Perhaps this could be a sensor added to this integration, but to be honest at the moment I have no clue how you would do it as the readings arenā€™t live.

Iā€™m also not 100% sure how long this will continue to work given AW have replaced everything in the mobile app with something that is pretty much just a web browser to their website which is really frustrating as I started a PR to add this to core.

Well lets hope it has a long life.
In the interim someone else might have a good idea to process the hourly data for leak detection.
Thanks again.

1 Like

Hi
I am new to the Home Assistant setup but have managed to setup quite a few integrations (hue, shelly, tado, miele, apple, bright for energy) and last night I added Anglian Water

my issue (i have the home assistant green device) seems to be around the appdaemon not starting properly, i get this error. I followed all of the steps in the original updated post.

ERROR: pipā€™s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
appdaemon 4.4.2 requires websocket-client~=1.5.1, but you have websocket-client 1.8.0 which is incompatible.
Successfully installed PySocks-1.7.1 outcome-1.3.0.post0 selenium-4.24.0 sniffio-1.3.1 sortedcontainers-2.4.0 trio-0.26.2 trio-websocket-0.11.1 typing_extensions-4.12.2 websocket-client-1.8.0
WARNING: Running pip as the ā€˜rootā€™ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: 12. Virtual Environments and Packages ā€” Python 3.12.5 documentation
/etc/s6-overlay/s6-rc.d/init-appdaemon/run: line 45: : command not found
[15:39:03] FATAL: Failed executing init command:
s6-rc: warning: unable to start service init-appdaemon: command exited 1
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.

looks like i have the wrong version of websocket installed

does anyone else have this particular issue and how did you resolve it?