twrecked / hass-aarlo

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

Cameras stopped streaming #736

Open rbcaixeta opened 1 year ago

rbcaixeta commented 1 year ago

Was working before, now when clicking camera on aarlo-glance card nothing happens.

UI:

type: custom:aarlo-glance
entity: camera.aarlo_garage_camera
image_view: arlo-stream
image_click: stream
image_top: name,status
image_bottom:
  - library,stream,snapshot
  - motion,sound,battery

Config:

stream:

aarlo:
  save_session: False
  host: https://my.arlo.com
  username: !secret arlo_username
  password: !secret arlo_password
  refresh_devices_every: 2
  tfa_source: imap
  tfa_type: email
  tfa_host: imap.gmail.com:993
  tfa_username: !secret gmail_appusr
  tfa_password: !secret gmail_apppwd

camera:
  - platform: aarlo

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

sensor:
  - platform: aarlo
    monitored_conditions:
    - total_cameras
    - battery_level

Logs:

Logger: pyaarlo
Source: custom_components/aarlo/pyaarlo/__init__.py:720
Integration: Arlo Camera Support ([documentation](https://github.com/twrecked/hass-aarlo/blob/master/README.md), [issues](https://github.com/twrecked/hass-aarlo/issues))
First occurred: April 10, 2023 at 4:45:09 PM (57 occurrences)
Last logged: 8:44:19 AM

error in response={'data': {'error': '2016', 'message': "We are sorry, but you don't have permission to perform this action.", 'reason': 'No Such Permissions'}, 'success': False}
error in response={'success': False, 'data': {'error': '2016', 'message': "We are sorry, but you don't have permission to perform this action.", 'reason': 'No Such Permissions'}}
error in response={'success': False, 'data': {'error': '2217', 'message': 'The device does not exist.', 'reason': 'Invalid uniqueId recieved.'}}
request-error=RuntimeError

or

Logger: homeassistant.components.stream.stream.camera.aarlo_back_door_floodlight
Source: components/stream/__init__.py:434
Integration: Stream ([documentation](https://www.home-assistant.io/integrations/stream), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+stream%22))
First occurred: April 10, 2023 at 4:45:50 PM (105 occurrences)
Last logged: 8:44:38 AM

Error from stream worker: Error opening stream (INVALIDDATA, Invalid data found when processing input) rtsps://arlostreaming3541-z2-prod.wowza.arlo.com:443/vzmodulelive/A7W52475A2914_1681170297094?egressToken=redacted&userAgent=iOS&cameraId=A7W52475A2914_1681170297094&txnId=FE!d1866d77-91db-4a90-a707-5e8e172fb1f9
Error from stream worker: Error opening stream (EXIT, Immediate exit requested) rtsps://arlostreaming3541-z2-prod.wowza.arlo.com:443/vzmodulelive/A7W52475A2914_1681170297094?egressToken=redacted&userAgent=iOS&cameraId=A7W52475A2914_1681170297094&txnId=FE!d1866d77-91db-4a90-a707-5e8e172fb1f9
nameless66 commented 1 year ago

Same here, but streaming works for a couple of seconds and log shows: 2023-06-11 14:48:13.430 WARNING (ArloBackgroundWorker) [py.warnings] /config/custom_components/aarlo/camera.py:477: RuntimeWarning: coroutine 'Stream.stop' was never awaited self.stream.stop()

...and then it fills up logs with:

2023-06-11 14:20:47.865 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.aarlo_cam_dotsch_eingang] Error from stream worker: Error opening stream (INVALIDDATA, Invalid data found when processing input) rtsps://arlostreaming403-z1-prod.wowza.arlo.com:443/vzmodulelive/5JX1897KB060A_1686485941638?egressToken=...

(Deleted token etc.. in log!)

My Auth Config:

# AARLO-Authenticate
# https://github.com/twrecked/hass-aarlo
aarlo:
  username: !secret arlo-username
  password: !secret arlo-password
  tfa_source: imap
  tfa_type: email
  tfa_host: !secret arlo-tfa_host
  tfa_username: !secret arlo-tfa_username
  tfa_password: !secret arlo-tfa_password
  # Cert error - no more mqtt, see https://github.com/twrecked/hass-aarlo/releases
  mqtt_hostname_check: False
  # Missing event, see https://github.com/twrecked/hass-aarlo#missing-events
  backend: sse
  # Session Management
  # see https://github.com/twrecked/hass-aarlo/blob/version-0.7.x/README.md#main-configuration
  refresh_devices_every: 2
  stream_timeout: 120
  reconnect_every: 90
#  verbose_debug: True
#  packet_dump: True

Glance Card:

type: custom:aarlo-glance
entities:
  - entity: camera.aarlo_cam_dotsch_eingang
    name: Dotsch Eingang
  - entity: camera.aarlo_cam_dotsch_eingang_autos
    name: Dotsch Eingang Autos
  - entity: camera.aarlo_cam_dotsch_buro
    name: Dotsch Büro
  - entity: camera.aarlo_cam_dotsch_autos
    name: Dotsch Autos
  - entity: camera.aarlo_cam_dotsch_balkon
    name: Dotsch Balkon
global: active,blended,tiny
image_view: ha-stream
image_top: previous,next,name,date,status,signal
image_bottom: motion,sound,library,stream,snapshot,battery
image_click: ha-stream
library_sizes: 3,4,2

Tested ha-stream and arlo-stream, both same issue.