SRP energy integration does not update on new data
See original GitHub issueThe problem
- the state updates on first run after a restart but does not update on subsequent changes
- 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.
- 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.
- I don’t understand why the sensor name is hardcoded to “sensor” instead of the entity name.
- 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

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:
- Created a year ago
- Reactions:2
- Comments:44 (12 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Can confirm this is a critical bug - the plugin is currently useless without the above fix.
Hi @richardcalgary, I’ll investigate this and keep you posted.