benleb / sureha

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

Microchip Pet Door Battery Sensor needs some tuning #14

Open SamboyCoding opened 2 years ago

SamboyCoding commented 2 years ago

The battery sensor for the Sure Petcare Microchip Pet Door needs some tuning - the app has just sent me a Low Battery warning (so it's on about 10%, I guess?) and this integration is reporting... -16%. Which is obviously wrong.

Attached is a screenshot showing the reported voltage per battery and total voltage.

It is interesting though that the graph shows the percentage dropping from 44% at 06:04 this morning to -16% at 11:46, with no data points in between.

image

benleb commented 2 years ago

Hey, yes thats a point where I would need some help as I cannot make sense from the battery data of the various devices... I will post additional info here the next days!

matt-cahill commented 2 years ago

Hi I'm willing to help, I have a cat flap with rechargeable batteries so adjusting the voltage levels is a great feature for me. Since 0.4.2 though I get unknown for the battery sensor state. Let me know if you want a separate issue for this?

image

xbmcnut commented 2 years ago

Mine came right after an hour or so. What batteries are you using?

matt-cahill commented 2 years ago

Panasonic Eneloop Pro. I've had 0.4.2 installed for a few days and it hasn't come right, even after a restart and fiddling around with the voltage settings a bit and removing and re-installing the integration.

Entity:  sensor.cat_flap_side_door_battery_level
State: unknown

State attributes (YAML, optional)
battery_level: 45
voltage: '5.53'
voltage_per_battery: '1.38'
unit_of_measurement: '%'
friendly_name: Cat Flap Side door Battery Level
device_class: battery
jumpingmushroom commented 2 years ago

Panasonic Eneloop Pro. I've had 0.4.2 installed for a few days and it hasn't come right, even after a restart and fiddling around with the voltage settings a bit and removing and re-installing the integration.

Entity:  sensor.cat_flap_side_door_battery_level
State: unknown

State attributes (YAML, optional)
battery_level: 45
voltage: '5.53'
voltage_per_battery: '1.38'
unit_of_measurement: '%'
friendly_name: Cat Flap Side door Battery Level
device_class: battery

+1 on this. I'm experiencing similar issues on both the water pond and the cat flap. In my case I'm using generic panasonic batteries on the cat flap and energizer batteries on the pond.

retoziegler commented 2 years ago

Same issue here: since updating to latest version the battery sensor shows unknown, although in the attributes it shows the correct battery level (pet flap): image

xbmcnut commented 2 years ago

Even though my battery sensor is working, seems there is a glitch between the main value and the attribute value. This creates a problem for my https://github.com/maxwroc/battery-state-card as it's reporting the attribute value instead of the entity one.

image

totalitarian commented 2 years ago

Same issue here. Battery showing as unknown.

xbmcnut commented 2 years ago

Hey Ben,

I mistakenly removed my integration over the weekend and reinstalled (due the server error at Sure). After re-installation, I now get what other people are reporting and that's the lack of battery level. I have '''battery_level``` attributes but the main sensor reports unknown now. Is this something you are aware of?

image

Running SureHA v0.4.2 and HA 2022.02.03

netphantm commented 7 months ago

I used to see the same as @xbmcnut, but I also recently reinstalled SureHA and now I see this:

image

surepet shows about half:

image

I run it with a SureFLAP Connect (with hub)