twrecked / hass-aarlo

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

weird timeout and frontend lock up issues #194

Open jurgenweber opened 4 years ago

jurgenweber commented 4 years ago

Hi, firstly I only found this yesterday. I had been using the old py-arlo integration and it stopped due to the auth changing and I evidently found my way here. This project looks amazing, I loaded it up last night and man, wow.. So cool! Great job!

I have an arlo baby, with my boys sleeping scene I used to turn the motion detection on and off.

    - service_template: >-
        {% if trigger.to_state.state == 'on' %}
          camera.enable_motion_detection
        {% else %}
          camera.disable_motion_detection
        {% endif %}
      entity_id:
        - camera.babymonitor

Is this available in this integration? If not, feature request?! :)

Thanks

twrecked commented 4 years ago

It should be there. I forked this project off the original Arlo device and kept all the features.

If not, let me know.

jurgenweber commented 4 years ago

ah, ok. I just didn't see it in dev tools --> services.

oh, there it is.

user issue.

Thanks mate, again thank you for this fantastic work!

twrecked commented 4 years ago

One thing, Aarlo works slightly differently than Arlo behind the scenes - it keeps an event stream open so you get motion (etc) notifications - so you might need to add some keeps-alives to your config. See here:

https://github.com/twrecked/hass-aarlo#configuration-main

jurgenweber commented 4 years ago

Yeah, ok.

is that related to this error as well?

2020-03-24 15:11:29 WARNING (MainThread) [pyaarlo] error in response={'data': {'error': '5011', 'message': 'The device failed to connect. Please try again.', 'reason': ' Ingress timedout for cameraId:50C176SP443A1_1585023058446'}, 'success': False}

I have a testing dashboard with the stream in it and this seems to have failed. My internet is super stable.

twrecked commented 4 years ago

That's a new error to me!

Dashboard? How is that configured? And what kind of camera is it? We have issues with ArloQ and streaming, I need to generate a PR for it.

Also, have you looked at the lovelace card. It's available on HACS.

jurgenweber commented 4 years ago

yeah, I saw that HACS thing. I decided to dodge that for the moment and just installed it manually. This error is from that glance card. I only have 1 Baby Arlo.

I am using the new dashboard feature and have a hidden test dashboard where I set it up.

So configuration.yaml config:

# https://www.home-assistant.io/lovelace/yaml-mode/
lovelace:
  mode: yaml
  resources:
    - url: /local/custom_ui/alarm_control_panel-card.js
      type: js
    - url: /local/custom_ui/auto-entities.js
      type: module
    - url: /local/custom_ui/beer-card.js
      type: js
    - url: /local/custom_ui/bignumber-card.js
      type: js
    - url: /local/custom_ui/birthday-card.js?v=1.001
      type: js
    - url: /local/custom_ui/button-card.js?v=0.0.6
      type: module
    - url: /local/custom_ui/dark-sky-weather-card.js?v=0.10.2
      type: module
    - url: /local/custom_ui/entity-attributes-card.js
      type: js
    - url: /local/custom_ui/gauge-card.js
      type: js
    - url: /local/custom_ui/group-card.js
      type: js
    - url: /local/custom_ui/home-setter.js
      type: js
    - url: /local/custom_ui/mini-media-player-bundle.js?v=1.6.0
      type: module
    - url: /local/custom_ui/mini-graph-card-bundle.js?v=0.9.3
      type: module
    - url: /local/custom_ui/plan-coordinates.js
      type: js
    - url: /local/custom_ui/thermostat-card.js
      type: module
    - url: /local/custom_ui/aarlo-glance.js
      type: module
  dashboards:
    lovelace-admin: # Needs to contain a hyphen (-)
      mode: yaml
      filename: ui-admin.yaml
      title: Admin
      icon: mdi:tools
      show_in_sidebar: true
      require_admin: true
    lovelace-test:
      mode: yaml
      title: Tests
      show_in_sidebar: false
      require_admin: true
      filename: ui-test.yaml

and then the ui-test.yaml config:

title: Tests
views:
  - title: Tests
    path: tests
    cards:
      - type: 'custom:aarlo-glance'
        entity: camera.aarlo_babymonitor
        name: Nursery
        show:
          - motion
          - sound
          - snapshot
          - battery_level
          - signal_strength
          - captured_today
          - image_date
        top_title: false
        top_status: false
        top_date: false
        image_click: play
      - type: custom:auto-entities
        card:
          type: entities
          title: binary sensor
          show_header_toggle: false
        filter:
          include:
            - entity_id: "binary_sensor.aarlo*"
      - type: custom:auto-entities
        card:
          type: entities
          title: camera
          show_header_toggle: false
        filter:
          include:
            - entity_id: "camera.aarlo*"
      - type: custom:auto-entities
        card:
          type: entities
          title: light
          show_header_toggle: false
        filter:
          include:
            - entity_id: "light.aarlo*"
      - type: media-control
        entity: media_player.babymonitor
      - type: custom:auto-entities
        card:
          type: entities
          title: sensor
          show_header_toggle: false
        filter:
          include:
            - entity_id: "sensor.aarlo*"

The stream seems to have stopped sometime last night. If I try and reload the page I get that error, a lot. It seems to lock up the whole of HASS and then all of a sudden it'll spit out a bunch of logs. Here is an example:

2020-03-24 15:09:54 WARNING (MainThread) [pyaarlo] error in response={'data': {'error': '5011', 'message': 'The device failed to connect. Please try again.', 'reason': ' Ingress timedout for cameraId:50C176SP443A1_1585022962747'}, 'success': False}
2020-03-24 15:09:54 ERROR (MainThread) [homeassistant.components.camera] Error requesting stream: camera.aarlo_babymonitor does not support play stream service
2020-03-24 15:09:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.google_home is taking over 10 seconds
2020-03-24 15:09:54 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:09:54 INFO (MainThread) [homeassistant.components.automation] Count warnings: Running script
2020-03-24 15:09:54 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:09:54 INFO (MainThread) [homeassistant.components.automation] Executing Count errors
2020-03-24 15:09:54 INFO (MainThread) [homeassistant.components.automation] Count errors: Running script
2020-03-24 15:09:54 INFO (MainThread) [homeassistant.components.automation] Count errors: Executing step call service
2020-03-24 15:10:26 WARNING (MainThread) [pyaarlo] error in response={'data': {'error': '5011', 'message': 'The device failed to connect. Please try again.', 'reason': ' Ingress timedout for cameraId:50C176SP443A1_1585022994792'}, 'success': False}
2020-03-24 15:10:26 ERROR (MainThread) [homeassistant.components.camera] Error requesting stream: camera.aarlo_babymonitor does not support play stream service
2020-03-24 15:10:58 WARNING (MainThread) [pyaarlo] error in response={'data': {'error': '5011', 'message': 'The device failed to connect. Please try again.', 'reason': ' Ingress timedout for cameraId:50C176SP443A1_1585023026797'}, 'success': False}
2020-03-24 15:10:58 ERROR (MainThread) [homeassistant.components.camera] Error requesting stream: camera.aarlo_babymonitor does not support play stream service
2020-03-24 15:11:29 WARNING (MainThread) [pyaarlo] error in response={'data': {'error': '5011', 'message': 'The device failed to connect. Please try again.', 'reason': ' Ingress timedout for cameraId:50C176SP443A1_1585023058446'}, 'success': False}
2020-03-24 15:11:29 ERROR (MainThread) [homeassistant.components.camera] Error requesting stream: camera.aarlo_babymonitor does not support play stream service
2020-03-24 15:11:30 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:30 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:30 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.google_nest_mini_bathroom is taking over 10 seconds
2020-03-24 15:11:31 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:31 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:31 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:31 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:31 INFO (MainThread) [homeassistant.components.automation] Count warnings: Running script
2020-03-24 15:11:31 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:31 INFO (MainThread) [homeassistant.components.automation] Executing Count errors
2020-03-24 15:11:31 INFO (MainThread) [homeassistant.components.automation] Count errors: Running script
2020-03-24 15:11:31 INFO (MainThread) [homeassistant.components.automation] Count errors: Executing step call service
2020-03-24 15:11:31 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:31 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:31 INFO (MainThread) [homeassistant.components.automation] Executing Count errors
2020-03-24 15:11:31 INFO (MainThread) [homeassistant.components.automation] Count errors: Executing step call service
2020-03-24 15:11:31 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:31 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:31 INFO (MainThread) [homeassistant.components.automation] Executing Count errors
2020-03-24 15:11:31 INFO (MainThread) [homeassistant.components.automation] Count errors: Executing step call service
2020-03-24 15:11:31 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:31 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:31 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:31 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:31 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:31 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:31 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:31 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:31 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:31 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:31 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:32 WARNING (MainThread) [homeassistant.components.sensor] Updating command_line sensor took longer than the scheduled update interval 0:01:00
2020-03-24 15:11:32 WARNING (MainThread) [homeassistant.components.sensor] Updating transport_nsw sensor took longer than the scheduled update interval 0:01:00
2020-03-24 15:11:32 WARNING (MainThread) [homeassistant.components.climate] Updating daikin climate took longer than the scheduled update interval 0:01:00
2020-03-24 15:11:32 WARNING (MainThread) [homeassistant.components.weather] Updating bom weather took longer than the scheduled update interval 0:00:30
2020-03-24 15:11:32 WARNING (MainThread) [homeassistant.components.sensor] Updating season sensor took longer than the scheduled update interval 0:00:30
2020-03-24 15:11:32 WARNING (MainThread) [homeassistant.components.sensor] Updating systemmonitor sensor took longer than the scheduled update interval 0:00:30
2020-03-24 15:11:32 WARNING (MainThread) [homeassistant.components.media_player] Updating soundtouch media_player took longer than the scheduled update interval 0:00:10
2020-03-24 15:11:32 WARNING (MainThread) [homeassistant.components.sensor] Updating local_ip sensor took longer than the scheduled update interval 0:00:30
2020-03-24 15:11:32 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:32 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:32 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:32 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:33 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:33 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:33 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:33 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook 2da7a59e0b09ce002526c318177c8f9daaf05ffc9455c4aa7b6503a8d0d204ca
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 77, in async_handle_webhook
    response = await webhook["handler"](hass, webhook_id, request)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 186, in handle_webhook
    return await WEBHOOK_COMMANDS[webhook_type](hass, config_entry, webhook_payload)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 131, in validate_and_run
    return await func(hass, config_entry, data)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 439, in webhook_update_sensor_states
    await hass.data[DOMAIN][DATA_STORE].async_save(safe)
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 136, in async_save
    await self._async_handle_write_data()
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 194, in _async_handle_write_data
    async with self._write_lock:
  File "/usr/local/lib/python3.7/asyncio/locks.py", line 92, in __aenter__
    await self.acquire()
  File "/usr/local/lib/python3.7/asyncio/locks.py", line 192, in acquire
    await fut
concurrent.futures._base.CancelledError
2020-03-24 15:11:33 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook 2da7a59e0b09ce002526c318177c8f9daaf05ffc9455c4aa7b6503a8d0d204ca
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 77, in async_handle_webhook
    response = await webhook["handler"](hass, webhook_id, request)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 186, in handle_webhook
    return await WEBHOOK_COMMANDS[webhook_type](hass, config_entry, webhook_payload)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 131, in validate_and_run
    return await func(hass, config_entry, data)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 439, in webhook_update_sensor_states
    await hass.data[DOMAIN][DATA_STORE].async_save(safe)
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 136, in async_save
    await self._async_handle_write_data()
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 194, in _async_handle_write_data
    async with self._write_lock:
  File "/usr/local/lib/python3.7/asyncio/locks.py", line 92, in __aenter__
    await self.acquire()
  File "/usr/local/lib/python3.7/asyncio/locks.py", line 192, in acquire
    await fut
concurrent.futures._base.CancelledError
2020-03-24 15:11:33 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:33 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:33 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:33 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:33 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:33 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:33 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:33 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:33 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:33 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count errors
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count errors: Executing step call service
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count errors
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count errors: Executing step call service
2020-03-24 15:11:34 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook eb78195c6ba97a75fb7359fa5bcb6ac2814753de633e31186ca502da0c393455
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 77, in async_handle_webhook
    response = await webhook["handler"](hass, webhook_id, request)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 186, in handle_webhook
    return await WEBHOOK_COMMANDS[webhook_type](hass, config_entry, webhook_payload)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 131, in validate_and_run
    return await func(hass, config_entry, data)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 439, in webhook_update_sensor_states
    await hass.data[DOMAIN][DATA_STORE].async_save(safe)
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 136, in async_save
    await self._async_handle_write_data()
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 194, in _async_handle_write_data
    async with self._write_lock:
  File "/usr/local/lib/python3.7/asyncio/locks.py", line 92, in __aenter__
    await self.acquire()
  File "/usr/local/lib/python3.7/asyncio/locks.py", line 192, in acquire
    await fut
concurrent.futures._base.CancelledError
2020-03-24 15:11:34 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:34 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:35 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:35 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:35 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:35 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:35 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:35 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:35 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:35 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:35 WARNING (MainThread) [aiohttp.websocket] websocket connection is closing.
2020-03-24 15:11:37 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:37 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-24 15:11:37 INFO (MainThread) [homeassistant.components.automation] Executing Count errors
2020-03-24 15:11:37 INFO (MainThread) [homeassistant.components.automation] Count errors: Running script
2020-03-24 15:11:37 INFO (MainThread) [homeassistant.components.automation] Count errors: Executing step call service
2020-03-24 15:11:37 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-24 15:11:37 INFO (MainThread) [homeassistant.components.automation] Count warnings: Running script
2020-03-24 15:11:37 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-24 15:11:37 WARNING (MainThread) [asyncio] socket.send() raised exception.

I run HASS on an Udoo x86 Ultra II (in docker) on Debian Buster.

twrecked commented 4 years ago

I've never used the dashboard but I'll take a look. Also #148 does mention a 30 minute timeout, does it look similar?

Can you get some more debug on, it would be nice to see exactly what happened before the error in response packet. This will turn more info on:

logger:
  default: info
  logs:
    custom_components.aarlo.camera: debug
    pyaarlo: debug
jurgenweber commented 4 years ago

yeah, dashboards was released to 107......

https://www.home-assistant.io/blog/2020/03/18/release-107/#hello-multiple-lovelace-dashboards

I will give it a go today and report back.

jurgenweber commented 4 years ago

ok, so... restarted and I went back to my dashboard, in the glance card there is still an image from two nights ago. I tried clickign on it to get teh stream and:

