twrecked / hass-aarlo

Asynchronous Arlo Component for Home Assistant
GNU Lesser General Public License v3.0
383 stars 77 forks source link

Extreme drain overnight #433

Open DerHerzog7 opened 3 years ago

DerHerzog7 commented 3 years ago

I've been having issues with extreme battery drain on my doorbell overnight. I had to replace my doorbell for another reason, so it was freshly charged and put in yesterday.

I contacted Arlo and they reviewed the logs - "Before the video doorbell drain its battery last April 12. It recorded a total of 596 minutes of camera usage. With 444 minutes of it is from livestreaming and 152 minutes of motion detection from 12 am to 7pm of April 12, 2021. The recommended usage of the camera battery is only 5 minutes recordings/livestreaming per day."

It looks like the integration kept the doorbell camera alive for a significant amount of time overnight?

It's possible my motion detection is just too high - something that I'll adjust. However, is there an issue in the current release regarding continuous streaming?

twrecked commented 3 years ago

What kind of doorbell is it? And how it connected? We used to have an issue with draining certain types of doorbells by pinging them too often. You can turn on logs and see what is happening, add this to configuration.yaml and reboot:

logger:
  default: info
  logs:
    custom_components.aarlo: debug
    custom_components.aarlo.alarm_control_panel: debug
    pyaarlo: debug

If you want me to take a look you can paste the logs into here and then paste that output to here.

DerHerzog7 commented 3 years ago

It's the Arlo wireless doorbell, connected via wifi and battery (can't wait for a firmware update to connect to the hub!). I removed Aarlo yesterday and tried it out - not even a 1% drop overnight, so it's definitely something to do with my Aarlo set up.

I'll reinstall and add the logs then send them through.

DerHerzog7 commented 3 years ago

Ok so I've reinstalled and run the logger. Looks like it is pinging the doorbell specifically every minute. I've attached the encrypted logs.

home-assistant-encrypted.log

twrecked commented 3 years ago

I guess unfixed this issue. Or I didn't fix it fully in the first place, I think my check for wifi might be wrong.

Can you re-run the tests but with verbose_debug: True added to your Arlo config. Be ware, this will add your arlo password base64 encoded into the debug, just search for password to remove it before you encrypt it.

DerHerzog7 commented 3 years ago

Here you go.

Is there a wait to disable the integration without removing it completely, so I don't drain the battery while we investigate? home-assistant (1).log

twrecked commented 3 years ago

Can you try beta 12. You should see a message with NO ping to DOORBELLID in the log. The doorbell wasn't providing a connectivity entry in the device details so the code assumed it wasn't WiFi and would try to ping.

As for turning it off, there isn't an easy way other than not configuring.

DerHerzog7 commented 3 years ago

ok looking at the logs it looks like it's stopped pinging the doorbell constantly. I did notice it pings the base station every minute or so - is that normal behaviour?

twrecked commented 3 years ago

Yes, that's normal. We follow the web interface where possible.

On Tue., Apr. 13, 2021, 23:35 DerHerzog7, @.***> wrote:

ok looking at the logs it looks like it's stopped pinging the doorbell constantly. I did notice it pings the base station every minute or so - is that normal behaviour?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/twrecked/hass-aarlo/issues/433#issuecomment-819204260, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALHJU6T2PABOKBZBPT3FS2DTIUEQZANCNFSM422VYKSQ .

DerHerzog7 commented 3 years ago

Ok great, thank you! Seems to be working. I'll report back if there are any issues.

twrecked commented 3 years ago

That's good news. Keep me posted.