core icon indicating copy to clipboard operation
core copied to clipboard

Sure Petcare: Negative battery %

Open Samuel12321 opened this issue 11 months ago • 3 comments

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

Samuel12321 avatar Feb 08 '25 04:02 Samuel12321

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 close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign surepetcare Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove 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)

home-assistant[bot] avatar Feb 08 '25 04:02 home-assistant[bot]

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 

CloCkWeRX avatar Feb 09 '25 03:02 CloCkWeRX

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

Samuel12321 avatar May 17 '25 04:05 Samuel12321