hass-aarlo icon indicating copy to clipboard operation
hass-aarlo copied to clipboard

Camera Battery % not sync

Open QuakeGio83 opened this issue 2 years ago • 28 comments

Hi, I just uptade to last aarlo release and i still have problem with battery %, so in HA i do not see the battery status sync with real status. battery level that i see on Arlo app is different from what i see on HA. also if i put in charge camera, i can see it in arlo app, but not in HA.

QuakeGio83 avatar Nov 13 '21 18:11 QuakeGio83

Can you get some debug. Turn on these settings and let it run for a while. The trace should contain the battery update information.

aarlo:
  ... your existing config
  verbose_debug: True

logger:
  default: info
  logs:
    custom_components.aarlo: debug
    custom_components.aarlo.alarm_control_panel: debug
    custom_components.aarlo.binary_sensor: debug
    custom_components.aarlo.camera: debug
    custom_components.aarlo.light: debug
    custom_components.aarlo.media_player: debug
    custom_components.aarlo.sensor: debug
    custom_components.aarlo.switch: debug
    pyaarlo: debug

If you want to strip out the non Aarlo stuff you can run the following command on the Home Assistant logs.

egrep '(aarlo|^  |^\{)' home-assistant.log > aarlo.log

This Section of the docs explains how to hide the data so only I can see it. You'll need to copy and paste the output to a file and attach that to the comments.

twrecked avatar Nov 14 '21 02:11 twrecked

I am seeing the same thing but it may not be a sync issue. I think the sensor readings are not being updated anymore. My Arlo Essential battery level and wifi signal strength readings are all from 2 days ago which is when I reset HA. Each day I check they still indicate the same value and it says updated 2 days ago. I am able to arm/disarm, turn on spotlight, and turn on sirens on the cameras correctly so it seems to only be the sensor type items. How often are these items read from the cameras? Not sure if it matter but I have an essential spotlight camera so it has no basestation.

jeprice77 avatar Nov 19 '21 17:11 jeprice77

For me it is the same. Also i notice battery drain for some camera. For above reason i disconnect the aarlo from HA in this moment, otherwhise i must recharge camera every 2 days

Giorgio

Da: @.> Inviato: venerdì 19 novembre 2021 18:33 A: @.> Cc: @.>; @.> Oggetto: Re: [twrecked/hass-aarlo] Camera Battery % not sync (Issue #522)

I am seeing the same thing but it may not be a sync issue. I think the sensor readings are not being updated anymore. My Arlo Essential battery level and wifi signal strength readings are all from 2 days ago which is when I reset HA. Each day I check they still indicate the same value and it says updated 2 days ago. I am able to arm/disarm, turn on spotlight, and turn on sirens on the cameras correctly so it seems to only be the sensor type items. How often are these items read from the cameras? Not sure if it matter but I have an essential spotlight camera so it has no basestation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/twrecked/hass-aarlo/issues/522#issuecomment-974269315, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARKLVQYCBZZLLV2HJXQF5YLUM2C6FANCNFSM5H64XZTQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

QuakeGio83 avatar Nov 20 '21 09:11 QuakeGio83

I think I might now what the issue is. I turned off pinging the device because it was draining the battery but I think the ping might be what triggers the battery status to update. Maybe I can add a service call or configurable delay to check these numbers.

But, if anybody wants to share an essential camera with for a day or two that would be great as well. I can check what the Arlo web page does with those cameras, maybe the implemented a new call for them.

twrecked avatar Nov 21 '21 21:11 twrecked

Share your mail :)Il 21 Nov 2021 22:38, Steve Herrell @.***> ha scritto: I think I might now what the issue is. I turned off pinging the device because it was draining the battery but I think the ping might be what triggers the battery status to update. Maybe I can add a service call or configurable delay to check these numbers. But, if anybody wants to share an essential camera with for a day or two that would be great as well. I can check what the Arlo web page does with those cameras, maybe the implemented a new call for them.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

QuakeGio83 avatar Nov 21 '21 22:11 QuakeGio83

Thanks! It's XXXX

twrecked avatar Nov 22 '21 02:11 twrecked

Done itIl 22 Nov 2021 03:12, Steve Herrell @.> ha scritto: Thanks! It's @.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

QuakeGio83 avatar Nov 22 '21 06:11 QuakeGio83

I see the problem. They've replaced the notification system. The are no longer using Server Sent Event streams but MQTT over WebSockets.

The contents look similar but I'll need to write a new piece to connect and handle packets.

twrecked avatar Nov 22 '21 14:11 twrecked

Good so we will wait / cross finger your modification :) thanks in advance

------ Messaggio originale ------ Da: "Steve Herrell" @.> A: "twrecked/hass-aarlo" @.> Cc: "QuakeGio83" @.>; "Author" @.> Inviato: 22/11/2021 15:20:10 Oggetto: Re: [twrecked/hass-aarlo] Camera Battery % not sync (Issue #522)

I see the problem. They've replaced the notification system. The are no longer using Server Sent Event streams but MQTT over WebSockets.

The contents look similar but I'll need to write a new piece to connect and handle packets.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/twrecked/hass-aarlo/issues/522#issuecomment-975576388, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARKLVQ4MRVC4DFNLB5O4C7LUNJGRVANCNFSM5H64XZTQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

QuakeGio83 avatar Nov 22 '21 14:11 QuakeGio83

I'm just testing the first part of the MQTT change and so far it looks good. I'll let this run a while and maybe push a test fix out on Friday. A few things:

  • this is an initial fix, I can actually move the ping and control mechanisms into the mqtt interface as well, for now I'm keeping the REST API calls
  • the mqtt client seems more robust that the SSE client
  • you can actually see the event packets in Chrome (or the browser of your choice). If you press CTRL + SHIFT + I and then navigate to my.arlo.com you'll see a mqtt entry in the Network tab. This is all the signalling from Arlo. This should make debugging easier
  • I'm not sure how logouts will be handled, I'm leaving the system running to see what happens

twrecked avatar Nov 25 '21 05:11 twrecked

Thanks for the update :)Il 25 Nov 2021 06:58, Steve Herrell @.***> ha scritto: I'm just testing the first part of the MQTT change and so far it looks good. I'll let this run a while and maybe push a test fix out on Friday. A few things: this is an initial fix, I can actually move the ping and control mechanisms into the mqtt interface as well, for now I'm keeping the REST API callsthe mqtt client seems more robust that the SSE clientyou can actually see the event packets in Chrome (or the browser of your choice). If you press CTRL + SHIFT + I and then navigate to my.arlo.com you'll see a mqtt entry in the Network tab. This is all the signalling from Arlo. This should make debugging easierI'm not sure how logouts will be handled, I'm leaving the system running to see what happens

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

QuakeGio83 avatar Nov 25 '21 06:11 QuakeGio83

Hijust installed the new beta version 0.7.2.beta.0 and i still see the wrong battery %.Ineed to do something more ?thanksl 25 Nov 2021 06:58, Steve Herrell @.***> ha scritto: I'm just testing the first part of the MQTT change and so far it looks good. I'll let this run a while and maybe push a test fix out on Friday. A few things: this is an initial fix, I can actually move the ping and control mechanisms into the mqtt interface as well, for now I'm keeping the REST API callsthe mqtt client seems more robust that the SSE clientyou can actually see the event packets in Chrome (or the browser of your choice). If you press CTRL + SHIFT + I and then navigate to my.arlo.com you'll see a mqtt entry in the Network tab. This is all the signalling from Arlo. This should make debugging easierI'm not sure how logouts will be handled, I'm leaving the system running to see what happens

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

Il 25 Nov 2021 06:58, Steve Herrell @.***> ha scritto: I'm just testing the first part of the MQTT change and so far it looks good. I'll let this run a while and maybe push a test fix out on Friday. A few things: this is an initial fix, I can actually move the ping and control mechanisms into the mqtt interface as well, for now I'm keeping the REST API callsthe mqtt client seems more robust that the SSE clientyou can actually see the event packets in Chrome (or the browser of your choice). If you press CTRL + SHIFT + I and then navigate to my.arlo.com you'll see a mqtt entry in the Network tab. This is all the signalling from Arlo. This should make debugging easierI'm not sure how logouts will be handled, I'm leaving the system running to see what happens

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

QuakeGio83 avatar Nov 28 '21 10:11 QuakeGio83

Do I have admin access to your camera?

twrecked avatar Nov 28 '21 13:11 twrecked

YesIl 28 Nov 2021 14:22, Steve Herrell @.***> ha scritto: Do I have admin access to your camera?

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

QuakeGio83 avatar Nov 28 '21 13:11 QuakeGio83

I mean, now yes :)Il 28 Nov 2021 14:59, Giorgio Iracà @.> ha scritto:YesIl 28 Nov 2021 14:22, Steve Herrell @.> ha scritto: Do I have admin access to your camera?

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

QuakeGio83 avatar Nov 28 '21 14:11 QuakeGio83

Thanks! I think I also found the problem, your camera provides extra data during start up that I'm not reading, this data incudes the battery level.

I'll try this and push an update soon.

twrecked avatar Nov 28 '21 14:11 twrecked

Wonderful 👍👍👍Il 28 Nov 2021 15:02, Steve Herrell @.***> ha scritto: Thanks! I think I also found the problem, your camera provides extra data during start up that I'm not reading, this data incudes the battery level. I'll try this and push an update soon.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

QuakeGio83 avatar Nov 28 '21 14:11 QuakeGio83

Can you try with 0.7.2b1.

For older cameras startup looks like:

  • read device list
  • get device resources

For newer cameras we don't do part 2, it drains the battery, and these resources includes the battery level. Turns out Arlo added the battery level to the device list for newer devices. So now the code reads that.

twrecked avatar Nov 28 '21 14:11 twrecked

Now i can see the right battery %I'll test it to see if I found some error or battey drainMeanwhile, thanks a lot 😁Il 28 Nov 2021 15:35, Steve Herrell @.***> ha scritto: Can you try with 0.7.2b1. For older cameras startup looks like: read device listget device resources For newer cameras we don't do part 2, it drains the battery, and these resources includes the battery level. Turns out Arlo added the battery level to the device list for newer devices. So now the code reads that.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

QuakeGio83 avatar Nov 28 '21 14:11 QuakeGio83

Does this also effect other data such as wifi signal strength? Just wondering.

On Sun, Nov 28, 2021, 9:40 AM QuakeGio83 @.***> wrote:

Now i can see the right battery %I'll test it to see if I found some error or battey drainMeanwhile, thanks a lot 😁Il 28 Nov 2021 15:35, Steve Herrell @.***> ha scritto: Can you try with 0.7.2b1. For older cameras startup looks like: read device listget device resources For newer cameras we don't do part 2, it drains the battery, and these resources includes the battery level. Turns out Arlo added the battery level to the device list for newer devices. So now the code reads that.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/twrecked/hass-aarlo/issues/522#issuecomment-981096968, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQYMR4ZOAUUY63EZ3D2C7DUOI5O5ANCNFSM5H64XZTQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

jeprice77 avatar Nov 28 '21 14:11 jeprice77

For wifi signal is hard to understand, however seams to be ok.Il 28 Nov 2021 15:42, jeprice77 @.***> ha scritto:

Does this also effect other data such as wifi signal strength? Just

wondering.

On Sun, Nov 28, 2021, 9:40 AM QuakeGio83 @.***> wrote:

Now i can see the right battery %I'll test it to see if I found some error

or battey drainMeanwhile, thanks a lot 😁Il 28 Nov 2021 15:35, Steve

Herrell @.***> ha scritto:

Can you try with 0.7.2b1.

For older cameras startup looks like:

read device listget device resources

For newer cameras we don't do part 2, it drains the battery, and these

resources includes the battery level. Turns out Arlo added the battery

level to the device list for newer devices. So now the code reads that.

—You are receiving this because you authored the thread.Reply to this

email directly, view it on GitHub, or unsubscribe.Triage notifications on

the go with GitHub Mobile for iOS or Android.

You are receiving this because you commented.

Reply to this email directly, view it on GitHub

https://github.com/twrecked/hass-aarlo/issues/522#issuecomment-981096968,

or unsubscribe

https://github.com/notifications/unsubscribe-auth/AKQYMR4ZOAUUY63EZ3D2C7DUOI5O5ANCNFSM5H64XZTQ

.

Triage notifications on the go with GitHub Mobile for iOS

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

QuakeGio83 avatar Nov 28 '21 14:11 QuakeGio83

Yes, it affects a lot of things. Including, but not limited to:

  • battery level and type
  • power supply
  • connection state
  • wifi signal strength

Some of these will be updated over time - for example, battery level as it changes.

twrecked avatar Nov 28 '21 15:11 twrecked

do you still need access to the camera?Il 28 Nov 2021 16:27, Steve Herrell @.***> ha scritto: Yes, it affects a lot of things. Including, but not limited to: battery level and typepower supplyconnection statewifi signal strength Some of these will be updated over time - for example, battery level as it changes.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

QuakeGio83 avatar Nov 28 '21 16:11 QuakeGio83

Maybe just until the battery level drops once. There is a message from this camera I don't think I'm handling.

But after that no. And thank you for sharing.

twrecked avatar Nov 28 '21 16:11 twrecked

ok, let me know when you do not need anymorethanks :)Il 28 Nov 2021 17:25, Steve Herrell @.***> ha scritto: Maybe just until the battery level drops once. There is a message from this camera I don't think I'm handling.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

QuakeGio83 avatar Nov 28 '21 16:11 QuakeGio83

That battery isn't changing!!!

It's ok to stop my access. I just pushed an update that will update the battery from your camera during a device refresh. I think everything should be better now.

twrecked avatar Nov 30 '21 15:11 twrecked

goood :) thanks for your support

------ Messaggio originale ------ Da: "Steve Herrell" @.> A: "twrecked/hass-aarlo" @.> Cc: "QuakeGio83" @.>; "Author" @.> Inviato: 30/11/2021 16:54:14 Oggetto: Re: [twrecked/hass-aarlo] Camera Battery % not sync (Issue #522)

That battery isn't changing!!!

It's ok to stop my access. I just pushed an update that will update the battery from your camera during a device refresh. I think everything should be better now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/twrecked/hass-aarlo/issues/522#issuecomment-982769471, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARKLVQ6OEQP3XEGO2GP3BILUOTXSNANCNFSM5H64XZTQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

QuakeGio83 avatar Nov 30 '21 15:11 QuakeGio83

Any update on this issue? I facing the same problem with my Arlo doorbell. Battery say 0% in HA but in Arlo app its 99%. Im running v 0.72b8.2

yabbah avatar Mar 28 '22 12:03 yabbah

I am facing the same problem with my Arlo Pro4 + VMB4540 combo. In HA, Battery say 100% in the attributes of the camera, and is unknown as a sensor. But in Arlo app its 37%. Im running v 0.72b8.3

Camera state attributes: access_token: xxxxxxxxxxxxx model_name: VMC4041PB brand: Netgear Arlo battery_level: 100 battery_tech: None signal_strength: 3 unseen_videos: 0 recent_activity: false image_source: capture/10-03 11:29 charging: false charger_type: None wired: false wired_only: false

image

goldbingo avatar Oct 03 '22 04:10 goldbingo

@goldbingo Does your HA Arlo account have admin access to the cameras? And can you post your config.

twrecked avatar Oct 15 '22 23:10 twrecked