Sure Petcare: Negative battery %
The problem
I use the sure petcare integration to monitor the battery level of our sure petcare pet door, to ensure it never goes flat. The battery level for the pet door is currently displaying a negative percentage for battery level (-6%). This is unhelpful.
The pet flap is in re-chargeable mode as we use rechargeable batteries, not sure if this could be contributing to the issue.
What version of Home Assistant Core has the issue?
25.2.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Sure Petcare
Link to integration documentation on our website
https://www.home-assistant.io/integrations/surepetcare
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
Hey there @benleb, @danielhiversen, mind taking a look at this issue as it has been labeled with an integration (surepetcare) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of surepetcare can trigger bot actions by commenting:
-
@home-assistant closeCloses the issue. -
@home-assistant rename Awesome new titleRenames the issue. -
@home-assistant reopenReopen the issue. -
@home-assistant unassign surepetcareRemoves the current integration label and assignees on the issue, add the integration domain after the command. -
@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue. -
@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
surepetcare documentation surepetcare source (message by IssueLinks)
https://github.com/home-assistant/core/blob/dev/homeassistant/components/surepetcare/sensor.py#L63 looks roughly where this could be occurring.
Potentially fixed with a
if battery< 0
logger.info("Received invalid battery reading, discarding")
return 0
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Still an issue