2020-03-25 10:27:42 DEBUG (ArloBackgroundWorker) [pyaarlo] day testing with 2020-03-25!
2020-03-25 10:27:44 DEBUG (ArloEventStream) [pyaarlo] sending cameras/50C176SP443A1 to 50C176SP443A1
2020-03-25 10:27:44 DEBUG (ArloEventStream) [pyaarlo] BabyMonitor BASE got cameras/50C176SP443A1
2020-03-25 10:27:44 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/activityState=userStreamActive
2020-03-25 10:27:44 DEBUG (ArloEventStream) [pyaarlo] BabyMonitor CAMERA got one cameras/50C176SP443A1
2020-03-25 10:27:44 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/activityState=userStreamActive
2020-03-25 10:27:44 DEBUG (ArloEventStream) [custom_components.aarlo.camera] callback:BabyMonitor:activityState:userStreamActive
2020-03-25 10:28:15 WARNING (MainThread) [pyaarlo] error in response={'data': {'error': '5011', 'message': 'The device failed to connect. Please try again.', 'reason': ' Ingress timedout for cameraId:50C176SP443A1_1585092463958'}, 'success': False}
2020-03-25 10:28:15 ERROR (MainThread) [homeassistant.components.camera] Error requesting stream: camera.aarlo_babymonitor does not support play stream service
2020-03-25 10:28:16 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:28:16 INFO (MainThread) [homeassistant.components.automation] Count warnings: Running script
2020-03-25 10:28:16 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:28:16 INFO (MainThread) [homeassistant.components.automation] Executing Count errors
2020-03-25 10:28:16 INFO (MainThread) [homeassistant.components.automation] Count errors: Running script
2020-03-25 10:28:16 INFO (MainThread) [homeassistant.components.automation] Count errors: Executing step call service
2020-03-25 10:28:16 DEBUG (ArloEventStream) [pyaarlo] sending cameras/50C176SP443A1 to 50C176SP443A1
2020-03-25 10:28:16 DEBUG (ArloEventStream) [pyaarlo] BabyMonitor BASE got cameras/50C176SP443A1
2020-03-25 10:28:16 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/activityState=userStreamActive
2020-03-25 10:28:16 DEBUG (ArloEventStream) [pyaarlo] BabyMonitor CAMERA got one cameras/50C176SP443A1
2020-03-25 10:28:16 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/activityState=userStreamActive
2020-03-25 10:28:16 DEBUG (ArloEventStream) [custom_components.aarlo.camera] callback:BabyMonitor:activityState:userStreamActive
2020-03-25 10:28:42 DEBUG (ArloBackgroundWorker) [pyaarlo] fast refresh
2020-03-25 10:28:42 DEBUG (ArloBackgroundWorker) [pyaarlo] day testing with 2020-03-25!
2020-03-25 10:28:47 WARNING (MainThread) [pyaarlo] error in response={'data': {'error': '5011', 'message': 'The device failed to connect. Please try again.', 'reason': ' Ingress timedout for cameraId:50C176SP443A1_1585092496051'}, 'success': False}
2020-03-25 10:28:47 ERROR (MainThread) [homeassistant.components.camera] Error requesting stream: camera.aarlo_babymonitor does not support play stream service
2020-03-25 10:28:50 DEBUG (ArloEventStream) [pyaarlo] sending cameras/50C176SP443A1 to 50C176SP443A1
2020-03-25 10:28:50 DEBUG (ArloEventStream) [pyaarlo] BabyMonitor BASE got cameras/50C176SP443A1
2020-03-25 10:28:50 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/activityState=userStreamActive
2020-03-25 10:28:50 DEBUG (ArloEventStream) [pyaarlo] BabyMonitor CAMERA got one cameras/50C176SP443A1
2020-03-25 10:28:50 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/activityState=userStreamActive
2020-03-25 10:28:50 DEBUG (ArloEventStream) [custom_components.aarlo.camera] callback:BabyMonitor:activityState:userStreamActive
2020-03-25 10:29:19 WARNING (MainThread) [pyaarlo] error in response={'data': {'error': '5011', 'message': 'The device failed to connect. Please try again.', 'reason': ' Ingress timedout for cameraId:50C176SP443A1_1585092528087'}, 'success': False}
2020-03-25 10:29:19 ERROR (MainThread) [homeassistant.components.camera] Error requesting stream: camera.aarlo_babymonitor does not support play stream service
2020-03-25 10:29:19 ERROR (MainThread) [frontend.js.latest.202003181] http://192.168.1.95:8123/frontend_latest/chunk.22033229e56a1f5e0bfa.js:2:20626 Uncaught TypeError: Cannot read property '_leaflet_pos' of undefined
2020-03-25 10:29:19 ERROR (MainThread) [frontend.js.latest.202003181] http://192.168.1.95:8123/frontend_latest/chunk.22033229e56a1f5e0bfa.js:2:20626 Uncaught TypeError: Cannot read property '_leaflet_pos' of undefined
2020-03-25 10:29:19 ERROR (MainThread) [frontend.js.latest.202003181] http://192.168.1.95:8123/frontend_latest/chunk.22033229e56a1f5e0bfa.js:2:20626 Uncaught TypeError: Cannot read property '_leaflet_pos' of undefined
2020-03-25 10:29:19 ERROR (MainThread) [frontend.js.latest.202003181] http://192.168.1.95:8123/frontend_latest/chunk.22033229e56a1f5e0bfa.js:2:20626 Uncaught TypeError: Cannot read property '_leaflet_pos' of undefined
2020-03-25 10:29:20 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:20 INFO (MainThread) [homeassistant.components.automation] Count warnings: Running script
2020-03-25 10:29:20 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:20 INFO (MainThread) [homeassistant.components.automation] Executing Count errors
2020-03-25 10:29:20 INFO (MainThread) [homeassistant.components.automation] Count errors: Running script
2020-03-25 10:29:20 INFO (MainThread) [homeassistant.components.automation] Count errors: Executing step call service
2020-03-25 10:29:20 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:20 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:20 INFO (MainThread) [homeassistant.components.automation] Executing Count errors
2020-03-25 10:29:20 INFO (MainThread) [homeassistant.components.automation] Count errors: Executing step call service
2020-03-25 10:29:21 WARNING (MainThread) [homeassistant.components.weather] Updating bom weather took longer than the scheduled update interval 0:00:30
2020-03-25 10:29:21 WARNING (MainThread) [homeassistant.components.sensor] Updating season sensor took longer than the scheduled update interval 0:00:30
2020-03-25 10:29:21 WARNING (MainThread) [homeassistant.components.sensor] Updating systemmonitor sensor took longer than the scheduled update interval 0:00:30
2020-03-25 10:29:21 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2020-03-25 10:29:21 WARNING (MainThread) [homeassistant.components.media_player] Updating soundtouch media_player took longer than the scheduled update interval 0:00:10
2020-03-25 10:29:21 WARNING (MainThread) [homeassistant.components.sensor] Updating local_ip sensor took longer than the scheduled update interval 0:00:30
2020-03-25 10:29:22 INFO (MainThread) [homeassistant.components.automation] Executing Count errors
2020-03-25 10:29:22 INFO (MainThread) [homeassistant.components.automation] Count errors: Executing step call service
2020-03-25 10:29:22 INFO (MainThread) [homeassistant.components.automation] Executing Count errors
2020-03-25 10:29:22 INFO (MainThread) [homeassistant.components.automation] Count errors: Executing step call service
2020-03-25 10:29:22 INFO (MainThread) [homeassistant.components.automation] Executing Count errors
2020-03-25 10:29:22 INFO (MainThread) [homeassistant.components.automation] Count errors: Executing step call service
2020-03-25 10:29:22 INFO (MainThread) [homeassistant.components.automation] Executing Count errors
2020-03-25 10:29:22 INFO (MainThread) [homeassistant.components.automation] Count errors: Executing step call service
2020-03-25 10:29:22 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140034791792272] Disconnected: Received non-Text message.
2020-03-25 10:29:23 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:23 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:23 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:23 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:23 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:23 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:23 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:23 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:23 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:23 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:23 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:23 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:24 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:24 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:27 WARNING (MainThread) [pydaikin.appliance] ServerDisconnectedError 3
2020-03-25 10:29:27 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-25 10:29:27 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-25 10:29:27 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-25 10:29:27 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-25 10:29:27 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-25 10:29:27 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-25 10:29:27 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-25 10:29:27 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-25 10:29:27 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-25 10:29:27 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-25 10:29:27 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-25 10:29:27 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Count warnings: Running script
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:28 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-03-25 10:29:28 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:29 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:29 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:29 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:29 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:29 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:29 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:29 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:29 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:29 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:29 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:29 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:30 WARNING (MainThread) [pydaikin.appliance] ServerDisconnectedError 2
2020-03-25 10:29:30 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.inside_temperature_daikinap20019_inside_temperature is taking over 10 seconds
2020-03-25 10:29:31 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:31 INFO (MainThread) [homeassistant.components.automation] Count warnings: Running script
2020-03-25 10:29:31 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:31 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:31 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:32 WARNING (MainThread) [pydaikin.appliance] ServerDisconnectedError 1
2020-03-25 10:29:32 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:32 INFO (MainThread) [homeassistant.components.automation] Count warnings: Running script
2020-03-25 10:29:32 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:32 WARNING (MainThread) [pydaikin.appliance] ServerDisconnectedError 0
2020-03-25 10:29:32 WARNING (MainThread) [homeassistant.components.daikin] Connection failed for 192.168.1.125
2020-03-25 10:29:32 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:32 INFO (MainThread) [homeassistant.components.automation] Count warnings: Running script
2020-03-25 10:29:32 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:32 INFO (MainThread) [homeassistant.components.automation] Executing Count warnings
2020-03-25 10:29:32 INFO (MainThread) [homeassistant.components.automation] Count warnings: Executing step call service
2020-03-25 10:29:42 DEBUG (ArloBackgroundWorker) [pyaarlo] fast refresh
2020-03-25 10:29:42 DEBUG (ArloBackgroundWorker) [pyaarlo] day testing with 2020-03-25!
2020-03-25 10:29:42 DEBUG (ArloBackgroundWorker) [pyaarlo] slow refresh
2020-03-25 10:29:42 DEBUG (ArloBackgroundWorker) [pyaarlo] no device reload
2020-03-25 10:29:44 DEBUG (ArloBackgroundWorker) [pyaarlo] mode0<=M=>disarmed
2020-03-25 10:29:44 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloBase/50C176SP443A1/modeIdToName/mode0=disarmed
2020-03-25 10:29:44 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloBase/50C176SP443A1/modeNameToId/disarmed=mode0
2020-03-25 10:29:44 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloBase/50C176SP443A1/modeIsSchedule/disarmed=False
2020-03-25 10:29:44 DEBUG (ArloBackgroundWorker) [pyaarlo] mode1<=M=>armed
2020-03-25 10:29:44 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloBase/50C176SP443A1/modeIdToName/mode1=armed
2020-03-25 10:29:44 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloBase/50C176SP443A1/modeNameToId/armed=mode1
2020-03-25 10:29:44 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloBase/50C176SP443A1/modeIsSchedule/armed=False
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] sending cameras to 50C176SP443A1
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] BabyMonitor BASE got cameras
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/batteryLevel=100
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/batteryTech=Rechargeable
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/chargerTech=Regular
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/chargingState=Off
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/signalStrength=4
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/brightness=0
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/mirror=False
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/flip=False
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/powerSaveMode=2
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/speaker={'mute': False, 'volume': 58}
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/privacyActive=False
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/connectionState=available
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/activityState=userStreamActive
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/motionSetupModeEnabled=False
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/motionSetupModeSensitivity=80
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/motionDetected=False
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloBase/50C176SP443A1/audioDetected=False
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] BabyMonitor CAMERA got one cameras
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/batteryLevel=100
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/batteryTech=Rechargeable
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/chargerTech=Regular
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/chargingState=Off
2020-03-25 10:29:45 DEBUG (ArloEventStream) [custom_components.aarlo.camera] callback:BabyMonitor:chargingState:Off
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/signalStrength=4
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/brightness=0
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/mirror=False
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/flip=False
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/powerSaveMode=2
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/speaker={'mute': False, 'volume': 58}
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/privacyActive=False
2020-03-25 10:29:45 DEBUG (ArloEventStream) [custom_components.aarlo.camera] callback:BabyMonitor:privacyActive:False
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/connectionState=available
2020-03-25 10:29:45 DEBUG (ArloEventStream) [custom_components.aarlo.camera] callback:BabyMonitor:connectionState:available
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/activityState=userStreamActive
2020-03-25 10:29:45 DEBUG (ArloEventStream) [custom_components.aarlo.camera] callback:BabyMonitor:activityState:userStreamActive
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/motionSetupModeEnabled=False
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/motionSetupModeSensitivity=80
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/motionDetected=False
2020-03-25 10:29:45 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/audioDetected=False
2020-03-25 10:29:47 DEBUG (ArloEventStream) [pyaarlo] sending cameras/50C176SP443A1/ambientSensors/history to 50C176SP443A1
2020-03-25 10:29:47 DEBUG (ArloEventStream) [pyaarlo] BabyMonitor BASE got cameras/50C176SP443A1/ambientSensors/history
2020-03-25 10:29:47 DEBUG (ArloEventStream) [pyaarlo] BabyMonitor CAMERA got one cameras/50C176SP443A1/ambientSensors/history
2020-03-25 10:29:47 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/temperature=21.1
2020-03-25 10:29:47 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/humidity=74.1
2020-03-25 10:29:47 DEBUG (ArloEventStream) [pyaarlo] set:ArloCamera/50C176SP443A1/airQuality=None
2020-03-25 10:30:42 DEBUG (ArloBackgroundWorker) [pyaarlo] fast refresh
2020-03-25 10:30:42 DEBUG (ArloBackgroundWorker) [pyaarlo] day testing with 2020-03-25!
twrecked commented 4 years ago

There's a 30 seconds timeout after requesting the stream and it stopping. Do you have the stream: component installed?

jurgenweber commented 4 years ago

I sure do. I have hikvision security cameras that I stream from motion eye and this works just fine.

jurgenweber commented 4 years ago

I still can not get it to work, even after restarting HASS, I get:

2020-03-26 20:37:24 WARNING (ArloBackgroundWorker) [pyaarlo] error in response={'data': {'error': '5009', 'message': 'The device is not ready to stream. Please wait and try again.', 'reason': 'Egress token already exists'}, 'success': False}

as well as the already discussed errors/output.

twrecked commented 4 years ago

This is a new error and I'm still looking at it. I'm having a hell of a time reproducing it here.

twrecked commented 4 years ago

I'm guessing reading your comments you're comfortable with a Linux environment. Would you be ok trying something from inside a virtualenv? hass-aarlo has a sister project pyaarlo which is this project without the home-assistant pieces. I added some debug code that connects a stream to ffmpeg. The following bash commands will connect to Arlo and connect ffmpeg to an Arlo stream. You will have to stop your home assistant instance if you use the same username/password combination.

$ virtualenv -p /usr/bin/python3.6 test
$ source test/bin/activate
(test)$ pip install git+https://github.com/twrecked/pyaarlo
(test)$ pyaarlo -u your-username -p your-password camera --name 'your-camera-name' -f start-stream

It it fails to connect you can add -v -v before the word camera on the command line to see what's going wrong.

To give you an idea, I'm seeing this when my stream connects:

2020-03-27 14:14:37,716:pyaarlo:INFO: logging in
2020-03-27 14:14:40,127:pyaarlo:INFO: pyaarlo starting
2020-03-27 14:14:40,533:pyaarlo:INFO: skipping Side Camera: state unknown
starting a stream
stream-url=rtsps://vzwow121-z1-prod.ar.arlo.com:443/vzmoduleliveXXXXXXXXX_1585332893636?egressToken=c7e61b3b_a55f_4d9a_8285_d1a639bbb178&userAgent=iOS&cameraId=XXXXXXXXX_1585332893636
starting ffmpeg
mkdir: cannot create directory ‘video_dir’: File exists
ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, rtsp, from 'rtsps://vzwow121-z1-prod.ar.arlo.com:443/vzmodulelive/5TF18B7XAAF23_1585332893636?egressToken=c7e61b3b_a55f_4d9a_8285_d1a639bbb178&userAgent=iOS&cameraId=5TF18B7XAAF23_1585332893636':
  Metadata:
    title           : 5TF18B7XAAF23_1585332893636
  Duration: N/A, start: 0.064000, bitrate: N/A
    Stream #0:0: Audio: aac (LC), 16000 Hz, mono, fltp
    Stream #0:1: Video: h264 (High), yuvj420p(pc, bt709, progressive), 1920x1072, 24 fps, 24.08 tbr, 90k tbn, 48 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[hls @ 0x55d75e155d40] Opening 'video_dir/video0.ts' for writing
Output #0, hls, to 'video_dir/video.m3u8':
  Metadata:
    title           : 5TF18B7XAAF23_1585332893636
    encoder         : Lavf57.83.100
    Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 1920x1072, q=2-31, 24 fps, 24.08 tbr, 90k tbn, 24 tbc
    Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp, 69 kb/s
    Metadata:
      encoder         : Lavc57.107.100 aac
[hls @ 0x55d75e155d40] Non-monotonous DTS in output stream 0:0; previous: 79230, current: 60570; changing to 79231. This may result in incorrect timestamps in the output file.
[hls @ 0x55d75e155d40] Non-monotonous DTS in output stream 0:0; previous: 79231, current: 64260; changing to 79232. This may result in incorrect timestamps in the output file.
[hls @ 0x55d75e155d40] Non-monotonous DTS in output stream 0:0; previous: 79232, current: 68040; changing to 79233. This may result in incorrect timestamps in the output file.
[hls @ 0x55d75e155d40] Non-monotonous DTS in output stream 0:0; previous: 79233, current: 71730; changing to 79234. This may result in incorrect timestamps in the output file.
[hls @ 0x55d75e155d40] Non-monotonous DTS in output stream 0:0; previous: 79234, current: 75510; changing to 79235. This may result in incorrect timestamps in the output file.
[hls @ 0x55d75e155d40] Opening 'video_dir/video1.ts' for writing speed=2.45x    
[hls @ 0x55d75e155d40] Opening 'video_dir/video.m3u8.tmp' for writing
[hls @ 0x55d75e155d40] Opening 'video_dir/video2.ts' for writing speed=1.44x    
jurgenweber commented 4 years ago

yeah, I am a DevOps by trade... I am running Home Assistant Core in Docker. Here is what I did:

$  dr python:3.6-slim /bin/bash
# apt-get update ; apt-get install -y git build-essential ffmpeg
# pip install git+https://github.com/twrecked/pyaarlo
# pyaarlo -u my-username -p my-password camera --name 'BabyMonitor' -f start-stream

a few tries just got me this error:

starting a stream
 failed to start stream

so I tried the verbose:

2020-03-30 08:07:34,713:pyaarlo:INFO: logging in
2020-03-30 08:07:34,713:pyaarlo:DEBUG: Cfg started
2020-03-30 08:07:34,714:pyaarlo:DEBUG: starting
2020-03-30 08:07:34,714:pyaarlo:DEBUG: custom connections 20:10
2020-03-30 08:07:34,714:pyaarlo:DEBUG: login attempt #1
2020-03-30 08:07:38,605:pyaarlo:DEBUG: starting event loop
2020-03-30 08:07:38,606:pyaarlo:DEBUG: starting stream with no timeout
2020-03-30 08:07:38,608:pyaarlo:DEBUG: waiting for stream up
2020-03-30 08:07:38,929:pyaarlo:DEBUG: stream up
2020-03-30 08:07:38,929:pyaarlo:INFO: pyaarlo starting
2020-03-30 08:07:39,305:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/deviceId=50C176SP443A1
2020-03-30 08:07:39,305:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/deviceName=BabyMonitor
2020-03-30 08:07:39,305:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/deviceType=camera
2020-03-30 08:07:39,305:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/mediaObjectCount=43911
2020-03-30 08:07:39,306:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/parentId=50C176SP443A1
2020-03-30 08:07:39,306:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/uniqueId=69CSR7J-114-32406860_50C176SP443A1
2020-03-30 08:07:39,306:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/userId=6BVDTY2-114-32493212
2020-03-30 08:07:39,306:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/presignedLastImageUrl=https://arlolastimage-z3.s3.ama
2020-03-30 08:07:39,306:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/presignedFullFrameSnapshotUrl=https://arlos3-prod-z3.
2020-03-30 08:07:39,307:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/xCloudId=SK5DA2-1880-114-78661533
2020-03-30 08:07:39,307:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/deviceId=50C176SP443A1
2020-03-30 08:07:39,307:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/deviceName=BabyMonitor
2020-03-30 08:07:39,307:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/deviceType=camera
2020-03-30 08:07:39,307:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/mediaObjectCount=43911
2020-03-30 08:07:39,307:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/parentId=50C176SP443A1
2020-03-30 08:07:39,307:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/uniqueId=69CSR7J-114-32406860_50C176SP443A1
2020-03-30 08:07:39,307:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/userId=6BVDTY2-114-32493212
2020-03-30 08:07:39,307:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/presignedLastImageUrl=https://arlolastimage-z3.s3.a
2020-03-30 08:07:39,307:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/presignedFullFrameSnapshotUrl=https://arlos3-prod-z
2020-03-30 08:07:39,307:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/xCloudId=SK5DA2-1880-114-78661533
2020-03-30 08:07:39,308:pyaarlo:DEBUG: parent is 50C176SP443A1
2020-03-30 08:07:39,308:pyaarlo:DEBUG: set:ARLO/totalCameras=1
2020-03-30 08:07:39,308:pyaarlo:DEBUG: set:ARLO/totalDoorBells=0
2020-03-30 08:07:39,308:pyaarlo:DEBUG: set:ARLO/totalLights=0
2020-03-30 08:07:39,309:pyaarlo:DEBUG: getting initial settings
2020-03-30 08:07:39,309:pyaarlo:DEBUG: {'action': 'set', 'resource': 'subscriptions/6BVDTY2-114-32493212_web', 'publishResponse': False, 'properties': {'devices': ['50C176SP443A1']}}
2020-03-30 08:07:39,309:pyaarlo:DEBUG: registering cron jobs
2020-03-30 08:07:39,310:pyaarlo:DEBUG: waiting for initial setup...
2020-03-30 08:07:39,634:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/connectionState=available
2020-03-30 08:07:43,956:pyaarlo:DEBUG: queing image update
2020-03-30 08:07:43,956:pyaarlo:DEBUG: queing media update
2020-03-30 08:07:43,956:pyaarlo:DEBUG: reloading cache for BabyMonitor
2020-03-30 08:07:43,956:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/capturedToday=0
2020-03-30 08:07:43,956:pyaarlo:DEBUG: getting image for BabyMonitor
2020-03-30 08:07:44,099:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/lastImageSource=capture/03-23 10:35
2020-03-30 08:07:44,099:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/lastCapture=03-23 10:35
2020-03-30 08:07:44,100:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/presignedLastImageData=b'\xff\xd8\xff\xe0\x00\x10JF
2020-03-30 08:07:44,100:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/activityState=unknown
2020-03-30 08:07:44,313:pyaarlo:DEBUG: waiting for initial setup...
2020-03-30 08:07:46,957:pyaarlo:DEBUG: initial refresh
2020-03-30 08:07:47,685:pyaarlo:DEBUG: mode0<=M=>disarmed
2020-03-30 08:07:47,685:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/modeIdToName/mode0=disarmed
2020-03-30 08:07:47,685:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/modeNameToId/disarmed=mode0
2020-03-30 08:07:47,686:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/modeIsSchedule/disarmed=False
2020-03-30 08:07:47,686:pyaarlo:DEBUG: mode1<=M=>armed
2020-03-30 08:07:47,686:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/modeIdToName/mode1=armed
2020-03-30 08:07:47,686:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/modeNameToId/armed=mode1
2020-03-30 08:07:47,686:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/modeIsSchedule/armed=False
2020-03-30 08:07:48,856:pyaarlo:DEBUG: sending cameras to 50C176SP443A1
2020-03-30 08:07:48,856:pyaarlo:DEBUG: BabyMonitor BASE got cameras
2020-03-30 08:07:48,859:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/batteryLevel=100
2020-03-30 08:07:48,859:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/batteryTech=Rechargeable
2020-03-30 08:07:48,859:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/chargerTech=Regular
2020-03-30 08:07:48,859:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/chargingState=Off
2020-03-30 08:07:48,859:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/signalStrength=4
2020-03-30 08:07:48,859:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/brightness=0
2020-03-30 08:07:48,859:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/mirror=False
2020-03-30 08:07:48,860:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/flip=False
2020-03-30 08:07:48,860:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/powerSaveMode=2
2020-03-30 08:07:48,860:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/speaker={'mute': False, 'volume': 58}
2020-03-30 08:07:48,860:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/privacyActive=False
2020-03-30 08:07:48,860:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/connectionState=available
2020-03-30 08:07:48,860:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/activityState=userStreamActive
2020-03-30 08:07:48,860:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/motionSetupModeEnabled=False
2020-03-30 08:07:48,860:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/motionSetupModeSensitivity=80
2020-03-30 08:07:48,860:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/motionDetected=False
2020-03-30 08:07:48,861:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/audioDetected=False
2020-03-30 08:07:48,861:pyaarlo:DEBUG: BabyMonitor CAMERA got one cameras
2020-03-30 08:07:48,864:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/batteryLevel=100
2020-03-30 08:07:48,864:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/batteryTech=Rechargeable
2020-03-30 08:07:48,864:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/chargerTech=Regular
2020-03-30 08:07:48,864:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/chargingState=Off
2020-03-30 08:07:48,864:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/signalStrength=4
2020-03-30 08:07:48,864:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/brightness=0
2020-03-30 08:07:48,865:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/mirror=False
2020-03-30 08:07:48,865:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/flip=False
2020-03-30 08:07:48,865:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/powerSaveMode=2
2020-03-30 08:07:48,865:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/speaker={'mute': False, 'volume': 58}
2020-03-30 08:07:48,865:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/privacyActive=False
2020-03-30 08:07:48,865:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/connectionState=available
2020-03-30 08:07:48,866:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/activityState=userStreamActive
2020-03-30 08:07:48,866:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/motionSetupModeEnabled=False
2020-03-30 08:07:48,866:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/motionSetupModeSensitivity=80
2020-03-30 08:07:48,866:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/motionDetected=False
2020-03-30 08:07:48,866:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/audioDetected=False
2020-03-30 08:07:48,964:pyaarlo:DEBUG: initial refresh done
2020-03-30 08:07:48,965:pyaarlo:DEBUG: finished...
starting a stream
2020-03-30 08:07:50,640:pyaarlo:DEBUG: sending cameras/50C176SP443A1/ambientSensors/history to 50C176SP443A1
2020-03-30 08:07:50,640:pyaarlo:DEBUG: BabyMonitor BASE got cameras/50C176SP443A1/ambientSensors/history
2020-03-30 08:07:50,641:pyaarlo:DEBUG: BabyMonitor CAMERA got one cameras/50C176SP443A1/ambientSensors/history
2020-03-30 08:07:50,650:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/temperature=23.5
2020-03-30 08:07:50,650:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/humidity=76.9
2020-03-30 08:07:50,650:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/airQuality=None
2020-03-30 08:07:50,999:pyaarlo:DEBUG: sending cameras/50C176SP443A1 to 50C176SP443A1
2020-03-30 08:07:50,999:pyaarlo:DEBUG: BabyMonitor BASE got cameras/50C176SP443A1
2020-03-30 08:07:51,000:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/activityState=userStreamActive
2020-03-30 08:07:51,000:pyaarlo:DEBUG: BabyMonitor CAMERA got one cameras/50C176SP443A1
2020-03-30 08:07:51,000:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/activityState=userStreamActive
2020-03-30 08:07:53,955:pyaarlo:DEBUG: loading image library
2020-03-30 08:08:20,904:pyaarlo:WARNING: error in response={'data': {'error': '5011', 'message': 'The device failed to connect. Please try again.', 'reason': ' Ingress timedout for cameraId:50C176SP443A1_1585555669460'}, 'success': False}
 failed to start stream

this interests me

2020-03-30 08:07:53,955:pyaarlo:DEBUG: loading image library

could that be bcause I have 10's of thousands of recordings?

jurgenweber commented 4 years ago

Ok, something weird is going on. I think I need to restart the camera but I can not because my boy is asleep. :) So I will have to try again tomorrow. I login to any of the accounts and the website shows me the last frame that I am seeing in HASS but the app still works (ahh, no it doesn't Same thing now). The website is unable to restart the unit, etc. All seems broken.

On another note, there seems to be no videos in my library anymore either.....

jurgenweber commented 4 years ago

ok, I got the thing to restart finally. Logged off every device and shutdown HASS.

2020-03-30 08:40:00,067:pyaarlo:DEBUG: starting event loop
2020-03-30 08:40:00,067:pyaarlo:DEBUG: starting stream with no timeout
2020-03-30 08:40:00,069:pyaarlo:DEBUG: waiting for stream up
2020-03-30 08:40:00,388:pyaarlo:DEBUG: stream up
2020-03-30 08:40:00,388:pyaarlo:INFO: pyaarlo starting
2020-03-30 08:40:00,757:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/deviceId=50C176SP443A1
2020-03-30 08:40:00,757:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/deviceName=BabyMonitor
2020-03-30 08:40:00,757:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/deviceType=camera
2020-03-30 08:40:00,757:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/mediaObjectCount=0
2020-03-30 08:40:00,757:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/parentId=50C176SP443A1
2020-03-30 08:40:00,757:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/uniqueId=69CSR7J-114-32406860_50C176SP443A1
2020-03-30 08:40:00,757:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/userId=6BVDTY2-114-32493212
2020-03-30 08:40:00,757:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/presignedLastImageUrl=https://arlolastimage-z3.s3.ama
2020-03-30 08:40:00,757:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/presignedFullFrameSnapshotUrl=https://arlos3-prod-z3.
2020-03-30 08:40:00,757:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/xCloudId=SK5DA2-1880-114-78661533
2020-03-30 08:40:00,758:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/deviceId=50C176SP443A1
2020-03-30 08:40:00,758:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/deviceName=BabyMonitor
2020-03-30 08:40:00,758:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/deviceType=camera
2020-03-30 08:40:00,758:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/mediaObjectCount=0
2020-03-30 08:40:00,758:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/parentId=50C176SP443A1
2020-03-30 08:40:00,758:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/uniqueId=69CSR7J-114-32406860_50C176SP443A1
2020-03-30 08:40:00,758:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/userId=6BVDTY2-114-32493212
2020-03-30 08:40:00,758:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/presignedLastImageUrl=https://arlolastimage-z3.s3.a
2020-03-30 08:40:00,758:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/presignedFullFrameSnapshotUrl=https://arlos3-prod-z
2020-03-30 08:40:00,759:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/xCloudId=SK5DA2-1880-114-78661533
2020-03-30 08:40:00,759:pyaarlo:DEBUG: parent is 50C176SP443A1
2020-03-30 08:40:00,759:pyaarlo:DEBUG: set:ARLO/totalCameras=1
2020-03-30 08:40:00,760:pyaarlo:DEBUG: set:ARLO/totalDoorBells=0
2020-03-30 08:40:00,760:pyaarlo:DEBUG: set:ARLO/totalLights=0
2020-03-30 08:40:00,760:pyaarlo:DEBUG: getting initial settings
2020-03-30 08:40:00,760:pyaarlo:DEBUG: registering cron jobs
2020-03-30 08:40:00,760:pyaarlo:DEBUG: waiting for initial setup...
2020-03-30 08:40:00,761:pyaarlo:DEBUG: {'action': 'set', 'resource': 'subscriptions/6BVDTY2-114-32493212_web', 'publishResponse': False, 'properties': {'devices': ['50C176SP443A1']}}
2020-03-30 08:40:01,091:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/connectionState=available
2020-03-30 08:40:04,966:pyaarlo:DEBUG: queing image update
2020-03-30 08:40:04,966:pyaarlo:DEBUG: queing media update
2020-03-30 08:40:04,967:pyaarlo:DEBUG: reloading cache for BabyMonitor
2020-03-30 08:40:04,967:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/capturedToday=0
2020-03-30 08:40:04,967:pyaarlo:DEBUG: getting image for BabyMonitor
2020-03-30 08:40:05,102:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/lastImageSource=capture/03-30 08:39
2020-03-30 08:40:05,103:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/lastCapture=03-30 08:39
2020-03-30 08:40:05,103:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/presignedLastImageData=b'\xff\xd8\xff\xe0\x00\x10JF
2020-03-30 08:40:05,103:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/activityState=unknown
2020-03-30 08:40:05,761:pyaarlo:DEBUG: waiting for initial setup...
2020-03-30 08:40:07,966:pyaarlo:DEBUG: initial refresh
2020-03-30 08:40:08,659:pyaarlo:DEBUG: mode0<=M=>disarmed
2020-03-30 08:40:08,660:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/modeIdToName/mode0=disarmed
2020-03-30 08:40:08,660:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/modeNameToId/disarmed=mode0
2020-03-30 08:40:08,660:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/modeIsSchedule/disarmed=False
2020-03-30 08:40:08,660:pyaarlo:DEBUG: mode1<=M=>armed
2020-03-30 08:40:08,660:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/modeIdToName/mode1=armed
2020-03-30 08:40:08,660:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/modeNameToId/armed=mode1
2020-03-30 08:40:08,660:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/modeIsSchedule/armed=False
2020-03-30 08:40:09,946:pyaarlo:DEBUG: initial refresh done
2020-03-30 08:40:09,949:pyaarlo:DEBUG: finished...
starting a stream
2020-03-30 08:40:09,988:pyaarlo:DEBUG: sending cameras to 50C176SP443A1
2020-03-30 08:40:09,988:pyaarlo:DEBUG: BabyMonitor BASE got cameras
2020-03-30 08:40:09,991:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/batteryLevel=99
2020-03-30 08:40:09,991:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/batteryTech=Rechargeable
2020-03-30 08:40:09,991:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/chargerTech=Regular
2020-03-30 08:40:09,991:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/chargingState=On
2020-03-30 08:40:09,991:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/signalStrength=4
2020-03-30 08:40:09,992:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/brightness=0
2020-03-30 08:40:09,992:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/mirror=False
2020-03-30 08:40:09,992:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/flip=False
2020-03-30 08:40:09,992:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/powerSaveMode=2
2020-03-30 08:40:09,992:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/speaker={'mute': False, 'volume': 58}
2020-03-30 08:40:09,992:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/privacyActive=False
2020-03-30 08:40:09,992:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/connectionState=available
2020-03-30 08:40:09,992:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/activityState=idle
2020-03-30 08:40:09,993:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/motionSetupModeEnabled=False
2020-03-30 08:40:09,993:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/motionSetupModeSensitivity=80
2020-03-30 08:40:09,993:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/motionDetected=False
2020-03-30 08:40:09,993:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/audioDetected=False
2020-03-30 08:40:09,993:pyaarlo:DEBUG: BabyMonitor CAMERA got one cameras
2020-03-30 08:40:09,995:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/batteryLevel=99
2020-03-30 08:40:09,995:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/batteryTech=Rechargeable
2020-03-30 08:40:09,996:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/chargerTech=Regular
2020-03-30 08:40:09,996:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/chargingState=On
2020-03-30 08:40:09,996:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/signalStrength=4
2020-03-30 08:40:09,996:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/brightness=0
2020-03-30 08:40:09,996:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/mirror=False
2020-03-30 08:40:09,996:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/flip=False
2020-03-30 08:40:09,996:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/powerSaveMode=2
2020-03-30 08:40:09,996:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/speaker={'mute': False, 'volume': 58}
2020-03-30 08:40:09,996:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/privacyActive=False
2020-03-30 08:40:09,996:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/connectionState=available
2020-03-30 08:40:09,997:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/activityState=idle
2020-03-30 08:40:09,997:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/motionSetupModeEnabled=False
2020-03-30 08:40:09,997:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/motionSetupModeSensitivity=80
2020-03-30 08:40:09,997:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/motionDetected=False
2020-03-30 08:40:09,997:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/audioDetected=False
2020-03-30 08:40:11,574:pyaarlo:DEBUG: sending cameras/50C176SP443A1/ambientSensors/history to 50C176SP443A1
2020-03-30 08:40:11,574:pyaarlo:DEBUG: BabyMonitor BASE got cameras/50C176SP443A1/ambientSensors/history
2020-03-30 08:40:11,575:pyaarlo:DEBUG: BabyMonitor CAMERA got one cameras/50C176SP443A1/ambientSensors/history
2020-03-30 08:40:11,585:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/temperature=23.3
2020-03-30 08:40:11,585:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/humidity=78.0
2020-03-30 08:40:11,585:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/airQuality=None
2020-03-30 08:40:11,970:pyaarlo:DEBUG: sending cameras/50C176SP443A1 to 50C176SP443A1
2020-03-30 08:40:11,970:pyaarlo:DEBUG: BabyMonitor BASE got cameras/50C176SP443A1
2020-03-30 08:40:11,970:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/activityState=startUserStream
2020-03-30 08:40:11,970:pyaarlo:DEBUG: BabyMonitor CAMERA got one cameras/50C176SP443A1
2020-03-30 08:40:11,971:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/activityState=startUserStream
2020-03-30 08:40:12,367:pyaarlo:DEBUG: sending cameras/50C176SP443A1 to 50C176SP443A1
2020-03-30 08:40:12,367:pyaarlo:DEBUG: BabyMonitor BASE got cameras/50C176SP443A1
2020-03-30 08:40:12,368:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/activityState=startUserStream
2020-03-30 08:40:12,368:pyaarlo:DEBUG: BabyMonitor CAMERA got one cameras/50C176SP443A1
2020-03-30 08:40:12,368:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/activityState=startUserStream
2020-03-30 08:40:12,681:pyaarlo:DEBUG: url=rtsps://vzwow11-z3-prod.ar.arlo.com:443/vzmodulelive/50C176SP443A1_1585557610445?egressToken=3b340e50_e746_4008_a4c2_acc8a4e1556c&userAgent=iOS&cameraId=50C176SP443A1_1585557610445
stream-url=rtsps://vzwow11-z3-prod.ar.arlo.com:443/vzmodulelive/50C176SP443A1_1585557610445?egressToken=3b340e50_e746_4008_a4c2_acc8a4e1556c&userAgent=iOS&cameraId=50C176SP443A1_1585557610445
starting ffmpeg
mkdir: cannot create directory ‘video_dir’: File exists
2020-03-30 08:40:12,707:pyaarlo:DEBUG: sending cameras/50C176SP443A1 to 50C176SP443A1
2020-03-30 08:40:12,707:pyaarlo:DEBUG: BabyMonitor BASE got cameras/50C176SP443A1
2020-03-30 08:40:12,707:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/activityState=userStreamActive
2020-03-30 08:40:12,708:pyaarlo:DEBUG: BabyMonitor CAMERA got one cameras/50C176SP443A1
2020-03-30 08:40:12,708:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/activityState=userStreamActive
ffmpeg version 4.1.4-1~deb10u1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --prefix=/usr --extra-version='1~deb10u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
2020-03-30 08:40:14,967:pyaarlo:DEBUG: loading image library
2020-03-30 08:40:15,357:pyaarlo:DEBUG: ml:load-count=1
Input #0, rtsp, from 'rtsps://vzwow11-z3-prod.ar.arlo.com:443/vzmodulelive/50C176SP443A1_1585557610445?egressToken=3b340e50_e746_4008_a4c2_acc8a4e1556c&userAgent=iOS&cameraId=50C176SP443A1_1585557610445':
  Metadata:
    title           : 50C176SP443A1_1585557610445
  Duration: N/A, start: 0.256000, bitrate: N/A
    Stream #0:0: Audio: aac (LC), 16000 Hz, mono, fltp
    Stream #0:1: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 848x480 [SAR 1:1 DAR 53:30], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video0.ts' for writing
Output #0, hls, to 'video_dir/video.m3u8':
  Metadata:
    title           : 50C176SP443A1_1585557610445
    encoder         : Lavf58.20.100
    Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 848x480 [SAR 1:1 DAR 53:30], q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc
    Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp, 69 kb/s
    Metadata:
      encoder         : Lavc58.35.100 aac
[hls @ 0x5596cd10dbc0] Non-monotonous DTS in output stream 0:0; previous: 216090, current: 198090; changing to 216091. This may result in incorrect timestamps in the output file.
[hls @ 0x5596cd10dbc0] Non-monotonous DTS in output stream 0:0; previous: 216091, current: 201690; changing to 216092. This may result in incorrect timestamps in the output file.
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video1.ts' for writing
[hls @ 0x5596cd10dbc0] Cannot use rename on non file protocol, this may lead to races and temporary partial files
[hls @ 0x5596cd10dbc0] Non-monotonous DTS in output stream 0:0; previous: 216092, current: 205290; changing to 216093. This may result in incorrect timestamps in the output file.
[hls @ 0x5596cd10dbc0] Non-monotonous DTS in output stream 0:0; previous: 216093, current: 208890; changing to 216094. This may result in incorrect timestamps in the output file.
[hls @ 0x5596cd10dbc0] Non-monotonous DTS in output stream 0:0; previous: 216094, current: 212490; changing to 216095. This may result in incorrect timestamps in the output file.
[hls @ 0x5596cd10dbc0] Non-monotonous DTS in output stream 0:0; previous: 216095, current: 216090; changing to 216096. This may result in incorrect timestamps in the output file.
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video2.ts' for writing speed=2.28x
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video3.ts' for writing speed=1.49x
2020-03-30 08:40:24,966:pyaarlo:DEBUG: reloading cache for BabyMonitor=1.44x
2020-03-30 08:40:24,967:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/capturedToday=0
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video4.ts' for writing speed=1.34x
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video5.ts' for writing speed= 1.2x
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video6.ts' for writing speed=1.18x
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video7.ts' for writing speed=1.14x
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video8.ts' for writing speed=1.12x
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video9.ts' for writing speed=1.11x
2020-03-30 08:40:50,667:pyaarlo:DEBUG: sending cameras/50C176SP443A1 to 50C176SP443A1
2020-03-30 08:40:50,667:pyaarlo:DEBUG: BabyMonitor BASE got cameras/50C176SP443A1
2020-03-30 08:40:50,668:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/batteryLevel=100
2020-03-30 08:40:50,668:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/batteryTech=Rechargeable
2020-03-30 08:40:50,668:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/chargerTech=Regular
2020-03-30 08:40:50,668:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/chargingState=Off
2020-03-30 08:40:50,668:pyaarlo:DEBUG: BabyMonitor CAMERA got one cameras/50C176SP443A1
2020-03-30 08:40:50,668:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/batteryLevel=100
2020-03-30 08:40:50,669:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/batteryTech=Rechargeable
2020-03-30 08:40:50,669:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/chargerTech=Regular
2020-03-30 08:40:50,669:pyaarlo:DEBUG: set:ArloCamera/50C176SP443A1/chargingState=Off
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video10.ts' for writingspeed= 1.1x
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video11.ts' for writingspeed=1.09x
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video12.ts' for writingspeed=1.08x
2020-03-30 08:40:59,966:pyaarlo:DEBUG: fast refresh
2020-03-30 08:40:59,967:pyaarlo:DEBUG: day testing with 2020-03-30!
2020-03-30 08:40:59,967:pyaarlo:DEBUG: {'action': 'set', 'resource': 'subscriptions/6BVDTY2-114-32493212_web', 'publishResponse': False, 'properties': {'devices': ['50C176SP443A1']}}
2020-03-30 08:41:00,303:pyaarlo:DEBUG: set:ArloBase/50C176SP443A1/connectionState=available
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video13.ts' for writingspeed=1.07x
[hls @ 0x5596cd10dbc0] Opening 'video_dir/video14.ts' for writingspeed=1.06x
frame= 1289 fps= 26 q=-1.0 size=N/A time=00:00:53.76 bitrate=N/A speed=1.06x
jurgenweber commented 4 years ago

I thought maybe my test was a bit inconclusive so I loaded it up using the HASS image:


ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.2.0 (Alpine 9.2.0)
  configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --disable-debug
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, rtsp, from 'rtsps://vzwow38-z3-prod.ar.arlo.com:443/vzmodulelive/50C176SP443A1_1585558173996?egressToken=228de179_a801_47eb_b982_9d20a8579949&userAgent=iOS&cameraId=50C176SP443A1_1585558173996':
  Metadata:
    title           : 50C176SP443A1_1585558173996
  Duration: N/A, start: 0.256000, bitrate: N/A
    Stream #0:0: Audio: aac (LC), 16000 Hz, mono, fltp
    Stream #0:1: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 848x480 [SAR 1:1 DAR 53:30], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[hls @ 0x55d0744d2cc0] Opening 'video_dir/video0.ts' for writing
Output #0, hls, to 'video_dir/video.m3u8':
  Metadata:
    title           : 50C176SP443A1_1585558173996
    encoder         : Lavf58.29.100
    Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 848x480 [SAR 1:1 DAR 53:30], q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc
    Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp, 69 kb/s
    Metadata:
      encoder         : Lavc58.54.100 aac
[hls @ 0x55d0744d2cc0] Non-monotonous DTS in output stream 0:0; previous: 229680, current: 211680; changing to 229681. This may result in incorrect timestamps in the output file.
[hls @ 0x55d0744d2cc0] Non-monotonous DTS in output stream 0:0; previous: 229681, current: 215280; changing to 229682. This may result in incorrect timestamps in the output file.
[hls @ 0x55d0744d2cc0] Non-monotonous DTS in output stream 0:0; previous: 229682, current: 218880; changing to 229683. This may result in incorrect timestamps in the output file.
[hls @ 0x55d0744d2cc0] Non-monotonous DTS in output stream 0:0; previous: 229683, current: 222480; changing to 229684. This may result in incorrect timestamps in the output file.
[hls @ 0x55d0744d2cc0] Non-monotonous DTS in output stream 0:0; previous: 229684, current: 226080; changing to 229685. This may result in incorrect timestamps in the output file.
[hls @ 0x55d0744d2cc0] Non-monotonous DTS in output stream 0:0; previous: 229685, current: 229680; changing to 229686. This may result in incorrect timestamps in the output file.
[hls @ 0x55d0744d2cc0] Opening 'video_dir/video.m3u8.tmp' for writing
[hls @ 0x55d0744d2cc0] Opening 'video_dir/video1.ts' for writing
[hls @ 0x55d0744d2cc0] Opening 'video_dir/video.m3u8.tmp' for writingd=2.36x
[hls @ 0x55d0744d2cc0] Opening 'video_dir/video2.ts' for writing
[hls @ 0x55d0744d2cc0] Opening 'video_dir/video.m3u8.tmp' for writingd=1.51x
[hls @ 0x55d0744d2cc0] Opening 'video_dir/video3.ts' for writing
[hls @ 0x55d0744d2cc0] Opening 'video_dir/video.m3u8.tmp' for writingd=1.32x
[hls @ 0x55d0744d2cc0] Opening 'video_dir/video4.ts' for writing
[hls @ 0x55d0744d2cc0] Opening 'video_dir/video.m3u8.tmp' for writingd=1.23x
[hls @ 0x55d0744d2cc0] Opening 'video_dir/video5.ts' for writing```
twrecked commented 4 years ago

The video works inside HASS but not when tried from inside HASS and from Home Assistant. You probably noticed but the pyaarlo you installed from pip is identical to the code under the custom_components/aarlo/pyaarlo directory. I'm not sure what this means right now...

You could be right about the image download. If you open custom_components/aarlo/pyaarlo/constant.py and look for PRELOAD_DAYS. That's the number of days of video information it will load, try changing that from 30 to 3.

Can you get to the previous recordings from the lovelace card?

I didn't get round to installing all your lovelace extensions, I just tried the config for the pieces I already had. I'll look at that this week.

edit: auto-entities seems fine...

jurgenweber commented 4 years ago

last night I could not get the UI functioning properly after all of this testing so I had to drop the aarlo camera config and restart.

With all the lovelace components I could probably remove/uninstall some. I don't think I use them all anymore and things like the media-player there are now built in ones.

I will identify what I am and am not using and reduce the number tonight.

jurgenweber commented 4 years ago

ok, I found some time today also if you like you can hit me up on the home assistant Discord, war#6489.

2020-03-31 10:02:09 ERROR (MainThread) [homeassistant.config] Platform error: camera
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config.py", line 769, in async_process_component_config
    platform = p_integration.get_platform(domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 277, in get_platform
    f"{self.pkg_path}.{platform_name}"
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/config/custom_components/aarlo/camera.py", line 34, in <module>
    from .pyaarlo.constant import (ACTIVITY_STATE_KEY,
ImportError: cannot import name 'RECENT_ACTIVITY_KEY' from 'custom_components.aarlo.pyaarlo.constant' (/config/custom_components/aarlo/pyaarlo/constant.py)

I got that error after turning it back on again, some of my automation stuff reset the config change you suggested for the PRELOAD_DAYS so i'll have to do that again later.

twrecked commented 4 years ago

Sorry. I got completely over whelmed with my real job. Is this still an issue?