core: Solaredge entities unavailable after receiving "Invalid energy values, skipping update" error

The problem

After receiving the 2022.4.0 update, my solaredge entities are marked as unavailable. This is the only error I see in the logs:

ERROR (MainThread) [homeassistant.components.solaredge] Error fetching <homeassistant.components.solaredge.coordinator.SolarEdgeOverviewDataService object at 0x7f1f67a12100> data: Invalid energy values, skipping update

Looks like the error was added to account for this issue: https://github.com/home-assistant/core/issues/59285

And here’s the PR that added it: https://github.com/home-assistant/core/pull/68048

I rolled back my container to version 2022.3.8 and my solaredge entities are back to working as expected.

What version of Home Assistant Core has the issue?

2022.4.0

What was the last working version of Home Assistant Core?

2022.3.8

What type of installation are you running?

Home Assistant Container

Integration causing the issue

solaredge

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

ERROR (MainThread) [homeassistant.components.solaredge] Error fetching <homeassistant.components.solaredge.coordinator.SolarEdgeOverviewDataService object at 0x7f1f67a12100> data: Invalid energy values, skipping update

Additional information

Here is what my API is returning for the overview endpoint:

    "overview": {
        "lastUpdateTime": "2022-04-07 11:35:49",
        "lifeTimeData": {
            "energy": 588283.0
        },
        "lastYearData": {
            "energy": 588285.0
        },
        "lastMonthData": {
            "energy": 173805.0
        },
        "lastDayData": {
            "energy": 11048.0
        },
        "currentPower": {
            "power": 3110.4705
        },
        "measuredBy": "INVERTER"
    }

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 55 (6 by maintainers)

Most upvoted comments

Sorry but…almost 2 months to fix something that was working?

Hi @MechEng70

Hi removed all the plugins from Solaredge and purged it afterwards from the database, dit multiple restarts in the mean time and after that i was able to get the plugins working again. Besides the regular SolarEdge plugin i was also using the modbus one which gives me the same issue. Lost a lot of data but haven an working setup again.

Again my apologies, I did not intend to irritate or offend, Thanks for the wonderful job to all those who contribute making HA such a jewel! 😃

@TheFitzZZ For me, current_power, energy_this_month, energy_this_year, energy_today, and lifetime_energy are all unavailable. exported_energy, site_details and solar_power are available, but I don’t use any of those sensors.