Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

capured today stops randomly counting #1030

Open
roerigdalgaard opened this issue Jan 16, 2025 · 8 comments
Open

capured today stops randomly counting #1030

roerigdalgaard opened this issue Jan 16, 2025 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@roerigdalgaard
Copy link

roerigdalgaard commented Jan 16, 2025

The enteties captured today and Captured Last timestamp, from my cammeras stops randomly at get updated on all of my 5 camerase. Motion detection and updating the camerapicure still works but the count stops.

Than randomy after serveral hours it works again. MyArlo website shows all current data only the integration misses this.

(i capture 400-600 events everey day so this statisic is very relevant for my to conrol the arlo usage)

HA core 2025.1.2 on HA green hardware

@twrecked twrecked self-assigned this Feb 6, 2025
@twrecked twrecked added the bug Something isn't working label Feb 6, 2025
@twrecked
Copy link
Owner

twrecked commented Feb 6, 2025

Can you post your aarlo.yaml file.

@roerigdalgaard
Copy link
Author

Can you post your aarlo.yaml file.

version: 1
aarlo:
user_agent: linux
refresh_devices_every: 2
reconnect_every: 0
#mqtt_hostname_check: False
#mqtt_host: mqtt-cluster.arloxcld.com

mqtt_host: mqtt-cluster-z1.arloxcld.com

#backend: mqtt

@roerigdalgaard
Copy link
Author

Just an update.
it worked much more stabel after upgrade to 0.8.1.12 and 0.8.1.14.1 than with 0.8.1.15 the issue come back.
It takes 2-3 hours from fresh load of the config to loos the updates to the counters. Update of the Cam picture still works. only the time stamp and the counter does not longer gets updated (as i can see)

@roerigdalgaard
Copy link
Author

Just an update. it worked much more stabel after upgrade to 0.8.1.12 and 0.8.1.14.1 than with 0.8.1.15 the issue come back. It takes 2-3 hours from fresh load of the config to loos the updates to the counters. Update of the Cam picture still works. only the time stamp and the counter does not longer gets updated (as i can see)

downgrade made no difference. I could see that the aarlo component made a reloging after 2 hours but still stall on one camera with the updates (does not wait that the other stall to) so i have upgaded to 0.8.1.16 and monitor whats happen now. think it maybe som MQTT qeues som stalls. Should i try SSE instead?

@twrecked
Copy link
Owner

Is that 400-600 per camera?

With the latest releases it's better to remove backend and any mqtt settings and let the software decide what to do.

@roerigdalgaard
Copy link
Author

captured this in the log today. The error matches ok the last timestamp of the updates.
Started debug log afterwards and force a film on the cam (haven) and can se it gets the corret last pic timestamp but entity (last haven) and (record today haven) gets not updated:

2025-02-16 15:54:30.026 ERROR (ArloBackgroundWorker) [pyaarlo] job-error=TypeError
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/pyaarlo/background.py", line 35, in _run_next
job"callback"
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pyaarlo/media.py", line 193, in update
for video in data:
^^^^
TypeError: 'NoneType' object is not iterable

2025-02-16 15:57:11.126 ERROR (ArloBackgroundWorker) [pyaarlo] job-error=AttributeError
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/pyaarlo/background.py", line 35, in _run_next
job"callback"
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pyaarlo/init.py", line 417, in _refresh_bases
base.update_modes(initial)
~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pyaarlo/base.py", line 441, in update_modes
curr_location.update_mode()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/pyaarlo/location.py", line 158, in update_mode
mode_id = data.get("properties", {}).get('mode')
^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

2025-02-16 15:57:20.596 WARNING (ArloEventStream) [pyaarlo] event loop closed by server
2025-02-16 16:17:23.723 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Recent Activity Haven:recentActivity:True
2025-02-16 16:17:23.724 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:Haven:recentActivity:True
2025-02-16 16:17:23.726 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.binary_sensor] callback:Motion Haven:motionDetected:True
2025-02-16 16:17:23.751 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.switch] snapshot-callback:Haven Snapshot:activityState:alertStreamActive
2025-02-16 16:17:23.752 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:Haven:activityState:alertStreamActive
2025-02-16 16:17:39.296 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Recent Activity Haven:recentActivity:True
2025-02-16 16:17:39.297 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:Haven:recentActivity:True
2025-02-16 16:17:39.300 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.switch] snapshot-callback:Haven Snapshot:activityState:idle
2025-02-16 16:17:39.301 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:Haven:activityState:idle
2025-02-16 16:17:39.321 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Recent Activity Haven:recentActivity:True
2025-02-16 16:17:39.322 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:Haven:recentActivity:True
2025-02-16 16:17:39.324 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.binary_sensor] callback:Motion Haven:motionDetected:False
2025-02-16 16:17:39.483 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:Haven:presignedLastImageUrl:https://arlos3-prod-z1.s3.amazonaws.com/fcdb566a1bef4854a9fdd665c557968e/NDKG3W-100-41420535/A5JD277ED0599/recordings/17
2025-02-16 16:17:39.484 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Recent Activity Haven:recentActivity:True
2025-02-16 16:17:39.488 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:Haven:recentActivity:True
2025-02-16 16:17:39.837 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:Haven:lastImageSource:capture/Sun 16. 16:17
2025-02-16 16:17:39.837 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] camera.aarlo_haven capture updated
2025-02-16 16:17:39.848 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:Haven:presignedLastImageData:b'\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00\xff\xdb\x00C\x00\x02\x01\x01\x01\x01\x01\x02\x01\

@twrecked
Copy link
Owner

I'll tighten that up.

@twrecked
Copy link
Owner

It's looking like there is some odd network issue happening. When we get the other traces I can probably see what it is.

Either way, the code should handle it better,

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants