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

[Wh] counters at home assistant core 2023.9.1 not working #323

Open
christianmhuber opened this issue Sep 15, 2023 · 3 comments
Open

[Wh] counters at home assistant core 2023.9.1 not working #323

christianmhuber opened this issue Sep 15, 2023 · 3 comments
Labels
bug Something isn't working question Further information is requested

Comments

@christianmhuber
Copy link

@weltenwort Thanks a lot for the awesome integration.

I'm running home assistant on a QNAP NAS since a month and using the integration to pull data from my two RCT power storage DC10 and DC 6 (master and slave). The energy dashboard at home assistant is using for solar production the tags:

  • ... DC 10 Generator A Energy Production Total
  • ... DC 10 Generator B Energy Production Total
  • ... DC 6 Generator A Energy Production Total
  • ... DC 6 Generator B Energy Production Total

Besides this, I added at another dashboard to show some other RCT power storage DC tags.
E.g. "... DC 10 Generator A Energy Production Day" and "... DC 10 Generator A Power".

Back last Saturday I updated home assistant core to 2023.9.1.
After this all [Wh] counters had stopped working, e.g. Production Total as well as Production Day.
The [W] Power were still updating as expected.
Strange thing, after a restart of home assistant, the [Wh] counters got updated just ones to the correct value, then not anymore.

Therefore the solar production at home assistant energy dashboard showed non updating data.
Whereas grid energy consumption total, grid energy production absolute total, battery used and stored energy were working fine.

From the log e.g.:

File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 604, in state raise ValueError(
ValueError: Sensor sensor.rct_power_storage_dc_10_external_energy_production_year has device class 'energy', state class 'total_increasing' unit 'Wh' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-finite value: 'inf'

2023-09-11 07:55:10.350 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.rct_power_storage_dc_10_consumer_energy_consumption_day from integration rct_power has state class total_increasing, but its state is not strictly increasing. Triggered by state 2971.4 (2979.7) with last_updated set to 2023-09-11T05:53:23.981629+00:00. Please report it to the custom integration author.

Switched back to home assistant core 2023.08 this week Tuesday (switched to MariaDB too).
Since then both dashboards are working fine again.

Is this something, which should be addressed to home assistant or I'm here at the right spot?

Best regards
Christian

@weltenwort
Copy link
Owner

Hi @christianmhuber, sorry to hear you're running into problems. I can't observe the behavior on my deployments of 2023.9.2, but those are not cascaded deployments. Let's take a look at your log messages:

File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 604, in state raise ValueError(
ValueError: Sensor sensor.rct_power_storage_dc_10_external_energy_production_year has device class 'energy', state class 'total_increasing' unit 'Wh' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-finite value: 'inf'

This could be related to your problem. I wonder why the value would be reported as infinity, though. This usually only happens if the number exceeds the maximum representable value. And that should happen on 2023.8 and 2023.9 alike. If you're adventurous and want to try another update, we might glean something from the debug logs.

2023-09-11 07:55:10.350 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.rct_power_storage_dc_10_consumer_energy_consumption_day from integration rct_power has state class total_increasing, but its state is not strictly increasing. Triggered by state 2971.4 (2979.7) with last_updated set to 2023-09-11T05:53:23.981629+00:00. Please report it to the custom integration author.

This sounds identical to #258, which is only a warning and shouldn't cause a failure. I still haven't gotten around to fixing that.

@weltenwort weltenwort added question Further information is requested bug Something isn't working labels Sep 19, 2023
@rhoegen
Copy link

rhoegen commented Sep 22, 2023

Hi @christianmhuber,

i have a similar setup with two Storage DC 10 in Master/Slave mode and observed the same behaviour. Sometimes the values in the Energy Dashboard got updated after a restart, but not always.

I am using the "All Generators Energy Production Total" entities for Master and Slave for solar production. They were showing as unavailable in the configuration of the dashboard.

For my setup it seems to be solved by deactivating all External Energy production entities as well as all Slave Consumer Energy entities in the setup of the RCT Plugin.

Hope that helps...

@christianmhuber
Copy link
Author

Hi @weltenwort, hi @rhoegen,

thanks for the update and feedback.
At the next occasion I will update to 2023.9.2, get the debug logs and check whether the fix from @rhoegen will work for me too.

Thanks a lot to both of you for your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants