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

Enphase Envoy - 2 cumulative sensors are decreasing instead of increasing #85172

Closed
jayzed2 opened this issue Jan 5, 2023 · 5 comments · Fixed by #87397
Closed

Enphase Envoy - 2 cumulative sensors are decreasing instead of increasing #85172

jayzed2 opened this issue Jan 5, 2023 · 5 comments · Fixed by #87397

Comments

@jayzed2
Copy link

jayzed2 commented Jan 5, 2023

The problem

I'm very new to Home Assistant .. I've added an Enphase Envoy Solar PV system to the setup and there was a log entry indicating that both of these are cumulative counters are counting down, rather than counting up!

I have found the graph of each of these sensors and this too is showing it is decreasing overtime

sensor.envoy_121749046258_last_seven_days_energy_production
sensor.envoy_121749046258_last_seven_days_energy_consumption

The log entry suggested that I should create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+enphase_envoy%22

What version of Home Assistant Core has the issue?

core-2023.1.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Enphase Envoy

Link to integration documentation on our website

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

Diagnostics information

Both of these are cumulative counters are counting down, rather than counting up!

2023-01-05 11:50:10.307 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.envoy_121749046258_last_seven_days_energy_production from integration enphase_envoy has state class total_increasing, but its state is not strictly increasing. Triggered by state 219326 (220256.0) with last_updated set to 2023-01-05T01:19:30.460453+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+enphase_envoy%22

2023-01-05 11:50:10.316 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.envoy_121749046258_last_seven_days_energy_consumption from integration enphase_envoy has state class total_increasing, but its state is not strictly increasing. Triggered by state 100465 (100617.0) with last_updated set to 2023-01-05T01:19:30.461073+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+enphase_envoy%22

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Jan 5, 2023

Hey there @gtdiehl, mind taking a look at this issue as it has been labeled with an integration (enphase_envoy) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of enphase_envoy can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign enphase_envoy Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


enphase_envoy documentation
enphase_envoy source
(message by IssueLinks)

@ernstdevreede
Copy link

I believe there are circumstances when the 7 days production or consumption will decrease.
If for example in the current day the production (which gets added to the 7 days total) is less than the production of 7 days ago (which is no longer included in the 7 days total), then the 7 days total will decrease.
This happens regularly in my solar panel setup and never worried me because of this explanation.

This might mean that both these 7 days total variables should not have state_class=SensorStateClass.TOTAL_INCREASING setting in the source code.

@jayzed2
Copy link
Author

jayzed2 commented Jan 5, 2023

Hi,
Thanks for your input on this matter - I'll let it go for now and see what the result is in the next few weeks.

As I'm very new to Home Assistant, I'm not sure where to check or adjust that variable - can you assist with explaining where I can find this variable?

Thanks
John

@networkerict
Copy link

I have the same issues:
2023-01-14 13:50:10.239 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.envoy_122131003872_last_seven_days_energy_production from integration enphase_envoy has state class total_increasing, but its state is not strictly increasing. Triggered by state 25012 (25.139) with last_updated set to 2023-01-14T12:48:59.712351+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+enphase_envoy%22
2023-01-14 13:50:10.245 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.envoy_122131003872_last_seven_days_energy_consumption from integration enphase_envoy has state class total_increasing, but its state is not strictly increasing. Triggered by state 190173 (190.835) with last_updated set to 2023-01-14T12:48:59.712590+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+enphase_envoy%22

Please advice.

@vpathuis
Copy link
Contributor

vpathuis commented Feb 4, 2023

Same. I don't think these entities are cumulative, they just add 7 non-cumulative values.
Should not have total_increasing. "total" is probably best.
Same goes for daily_production and daily_consumption, although I don't actually have theses entities. And even the lifetime_consumption and lifetime_production values can just be total, since there is no real reason for total_increasing.

Since the code owner is not responding, I've submitted a PR for this: #87397

@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants