benleb / sureha

SureHA 🐾 monitor & control your Sure Petcare devices via Home Assistant
Apache License 2.0
20 stars 13 forks source link

Battery Level Unknown #31

Open totalitarian opened 2 years ago

totalitarian commented 2 years ago

Hi, any idea why my battery level is unknown despite having values?

image
rcastberg commented 1 year ago

I had a similar problem, have you installed via hacs? If so you might be missing the last change that hasn't been pushed to a release.

Specifically sensors.py and ini.py include the min and max voltages. These aren't present in the release sureha-0.4.2. You will have to either manually download these files and place them in the sureha folder, or manually change that lines.

Maybe @benleb can push a new release with these updates included. I had to figure this out as my battery warning automation kept telling me there was an invalid battery value.

Daneish commented 12 months ago

manually download these files and place them in the sureha folder

Thanks, that worked a treat!

Now, to figure out how to add a unit of measurement to the battery sensors…

ChristophCaina commented 1 month ago

should be fixed with #59