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

problem when no battery connected #9

Closed
bwynants opened this issue Jul 16, 2024 · 1 comment
Closed

problem when no battery connected #9

bwynants opened this issue Jul 16, 2024 · 1 comment

Comments

@bwynants
Copy link

Used Version of Home Assistant: 2024.7.2
Used Version of ha-pysmaplus: 0.3.7

Describe the bug, Remarks, ...
I have no battery connected. This is what the log gives...

ValueError: Sensor sensor.sunny_boy_smart_energy_5_0_battery_current_a has device class 'current', state class 'measurement' unit 'A' and suggested precision '1' thus indicating it has a numeric value; however, it has the non-finite value: 'nan'

@littleyoda
Copy link
Owner

The message is a hint that you can actually ignore.
If the message annoys you, it is probably easiest to deactivate the sensor in

grafik

The effort required to automatically deactivate the sensor in the program is significantly greater then the manual approach. There are sensors that do not provide any values at night. Distinguishing between sensors that are only inactive at night and sensors that are always inactive would be too complex in the program.

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

2 participants