twrecked / hass-aarlo

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

Arlo (wired) doorbell no motion and ding events #517

Open Frankniesten opened 3 years ago

Frankniesten commented 3 years ago

Hello,

Thanks for your work to make an nice HA component!

I configured my Arlo wired doorbell and everything is working fine (Authentication, MFA etc.) Except the sensors in particulary the motion sensor and the Ding.

Some more info:

My configuration:

Version: 0.7.1.7

Configuration:

aarlo: username: password: user_agent: linux verbose_debug: True refresh_devices_every: 2 stream_timeout: 120 reconnect_every: 90 tfa_source: imap tfa_type: email tfa_host: tfa_username: tfa_password: ***

camera:

binary_sensor:

switch:

sensor:

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

Log form packets.dump:

2021-11-03 14:33:44.393978: ev_loop start 2021-11-03 14:33:44.397975: {'status': 'connected'} 2021-11-03 14:35:27.672433: {'status': 'connected'} 2021-11-03 14:37:10.941090: {'status': 'connected'} 2021-11-03 14:38:54.055087: {'status': 'connected'} 2021-11-03 14:40:37.160144: {'status': 'connected'} 2021-11-03 14:42:20.293439: {'status': 'connected'} 2021-11-03 14:42:45.363543: { 'A54208KKA02FA': { 'activeModes': ['mode1'], 'activeSchedules': [], 'timestamp': 1635946965038}, 'resource': 'activeAutomations'} 2021-11-03 14:42:58.951170: { 'recoveredDocument': 'false', 'resource': 'automationRevisionUpdate', 'revision': '16', 'uniqueId': 'HQG58-257-57546258_A54208KKA02FA'} 2021-11-03 14:44:42.273548: {'status': 'connected'} 2021-11-03 14:45:08.099992: { 'recoveredDocument': 'false', 'resource': 'automationRevisionUpdate', 'revision': '17', 'uniqueId': 'HQG58-257-57546258_A54208KKA02FA'} 2021-11-03 14:46:51.482450: {'status': 'connected'} 2021-11-03 14:48:34.525224: {'status': 'connected'} 2021-11-03 14:50:17.678942: {'status': 'connected'} 2021-11-03 14:52:00.810422: {'status': 'connected'} 2021-11-03 14:53:44.227759: {'status': 'connected'} 2021-11-03 14:55:27.214669: {'status': 'connected'} 2021-11-03 14:57:10.376343: {'status': 'connected'} 2021-11-03 14:58:53.515179: {'status': 'connected'}

Any suggestions?

Frankniesten commented 3 years ago

When i restart the HASS. The event stream is sometimes working for a couple of minutes and are working in HASS. After a couple of minutes de event stream stops working.

twrecked commented 3 years ago

Sorry for the delay getting back. So, that recoveredDocument piece is new, I'm not getting anything like that on my system which means I maybe missing a piece. It also means means we might need to use Chrome to work out what has changed.

For starters, can you get some debug. Turn on these settings and run until the problem happens:

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 these comments.

Frankniesten commented 3 years ago

Thank you for your feedback. In the attachment an encrypted file of my log. Aarlo-log.txt .

twrecked commented 3 years ago

I think I've found the problem. I was looking at my.arlo.com yesterday and it looks like Arlo has changed their event mechanism. They've moved to an MQTT system. I've got to see what changes are needed at my end.

Frankniesten commented 3 years ago

Thanks for your comment. If i can help with testing let me now.

Ralcidonis commented 2 years ago

Same issue here. My wired video doorbell motion is not being detected, nor can I stream to a Google display.

twrecked commented 2 years ago

@Ralcidonis can you try changing the backend the system uses:

https://github.com/twrecked/hass-aarlo#missing-events

Ralcidonis commented 2 years ago

Thanks a bunch. That worked. Once I added the line to use the SSE, I started getting motion alerts.