HandyHat / ha-hildebrandglow-dcc

Home Assistant integration for UK SMETS (Smart) meters pulling data from the DCC via the Hildebrand Glow API
MIT License
229 stars 31 forks source link

No Longer Working #396

Open 25garfield opened 3 months ago

25garfield commented 3 months ago

Is this project now official none working? Or has someone got anything that is still working and pulling data even if its a day old? If so can they share what they have, a dump of the files that work is fine.

My copy of the integration is no longer working at all (or at least it isn't pulling data down), and would like to make one last effort to keep this active before having to look at spending money lol.

pepetheprawn commented 3 months ago

Mine was working fine until 1st April when it appears to have stopped. Checking the Bright/Glowmarkt dashboard I can see that my usage data is there. Looking at entity states (developer tools) I can see that the 'cost today' sensors have value, but the 'usage today' sensors do not. I have given HA a full reboot just to see if that kicks anything into life and will report back if anything happens.

25garfield commented 3 months ago

@pepetheprawn can I ask what version hac is reporting you have installed?

pepetheprawn commented 3 months ago

Hi, I've got version 1.0.3

25garfield commented 3 months ago

thank you mine was showing something else so i’ve down/upgraded it

Paulholloway commented 3 months ago

Same issue here with

1.0.3 and

HA Core 2024.3.3 Supervisor 2024.03.1 Operating System 12.1

restart/reloading have no effect. Entity merely 'fails setup'.

36ve commented 3 months ago

having the same issue

Have home assistant green using the same version as above

dgibbs64 commented 3 months ago

Can confirm. Data is very broken as of 1st April. This project definitely needs some bug fixes done to it image

pepetheprawn commented 3 months ago

All - there is a fix for this here: https://github.com/HandyHat/ha-hildebrandglow-dcc/issues/337#issuecomment-1535479784

I did this yesterday and mine is working again now.

dgibbs64 commented 3 months ago

Just to add to @pepetheprawn he is referring to updating sensor.py found in custom_components/hildebrandglow_dcc with this replacement.

I have just done this and hopefully that will sort it out. I hope the maintainer does a release soon or someone else forks this project as it is a very useful addon to HA.

edit: can confirm this appears to be working now

captaindaveman commented 3 months ago

Could this be to do with clock changes?

pepetheprawn commented 3 months ago

yes - it was exactly to do with the BST change. Please refer to the link I posted previously.

Paulholloway commented 3 months ago

FYI -

restart/reloading have no effect. Entity merely 'fails setup'.

can be resolved by removing and re-installing the integration, forcing a new login.

On attempting to login to the glowmarkt website, I had to reset my password. Having reinstalled the integration and logging in again with my updated password, I've got data once more.

dgibbs64 commented 3 months ago

I have forked and added some of the outstanding pr's to sensor.py. Hopefully some of you will find it useful. https://github.com/dgibbs64/ha-hildebrandglow-dcc/blob/main/custom_components/hildebrandglow_dcc/sensor.py

wildcard5 commented 3 months ago

@dgibbs64

Thank you for the single file copy and paste solution it worked a treat (sensor.py) from your link above.

nsbarrow commented 2 months ago

I have forked and added some of the outstanding pr's to sensor.py. Hopefully some of you will find it useful. https://github.com/dgibbs64/ha-hildebrandglow-dcc/blob/main/custom_components/hildebrandglow_dcc/sensor.py

Swapped the sensor.py file and now we're back in business. Thank you so much for your efforts @dgibbs64

hirenshah commented 2 months ago

I replied the file with the updated one, and have even removed/readded the integration but for some reason my Gas data has stopped working,. Electricity still shows as expected:

image

rleatherb commented 2 months ago

I've replaced the sensor.py file with the one posted by @dgibbs64. Many thanks for this. It now almost works, but for some reason it is counting the standing charge twice, once at midnight and once at 1:00 am. Looks like daylight savings not being accounted for properly when it comes to the standing charge, perhaps? This is happening on both gas and electric for me.

dgibbs64 commented 2 months ago

I seem to be experiencing negative costs currently on some days

hirenshah commented 1 month ago

I have forked and added some of the outstanding pr's to sensor.py. Hopefully some of you will find it useful. https://github.com/dgibbs64/ha-hildebrandglow-dcc/blob/main/custom_components/hildebrandglow_dcc/sensor.py

I'm getting data but it isn't every hour for some reason... got 1-3 hours of gaps in between.

dgibbs64 commented 1 month ago

So I have found that (from testing and notes in other issues) that yesterday's data is ending up in today's data. This is due to the code grabbing yesterday's data as according to the code's comments the gas data can have around a 30-minute delay. From doing a bit of reading HA sensors typically get real-time data and this historical data is probably the problem. I found this https://github.com/ldotlopez/ha-historical-sensor that is used in another similar integration https://github.com/ldotlopez/ha-ideenergy to resolve the issue. Sadly I have little Python knowledge to look at the problem and with there being no updates to this project and no one who has yet forked or created a new integration, sadly I think the only choice if you live in the UK is to buy the IHD https://shop.glowmarkt.com/ This is a shame as 30 min updates are probably enough for many people especially if you cant justify the £70 expense of a new IHD.

jamesweech commented 1 month ago

@dgibbs64 another thing to try is https://glow-energy.io/ . It's built specifically for HA and the parts in total cost me about £10 on Aliexpress.

SimsJM commented 1 month ago

Hi there,

I tried fixing the update to the sensor.py file. How do I restart the app? Is it the same as 'reloading' it?

janusn commented 1 day ago

@dgibbs64

With your patched sensor.py. It worked despite DST issues.

Unfortunately it failed again. There were a few missing data on 1st and 2nd July and no reading at at all today. Screenshot 2024-07-03 at 19 17 14