twrecked / hass-aarlo

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

Camera Battery % not sync #522

Open QuakeGio83 opened 3 years ago

QuakeGio83 commented 3 years ago

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.

twrecked commented 3 years ago

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.

jeprice77 commented 3 years ago

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.

QuakeGio83 commented 3 years ago

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.

twrecked commented 3 years ago

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.

QuakeGio83 commented 3 years ago

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.

twrecked commented 3 years ago

Thanks! It's XXXX

QuakeGio83 commented 3 years ago

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.

twrecked commented 3 years ago

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.

QuakeGio83 commented 3 years ago

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.

twrecked commented 3 years ago

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:

QuakeGio83 commented 3 years ago

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 commented 3 years ago

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.

twrecked commented 3 years ago

Do I have admin access to your camera?

QuakeGio83 commented 3 years ago

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 commented 3 years ago

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.

twrecked commented 3 years ago

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.

QuakeGio83 commented 3 years ago

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.

twrecked commented 3 years ago

Can you try with 0.7.2b1.

For older cameras startup looks like:

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.

QuakeGio83 commented 3 years ago

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.

jeprice77 commented 3 years ago

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.

QuakeGio83 commented 3 years ago

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.

twrecked commented 3 years ago

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

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

QuakeGio83 commented 3 years ago

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.

twrecked commented 3 years ago

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.

QuakeGio83 commented 3 years ago

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.

twrecked commented 3 years ago

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.

QuakeGio83 commented 3 years ago

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.

yabbah commented 2 years ago

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

goldbingo commented 2 years ago

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

twrecked commented 2 years ago

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

goldbingo commented 2 years ago

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

Yes. My HA Arlo account has admin access.

Here's my config: aarlo: username: !secret arlo_username password: !secret arlo_password refresh_devices_every: 2 stream_timeout: 120 reconnect_every: 90 tfa_source: imap tfa_type: email tfa_host: imap.google.com tfa_username: !secret arlo_tfa_username tfa_password: !secret arlo_tfa_password

camera:

goldbingo commented 2 years ago

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

Yes. My HA Arlo account has admin access.

It works now in v0.7.2b11.