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

BUG: SPH4600 Entity sensor.npcs123_load_consumption_energy_ac_today_calculated has state class total_increasing & same for ac_today_calculated #97

Open
typxxi opened this issue Sep 4, 2024 · 4 comments

Comments

@typxxi
Copy link

typxxi commented Sep 4, 2024

SPH4600
Here is an error I found in the log where it claims that 2 sensors have the wrong state class (total_increasing) where I guess total should be right.

image

Entity sensor.npcs123_load_consumption_energy_ac_today_calculated has state class total_increasing, but its state is negative. Triggered by state -2.8 with last_updated set to 2024-09-03T18:54:59.999999+00:00.

Entity sensor.npcs123_load_consumption_energy_pv_today_calculated from integration grott has state class total_increasing, but its state is negative. Triggered by state -0.1 with last_updated set to 2024-09-04T07:29:49.743083+00:00.

@typxxi typxxi changed the title BUG: Entity sensor.npcsbkp041_load_consumption_energy_ac_today_calculated has state class total_increasing & same for ac_today_calculated BUG: SPH4600 Entity sensor.npcs123_load_consumption_energy_ac_today_calculated has state class total_increasing & same for ac_today_calculated Sep 4, 2024
@muppet3000
Copy link
Owner

I'm a bit confused by how those values are showing as negative.
For example the AC one is the sum of the energy consumed from the grid and the amount charged into the battery, both of which cannot have negative values (at least on my system).
The exact calculation is:
"Import from Grid Energy - Today" - "Battery AC Charge Energy - Today"

All energy consumed from the grid should be greater than (or equal to) the AC charge energy put into the battery.

I'd be interested to see the value of those other 2 sensors at the same time.

@BobC76
Copy link
Contributor

BobC76 commented Sep 10, 2024

Duplicate of #94 ?

@typxxi
Copy link
Author

typxxi commented Sep 13, 2024

Here ist the graph of the first sensor.

image

and the second one is way off for whatever reason - 429 million kWh load per day?
image

BUT: if I check the graph values over the day I can see the value is decreasing
for example 3rd of september in the evening is lower /429.496.690,7) than
image

in the morning 429.496.726,8
image

Hope that it helps a bit but so far the "error message" might be right.

@typxxi
Copy link
Author

typxxi commented Sep 13, 2024

Duplicate of #94 ?

Duplicate of #94 ?

not really convinced cause you had shown a different graph while my first sensor is alternating from negative to positive and what not, which fits to the description in the log

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

3 participants