twrecked / hass-aarlo

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

Can't get snapshot working, always an old capture, Arlo Wireless Doorbell #714

Open pinkfloydFR opened 1 year ago

pinkfloydFR commented 1 year ago

Hi,

Readed a lot of topic about old capture returned, but no solution worked for me.

Using a Wireless Arlo DoorBell, live view is working fine.

And this morning ( as i tried again to solve the problem ) i noticed this in the log 👍 023-02-11 09:27:46.872 WARNING (ArloBackgroundWorker) [pyaarlo] error in response={'success': False, 'data': {'error': '2027', 'message': 'The request for recordings is invalid.', 'reason': 'Device[{}] is not allowed for taking snapshot as it requires paid subscription for cloud storage', 'details': 'A5U10CW1006EB'}}

Here is my configuration, using Aarlo 0.7.4b6 :

image

I am tring to get snapshot under nodred with snapshot and snapshot to file action, but none worked. ( file are well writed, but always the same old picture from the 30/01/2023 )

Any help would be appreciated, thanks !

twrecked commented 1 year ago

I just bought a wireless door bell last week. I'll take a look at what is supposed to happen and what is happening!

twrecked commented 1 year ago

Try without the stream_snapshot settings - remove lines 9 and 10 from the config you included. The doorbell should work with a non-stream snapshot.

pinkfloydFR commented 1 year ago

Thanks for the tip, done, will do some test and say you the result soon !

twrecked commented 1 year ago

And I can't help too much with nodered, I don't use it, but you should see the image on any lovelace cards being updated.

We also fire an aarlo_snapshot_updated event when a snapshot is finished, that might help.

pinkfloydFR commented 1 year ago

EDIT : For information : seem to had worked for my first test ( just after restart HA after changed line 9 & 10 ) but not some time after

Hum, bad news, not working here, snapshot to file is an old one ( the snapshot is doing correctly, bug with old image )

the one sended to my phone by home assistant notify function is the same {"title":"Camera","message":"Arlo","data":{"image":"/api/camera_proxy/camera.aarlo_arlo_entree","ttl":0,"priority":"high"}}

will try without nod red... what is the event type of aarlo_snapshot_updated btw ?

Thanks for helping...

twrecked commented 1 year ago

Can you send me the service call you are making? It all appears to working here for me. I'm trying with this:

snap-to-file

pinkfloydFR commented 1 year ago

Hum this one will be difficult to debug...

Before doing your test, i tested again my nod red call, and this time the capture was good ( changed nothing, restarted nothing, just doing nothing for 30 minute for lunching )

The call service, like your exemple, worked well too.

It's like there is an image buffer somewhere wich release/empty with time ( no sure if it's clear )

For testing, i disabled the HA mobile notication, and just snapshot to file and send it to my telegram bot, and don't know why, no problem so far, will continue testing and reply to you, for closing the issue or not.

twrecked commented 1 year ago

There could be caching going on. Can you add something to the image url when you process it. Because you can add a time stamp that is ignored but will get the latest image:

/api/camera_proxy/camera.aarlo_arlo_entree --> /api/camera_proxy/camera.aarlo_arlo_entree&t=123456

Replace the 123456 with the Unix like timestamp. I do this with the lovelace cards.

edit: you can see it here

pinkfloydFR commented 1 year ago

Hi, i got some news after doing a lot of test...

I didn't successfully doing your test using the camera_proxy ( always on old imge )

BUT, this is interesting, when the arlo ring is pushed the arlo ring state is ON -> at this moment i receive an old image

when the arlmo ring is release, his state is off, and at this moment i receive the updated/fresh image...

an exemple, i just do by ringing at my door : ( first capture at 5:19:55 PM when state on, second at 05:20:04 PM when release and state OFF ) image

image

**So the question is why the snapshot feature got an old image when someone push the ring, and a refreshed one only when finishing finish..

!!! -> I found a way to get around the problem : when adding 700 millisecond after the ring is trigerred, the snapshot is good ! .**

Btw i am pretty sure that removing "stream_snapshot" in the config had corrected my always old image problem, thk for the good job for this one !

racedo commented 1 year ago

I have the same problem with the wired doorbell. I can update the snapshot when clicking on "take a snapshot" from the dashboard every time, but if I don't do it it never updates.

In my case I never had stream_snapshot in the configuration, this is all my configuration related to arlo:

aarlo:
  username: !secret arlo_username
  password: !secret arlo_password
  tfa_source: push
  tfa_type: PUSH

camera:
  - platform: aarlo

binary_sensor:
  - platform: aarlo
    monitored_conditions:
      - motion
      - sound
      - ding
      - connectivity

homekit:
  - name: arlo
    filter:
      include_entities:
        - camera.aarlo_doorbell
    entity_config:
      camera.aarlo_doorbell:
        linked_motion_sensor: binary_sensor.aarlo_motion_doorbell
    mode: accessory

BTW I can see the live stream from the dashboard but not from HomeKit (I logged another issue with details for this).

github-actions[bot] commented 5 months ago

This issue is stale because it has been open for 365 days with no activity. This issue will be automatically closed within 28 days if there is no further activity.