Try installing each separately (selenium and influxdb). I eventually installed it on my Windows just to try the script and had the same issue, but then did the pip install for each separately and it worked.
There’s also a few modifications you have to make to the script (apart from your account details) as previous “find element” commands have been deprecated, see below the relevant section I have updated (just copy the below to replace everything between “PrintDebug(“logging in”)” and “button.click()” under “PrintDebug(“selecting hourly”)”:
Thanks. That seemed to do the trick finding the files, however, I am now worried I could break something else as there is a warning message suggesting I should install in a virtual environment
Ufff I really don’t know. I’d say you’d be safer to do it on VM. I did it on my windows PC as I open it everyday and the py file can run every time I start the PC, so it’s not like having an allocated VM just for that script.
That looks like how others have gone about this. I think the best solution here is for someone way smarter than me implement a seamless end-to-end solution in Home Assistant as either a custom integration or a container add-on.
In case anyone is interested in integrating Anglia Water usage on HA, feel free to have a look at my post This was created based on @dan12345 script above (thanks Dan!).
I recently had a note from Anglian water to say that we’re getting a smart meter. Once it’s installed I’ll cook an integration up, for now it’s on my to-do list.
Hi @11harveyj did you manage to get an integration setup? I’ve also had a smart meter installed recently so would be very interested if you managed to get one working!
Interested in this too, I got an email from them saying that a smart meter is going to be installed soon, so waiting for it, then I can investigate & share what I find here.
I did see it, thanks. But I’m not keen on unencrypted login details on plain text. I’d rather have API calls. But yes, this is one of the way to gather information.
I spoke to Anglian Water in length about API calls, and this is what they have said to me… so a bit of a good news in the future, hopefully?
“I have spoken with our development team and they have advised that, right now, we don’t have an API that can be used to extract any data from the smart meter. However, this is one of our most requested features so we will be exploring options around this when we review the usage section overall in the near future.”
Bring it on, AWA have just advised me that I’ll be getting a Smart Meter within the next 3 weeks, as to an API, it never surprises me when a large company automates consumer data for their consumption but it never crosses the project manager’s mind that the consumer may want automated access too.