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

SMA data not updating #101643

Closed
ziogref opened this issue Oct 8, 2023 · 8 comments · Fixed by #101866
Closed

SMA data not updating #101643

ziogref opened this issue Oct 8, 2023 · 8 comments · Fixed by #101866
Assignees

Comments

@ziogref
Copy link

ziogref commented Oct 8, 2023

The problem

SMA Entities not updating
I have a SMA Sunny Boy 6.0 with a Sunny Home Manager 2.0 (Both connected to my network via Ethernet, Wifi Disabled)
I have the ability to see power coming in and out of my main power lines of the house.

As of approx 3-4 days ago Home assistant stopped getting live updates and they only update when I manually reload the integration.
Clicking through some of the sensors such as
Inverter condition
PV Power
Electricity Export
Electricity Import
Current Power Draw (in Watts)

All normally update every few seconds however all these have a last update of over 3 hours (when I last manually reloaded the current configuration.) Its currently dark outside and the last update I have on my PV Power is that im generating 5.7KW of solar.

This occurs on Home assistant version 2023.9.3, 2023.10 and 2023.10.1

The SMA app shows all the correct (and updated) information aswell as the WebUI on the inverter.

What version of Home Assistant Core has the issue?

core-2023.10.1

What was the last working version of Home Assistant Core?

core-2023.9.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

SMA Solar

Link to integration documentation on our website

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

Diagnostics information

No response

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 Oct 8, 2023

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

Code owner commands

Code owners of sma can trigger bot actions by commenting:

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

(message by CodeOwnersMention)


sma documentation
sma source
(message by IssueLinks)

@Leon3310
Copy link

Leon3310 commented Oct 8, 2023

Hello, I have the same issue with my SMA integration. For the past few days, some information only updates when I restart Home Assistant (for example: Total Yield). However, "Daily Yield" updates correctly.

home-assistant_sma_2023-10-08T17-49-08.690Z.log

@Leon3310
Copy link

Leon3310 commented Oct 9, 2023

Hello, I don't have any issues this morning. Everything seems fine now.

@osulivanDE
Copy link

same Problem like OP here. Some values updating, some only one time after HA restart once and after this no more value updates.
Problem exists since latest HA update 2023.10.1

@bajansen
Copy link
Contributor

I am experiencing the same issue. In the logs I found the message ValueError: Sensor sensor.kraftwerk_grid_power_factor_excitation has device class 'power_factor', state class 'measurement' unit 'None' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'Overexcited' (<class 'str'>). After disabling this sensor, the other sensors update normally.

@osulivanDE
Copy link

thanks. works for me ✌️

@rklomp
Copy link
Contributor

rklomp commented Oct 11, 2023

I am experiencing the same issue. In the logs I found the message ValueError: Sensor sensor.kraftwerk_grid_power_factor_excitation has device class 'power_factor', state class 'measurement' unit 'None' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'Overexcited' (<class 'str'>). After disabling this sensor, the other sensors update normally.

Thanks for looking into this @bajansen

I assume this SensorEntityDescription is incorrect:
https://github.com/home-assistant/core/blob/dev/homeassistant/components/sma/sensor.py#L274-L281

I expect removing lines 277 and 278 will fix it.

        state_class=SensorStateClass.MEASUREMENT,
        device_class=SensorDeviceClass.POWER_FACTOR,

I will see if I can validate this and propose a fix.

@ziogref
Copy link
Author

ziogref commented Oct 11, 2023

I am experiencing the same issue. In the logs I found the message ValueError: Sensor sensor.kraftwerk_grid_power_factor_excitation has device class 'power_factor', state class 'measurement' unit 'None' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'Overexcited' (<class 'str'>). After disabling this sensor, the other sensors update normally.

Legend. Disabled this and instantly all my values starting updating.
To save some time, other looking for this, its under "Diagnostic" entities

@github-actions github-actions bot locked and limited conversation to collaborators Nov 11, 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.

6 participants