Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feed through from Bright #337

Open
david-b13 opened this issue Apr 24, 2023 · 10 comments
Open

Feed through from Bright #337

david-b13 opened this issue Apr 24, 2023 · 10 comments

Comments

@david-b13
Copy link

Feed of data has not been working correctly for several weeks. Have just looked at data in Bright app, and it seems to be correct and consistent with what I would expect.
I deleted integration and then reloaded, and issue seems to remain.
Is this consistent with others use ? And is there any update from integration owner on any fix ??

@cooljimy84
Copy link

I also seem to have this issue. I get a few updates around 1am-6am then no further updates. Even with debug enabled i no error saying unable to connect, so i just assume Bright are returning 0.

Not sure if they are just trying to get people off their API and buy services from them (Bright)

@JayUK
Copy link

JayUK commented Apr 27, 2023

I'm having an issue too. It seemed to stop working at the end of March. I haven't had any gas data since then and my electricity usage is very low/incorrect/sporadic.

The Glow App is showing the correct data.

I've spoken to Hildebrand, who said they've had similar emails about this issue. They tried to push me down their CAD product and use MQTT. They also (as you'd expect) don't offer any support for this integration/code/software as they didn't write it.

@RobertClarke64
Copy link

I've had these same issues since the end of March too. Bright app is showing correct (or at least reasonable - not verified to be correct) data. Home assistant is receiving very sporadic spikes in electricity use. The total electricity use per day on home assistant is significantly less than the total in the bright app.

Gas usage is also not working at all since end of March. I had a random spike of gas on the 19th April, but apparently a spike of -1241kWh. Unless my housemates were producing a inordinately large amount of gas that day, I don't think that's right. Even before the end of March, I was only getting gas/electricity usage updates once every 2-3 hours, creating a very sparse bar graph in home assistant. The total energy use per day did add up to about the same though at this point.

Since the end of March it's completely broken.

@RobertClarke64
Copy link

So I've copied in the sensor.py file into my HA instance from #331, and this has fixed the amount showing. This was only a few hours ago though, so haven't been able to fully test things yet.

I believe because of British Summer Time, a bug was causing the energy use between 12am and 1am to count as the energy use for the whole day. Obviously most people don't really use gas between 12am and 1am, hence no gas usage showing up.

So far my energy use updates have still been 2 hours apart, so still leaving gaps in my bar chart. Maybe this is something for another issue though.

@david-b13
Copy link
Author

Ah OK. So will it be fixed if I re-install the integration ? or do I need to do the manual "replace sensor.py" thing ??

@RobertClarke64
Copy link

@david-b13 You've got to manually replace I'm afraid, the merged pull request hasn't been given a release tag yet, so is not viewed by HACS as a new version.

Looking at my data, for the most part I'm receiving updates exactly 2hrs30mins apart, rather than once per 30mins, as expected.
image

There's still a part at the end of the graph where I have slightly more frequent updates.
image

That being said, the total for the day so far does represent what the Bright app is showing, minus a small amount, probably due to the delay between the app and Home Assistant.

@mutlow89
Copy link

mutlow89 commented Jul 3, 2023

Since installing this integration a few months ago I was experiencing the same issue described here. Usage in home assistant did not match that displayed on my home energy monitor or the bright app.

As mentioned above a temporary solution can be found following various comments

It took me a while to figure the fix out myself so here are some instructions for others who may find this thread / need a little assistance (It assumes you already have the Hildebrand Glow integration installed):

  1. Make a backup of homeassistant before making any changes (in homeassistant go settings > system > backups > click create backup at the bottom right > write a name > click create)
  2. Download a copy of the backup to another device (select the backup name you just created > hit the three dots > download backup)
  3. Install the file editor add-on (in homeassistant go settings > add-ons > click add-on store bottom right > search file editor > hit install)
  4. Once installed hit "start" and reboot homeassistant.
  5. One restarted open file editor (in homeassistant go settings > add-ons > select file editor > open web-ui)
  6. Navigate to /custom_components/hildebrandglow_dcc/sensor.py (click the folder icon top left > click custom_components > click hildebrandglow_dcc > click sensor.py > click on the text file that appears)
  7. Check you have navigated to the right file (does it say /custom_components/hildebrandglow_dcc/sensor.py at the top of the screen above the code)
  8. Open this link in a new tab and copy all of its contents (ctlr+a > ctrl+c)
  9. Go back to the file editor, select everything and delete it, then replace with the code copied from step 8 (ctrl+a > backspace > ctrl+v)
  10. Hit the red save icon that appears (top right)
  11. Restart homeassistant (go settings > system > hit top right power icon > select restart home assistant.
  12. After 5 mins my data started displaying correctly.

@siobhanellis
Copy link

Since installing this integration a few months ago I was experiencing the same issue described here. Usage in home assistant did not match that displayed on my home energy monitor or the bright app.

As mentioned above a temporary solution can be found following various comments

It took me a while to figure the fix out myself so here are some instructions for others who may find this thread / need a little assistance (It assumes you already have the Hildebrand Glow integration installed):

Thank you so much. Saved me a huge amount of time!

@david-b13
Copy link
Author

Thanks for this @mutlow89 - I re-did the integration with this method (think I had updated it before also).

I still find differences between what is reported in the app (Bright) and what Home Assistant shows.

For example - total electricity usage from earlier last week (Tuesday):

  • Home Assistant - 31.03 kWh
  • Bright - 32.299 kWh

Is anyone else getting this sort of difference ??

@gcoan
Copy link

gcoan commented Sep 5, 2023

Thanks to @RobertClarke64 and @mutlow89 for the comprehensive fix instructions and fix #331, I followed them, copying sensor.py into HA (making a backup of the file first), and it works, I am getting DCC sourced energy usage and cost into HA.
Comparing the kW import data to the same that I get from my inverter, the DCC data is very very similar, sometimes a touch higher, sometimes a touch lower BUT the DCC data is badly lagged and nowhere near as granular. Sometimes is 30 minutes delayed, sometimes its 3 hours delayed.
TBH this delay in the data makes the integration fairly useless as its so behind reality. At least it gives me confidence in being able to use my inverter import data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants