volca / homebridge-esplock

HTTP controlled ESP8266 lock accessory plugin for Homebridge
11 stars 10 forks source link

"Battery Low" yet 100% shown #7

Closed macmonty closed 6 years ago

macmonty commented 6 years ago

Hi, my esp8266 doorlock in are showing low battery in Home while simultaneously showing 100% battery. I'm not sure I trust that 100% but I don't know how to independently verify what's accurate.

volca commented 6 years ago

Yes. the sketch writes hard code 100% battery level. You can modify it to measure battery level and get accurate value.

Please check the document for ESP.getVcc()

macmonty commented 6 years ago

I think this is not the issue, the esp reports 100 % battery level (checked by http response), but in my iphone the device shows icon of low level battery captura de pantalla 2018-08-13 a las 9 00 03 captura de pantalla 2018-08-13 a las 8 59 45

volca commented 6 years ago

Could you please show the sketch for esp8266? see the issue also

macmonty commented 6 years ago

Thanks problem solved, runs like a charm!!

volca commented 6 years ago

Thanks for confirming. I've also modified this line in that sketch