question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SRP energy integration does not update on new data

See original GitHub issue

The problem

  1. the state updates on first run after a restart but does not update on subsequent changes
  2. the sensor class is total increasing however the value returned from SRP Energy is not a total increasing signal, it represents the daily energy use. This can result in errors when the current reading is lower than the previous as it is assumed that a new cycle started in between readings.
  3. the readings provided by SRP are not always stable until later in the day, I have noticed that the 23:00 reading is adjusted a couple of times in the early morning. Not sure but I suspect it is adjusted to balance the daily number.
  4. I don’t understand why the sensor name is hardcoded to “sensor” instead of the entity name.
  5. this did work a couple of years ago.

modified sensor code sensor.txt summary of logs showing behaviour for a typical day: srp logs.xlsx

full log over last restart at 04-05 to this morning home-assistant 2022-04-06.log

What version of Home Assistant Core has the issue?

core-2022.3.8

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

SRP Energy

Link to integration documentation on our website

https://www.home-assistant.io/integrations/srp_energy/

Diagnostics information

see log file however this trend shows the issue. The raw total represents the data returned by the api, however the state of the entity is not updated

image

Example YAML snippet

No response

Anything in the logs that might be useful for us?

The logs show the data coming in from the api, however the state of the entity does not update.

Additional information

I also attached a copy of the code modifications that i made to add additional logging.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:44 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
dinosoup1commented, Aug 3, 2022

Can confirm this is a critical bug - the plugin is currently useless without the above fix.

2reactions
briglxcommented, Apr 12, 2022

Hi @richardcalgary, I’ll investigate this and keep you posted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SRP Energy Integration not working
Update the SRP Energy sensor to be recognized by energy management ... raised an issue SRP energy integration does not update on new...
Read more >
Future plan for energy | SRP
New sources of renewable energy, like solar and wind, are joining SRP's portfolio of power generation. The integrated grid will balance the renewable...
Read more >
“Since We Last Met” - SRP
This first meeting will update ... SRP could clearly understand how different resource choices and energy ... for innovative applications of new power....
Read more >
Grid management and improvement projects - SRP
Carrying power through the Valley: SRP transmission projects. These projects are in progress to build, update and maintain the electric system that distributes ......
Read more >
SRP Integrated System Plan Advisory Group Meeting #6
Introduce models and data. Form the Technical. Subgroup. Modeling Subgroup. Meeting #1 Feb. 11th. Customer Research Update.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found