Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Generic Camera keeps ring Live Stream switch always on. [Workaround Found] #118345

Open
Justnthenick opened this issue May 29, 2024 · 3 comments
Open

Comments

@Justnthenick
Copy link

Justnthenick commented May 29, 2024

The problem [Workaround Found]

I have 2 ring cameras and a raspberry pi 5 with HA running in docker. Ring cameras only stream via rtsp which the generic camera integrations is only capable of.

I have the ring mqtt server running and talking flawlessly with HA.

As soon as you add a generic camera with the rtsp stream, the live switch flips on and the batteries drain super fast on the rings. You dont even have to view the stream. As soon as it exists, the cameras are live streaming.

I can use any other software to access the ring cameras (unfortunately not within HA) and it works fine. I have even disabled the preload stream switch for the camera, and yet it continues. This is a fatal flaw with generic camera integration that absolutely makes its function completely useless for battery powered devices.

`### What version of Home Assistant Core has the issue?

core-2024.4.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Generic Camera

Link to integration documentation on our website

No response

Diagnostics information

config_entry-generic-5e66a18e0258db6a3f2b9e8dc5df7539.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-05-27 02:14:13.606 WARNING (MainThread) [homeassistant.helpers.translation] Failed to load integration for translation: Integration 'whitelist_external_dirs' not found.
2024-05-27 02:14:13.607 WARNING (MainThread) [homeassistant.helpers.translation] Failed to load integration for translation: Integration 'allowlist_external_dirs' not found.
2024-05-27 02:14:13.866 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2024-05-27 02:14:14.022 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=46 from 2024-05-17 16:56:21.226596)
2024-05-27 02:14:16.348 ERROR (MainThread) [homeassistant.setup] Setup failed for 'whitelist_external_dirs': Integration not found.
2024-05-27 02:14:16.348 ERROR (MainThread) [homeassistant.setup] Setup failed for 'allowlist_external_dirs': Integration not found.
2024-05-27 02:14:32.821 ERROR (MainThread) [homeassistant.components.homekit.util] media_player.blu_ray_home_theatre_system does not support any media_player features
2024-05-27 02:14:34.046 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/homeassistant/config_entries.py", line 1722, in async_reload
    unload_result = await self.async_unload(entry_id)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/homeassistant/config_entries.py", line 1694, in async_unload
    raise OperationNotAllowed(
homeassistant.config_entries.OperationNotAllowed: The config entry OnHub (upnp) with entry_id 978291259340195a3663053ac33164bb cannot be unloaded because it is not in a recoverable state (ConfigEntryState.SETUP_IN_PROGRESS)
2024-05-27 02:14:34.059 ERROR (ImportExecutor_0) [homeassistant] Error doing job: Unclosed connection
2024-05-27 02:21:30.297 ERROR (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Error reading from socket.
2024-05-27 02:21:30.297 WARNING (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Error communicating with socket, resetting connection
2024-05-27 02:21:30.303 ERROR (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Failed to connect to service HostServiceInfo(host='192.168.1.250', port=8009), retrying in 5.0s
2024-05-27 02:56:24.990 ERROR (MainThread) [homeassistant.components.canary.coordinator] Timeout fetching canary data
2024-05-27 02:56:26.915 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching active dings data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/dings/active: HTTPSConnectionPool(host='api.ring.com', port=443): Max retries exceeded with url: /clients_api/dings/active (Caused by ReadTimeoutError("HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)"))
2024-05-27 02:56:44.847 ERROR (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Error reading from socket.
2024-05-27 02:56:44.847 WARNING (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Error communicating with socket, resetting connection
2024-05-27 02:56:44.852 ERROR (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Failed to connect to service HostServiceInfo(host='192.168.1.250', port=8009), retrying in 5.0s
2024-05-27 03:04:15.022 WARNING (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Heartbeat timeout, resetting connection
2024-05-27 03:04:45.054 ERROR (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Failed to connect to service HostServiceInfo(host='192.168.1.250', port=8009), retrying in 5.0s
2024-05-27 03:07:09.381 ERROR (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Error reading from socket.
2024-05-27 03:07:09.381 WARNING (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Error communicating with socket, resetting connection
2024-05-27 03:07:09.385 ERROR (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Failed to connect to service HostServiceInfo(host='192.168.1.250', port=8009), retrying in 5.0s
2024-05-27 03:20:39.773 ERROR (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Error reading from socket.
2024-05-27 03:20:39.773 WARNING (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Error communicating with socket, resetting connection
2024-05-27 03:20:39.791 ERROR (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Failed to connect to service HostServiceInfo(host='192.168.1.250', port=8009), retrying in 5.0s
2024-05-27 06:53:41.937 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching active dings data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/dings/active: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2024-05-27 08:55:27.552 ERROR (MainThread) [pyatv.protocols.companion.protocol] failed to process frame
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/protocol.py", line 195, in frame_received
    opack_data, _ = opack.unpack(data)
                    ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyatv/support/opack.py", line 136, in unpack
    return _unpack(data, [])
           ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyatv/support/opack.py", line 221, in _unpack
    value, ptr = _unpack(ptr, object_list)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyatv/support/opack.py", line 235, in _unpack
    raise TypeError(hex(data[0]))
TypeError: 0x7
2024-05-27 08:55:32.547 ERROR (MainThread) [pyatv.core.protocol] error during dispatch
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
    return await fut
           ^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/locks.py", line 212, in wait
    await fut
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/api.py", line 163, in _send_command
    resp = await self._protocol.exchange_opack(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/protocol.py", line 154, in exchange_opack
    return await self._exchange_generic_opack(frame_type, data, identifier, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/protocol.py", line 167, in _exchange_generic_opack
    unpacked_object = await self._queues[identifier].wait(timeout)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyatv/support/collections.py", line 160, in wait
    await asyncio.wait_for(self._event.wait(), timeout)
  File "/usr/local/lib/python3.12/asyncio/tasks.py", line 519, in wait_for
    async with timeouts.timeout(timeout):
  File "/usr/local/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__
    raise TimeoutError from exc_val
TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/pyatv/core/protocol.py", line 105, in _call_listener
    await func
  File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/__init__.py", line 373, in _handle_control_flag_update
    resp = await self.api.mediacontrol_command(MediaControlCommand.GetVolume)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/api.py", line 289, in mediacontrol_command
    return await self._send_command("_mcc", {"_mcc": command.value, **(args or {})})
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/api.py", line 174, in _send_command
    raise exceptions.ProtocolError(f"Command {identifier} failed") from ex
pyatv.exceptions.ProtocolError: Command _mcc failed
2024-05-27 10:37:46.915 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching active dings data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/dings/active: HTTPSConnectionPool(host='api.ring.com', port=443): Max retries exceeded with url: /clients_api/dings/active (Caused by ReadTimeoutError("HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)"))
2024-05-27 10:53:51.934 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching active dings data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/dings/active: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2024-05-27 11:18:25.899 WARNING (Thread-14) [pychromecast.socket_client] [Kitchen display(192.168.1.249):8009] Heartbeat timeout, resetting connection
2024-05-27 11:18:28.981 ERROR (Thread-14) [pychromecast.socket_client] [Kitchen display(192.168.1.249):8009] Failed to connect to service HostServiceInfo(host='192.168.1.249', port=8009), retrying in 5.0s
2024-05-27 12:35:22.697 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection
2024-05-27 13:11:28.507 ERROR (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Error reading from socket.
2024-05-27 13:11:28.507 WARNING (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Error communicating with socket, resetting connection
2024-05-27 13:11:28.514 ERROR (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Failed to connect to service HostServiceInfo(host='192.168.1.250', port=8009), retrying in 5.0s
2024-05-27 14:31:42.222 ERROR (SyncWorker_3) [homeassistant] Error doing job: Unclosed connection
2024-05-27 14:54:01.932 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching active dings data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/dings/active: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2024-05-27 18:54:11.931 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching active dings data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/dings/active: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2024-05-27 22:54:21.933 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching active dings data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/dings/active: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2024-05-27 23:43:28.752 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV "Home Theater"
2024-05-27 23:55:18.757 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV "Home Theater"
2024-05-28 00:12:25.833 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV "Home Theater"
2024-05-28 00:12:56.916 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching active dings data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/dings/active: HTTPSConnectionPool(host='api.ring.com', port=443): Max retries exceeded with url: /clients_api/dings/active (Caused by ReadTimeoutError("HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)"))
2024-05-28 00:13:06.989 ERROR (MainThread) [homeassistant.components.canary.coordinator] Timeout fetching canary data
2024-05-28 00:13:27.769 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching devices data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/ring_devices: HTTPSConnectionPool(host='api.ring.com', port=443): Max retries exceeded with url: /clients_api/ring_devices (Caused by ReadTimeoutError("HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)"))
2024-05-28 00:13:40.909 WARNING (SyncWorker_18) [urllib3.connectionpool] Retrying (Retry(total=9, connect=4, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca3a2690>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 00:13:49.914 WARNING (SyncWorker_18) [urllib3.connectionpool] Retrying (Retry(total=8, connect=3, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffedcc00da0>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 00:15:04.552 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV "Home Theater"
2024-05-28 00:21:28.878 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV "Home Theater"
2024-05-28 00:28:06.276 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV "Home Theater"
2024-05-28 00:31:33.601 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV "Home Theater"
2024-05-28 00:35:25.713 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV "Home Theater"
2024-05-28 00:35:53.156 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV "Home Theater"
2024-05-28 00:37:21.667 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV "Home Theater"
2024-05-28 00:38:18.701 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV "Home Theater"
2024-05-28 00:40:07.143 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV "Home Theater"
2024-05-28 00:42:40.591 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV "Home Theater"
2024-05-28 00:44:10.970 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Home Theater for apple_tv
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/homeassistant/config_entries.py", line 551, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/homeassistant/components/apple_tv/__init__.py", line 85, in async_setup_entry
    await manager.async_first_connect()
  File "/usr/local/lib/python3.12/site-packages/homeassistant/components/apple_tv/__init__.py", line 277, in async_first_connect
    await self._connect_once(raise_missing_credentials=True)
  File "/usr/local/lib/python3.12/site-packages/homeassistant/components/apple_tv/__init__.py", line 271, in _connect_once
    await self._connect(conf, raise_missing_credentials)
  File "/usr/local/lib/python3.12/site-packages/homeassistant/components/apple_tv/__init__.py", line 391, in _connect
    self.atv = await connect(conf, self.hass.loop, session=session)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyatv/__init__.py", line 155, in connect
    await atv.connect()
  File "/usr/local/lib/python3.12/site-packages/pyatv/core/facade.py", line 684, in connect
    if await setup_data.connect():
       ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/__init__.py", line 571, in _connect
    await api.connect()
  File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/api.py", line 143, in connect
    await self._protocol.start()
  File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/protocol.py", line 101, in start
    await self.connection.connect()
  File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/companion/connection.py", line 80, in connect
    await self.loop.create_connection(lambda: self, self.host, self.port)
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1120, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1102, in create_connection
    sock = await self._connect_sock(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1005, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 641, in sock_connect
    return await fut
           ^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 681, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.1.55', 49153)
2024-05-28 01:02:54.915 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching active dings data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/dings/active: HTTPSConnectionPool(host='api.ring.com', port=443): Max retries exceeded with url: /clients_api/dings/active (Caused by ReadTimeoutError("HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)"))
2024-05-28 01:03:04.909 WARNING (SyncWorker_36) [urllib3.connectionpool] Retrying (Retry(total=9, connect=4, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffec9f07080>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:03:07.851 ERROR (MainThread) [homeassistant.components.canary.coordinator] Timeout fetching canary data
2024-05-28 01:03:13.914 WARNING (SyncWorker_36) [urllib3.connectionpool] Retrying (Retry(total=8, connect=3, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca9bcb30>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:03:26.920 WARNING (SyncWorker_36) [urllib3.connectionpool] Retrying (Retry(total=7, connect=2, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca471b80>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:03:42.770 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching devices data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/ring_devices: HTTPSConnectionPool(host='api.ring.com', port=443): Max retries exceeded with url: /clients_api/ring_devices (Caused by ReadTimeoutError("HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)"))
2024-05-28 01:03:47.925 WARNING (SyncWorker_36) [urllib3.connectionpool] Retrying (Retry(total=6, connect=1, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca0b6570>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:04:24.931 WARNING (SyncWorker_36) [urllib3.connectionpool] Retrying (Retry(total=5, connect=0, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca0b4950>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:04:39.909 WARNING (SyncWorker_40) [urllib3.connectionpool] Retrying (Retry(total=9, connect=4, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca0b6750>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:04:47.760 WARNING (SyncWorker_20) [urllib3.connectionpool] Retrying (Retry(total=9, connect=4, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca516450>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/ring_devices
2024-05-28 01:04:48.913 WARNING (SyncWorker_40) [urllib3.connectionpool] Retrying (Retry(total=8, connect=3, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffec9dbbe90>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:04:56.765 WARNING (SyncWorker_20) [urllib3.connectionpool] Retrying (Retry(total=8, connect=3, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca10b5f0>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/ring_devices
2024-05-28 01:05:01.917 WARNING (SyncWorker_40) [urllib3.connectionpool] Retrying (Retry(total=7, connect=2, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca10a1b0>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:05:09.769 WARNING (SyncWorker_20) [urllib3.connectionpool] Retrying (Retry(total=7, connect=2, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffec9e66ea0>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/ring_devices
2024-05-28 01:05:22.922 WARNING (SyncWorker_40) [urllib3.connectionpool] Retrying (Retry(total=6, connect=1, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffec9569a90>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:05:30.775 WARNING (SyncWorker_20) [urllib3.connectionpool] Retrying (Retry(total=6, connect=1, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca0b5940>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/ring_devices
2024-05-28 01:05:59.926 WARNING (SyncWorker_40) [urllib3.connectionpool] Retrying (Retry(total=5, connect=0, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffed1a9bcb0>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:06:07.779 WARNING (SyncWorker_20) [urllib3.connectionpool] Retrying (Retry(total=5, connect=0, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffec9e32720>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/ring_devices
2024-05-28 01:06:14.909 WARNING (SyncWorker_21) [urllib3.connectionpool] Retrying (Retry(total=9, connect=4, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca466f90>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:06:23.912 WARNING (SyncWorker_21) [urllib3.connectionpool] Retrying (Retry(total=8, connect=3, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca0b7aa0>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:06:36.916 WARNING (SyncWorker_21) [urllib3.connectionpool] Retrying (Retry(total=7, connect=2, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffed1a99a60>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:06:57.919 WARNING (SyncWorker_21) [urllib3.connectionpool] Retrying (Retry(total=6, connect=1, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca464350>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:15:47.916 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching active dings data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/dings/active: HTTPSConnectionPool(host='api.ring.com', port=443): Max retries exceeded with url: /clients_api/dings/active (Caused by ReadTimeoutError("HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)"))
2024-05-28 01:15:57.909 WARNING (SyncWorker_1) [urllib3.connectionpool] Retrying (Retry(total=9, connect=4, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffedbf454f0>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:15:59.857 ERROR (MainThread) [homeassistant.components.canary.coordinator] Error requesting canary data: HTTPSConnectionPool(host='api.canaryis.com', port=443): Max retries exceeded with url: /v1/locations/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca9bf650>: Failed to establish a new connection: [Errno -3] Try again'))
2024-05-28 01:16:06.914 WARNING (SyncWorker_1) [urllib3.connectionpool] Retrying (Retry(total=8, connect=3, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca9bc920>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:16:19.920 WARNING (SyncWorker_1) [urllib3.connectionpool] Retrying (Retry(total=7, connect=2, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca465850>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:16:24.763 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching devices data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/ring_devices: HTTPSConnectionPool(host='api.ring.com', port=443): Max retries exceeded with url: /clients_api/ring_devices (Caused by ReadTimeoutError("HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)"))
2024-05-28 01:16:40.923 WARNING (SyncWorker_1) [urllib3.connectionpool] Retrying (Retry(total=6, connect=1, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca97b860>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:17:17.928 WARNING (SyncWorker_1) [urllib3.connectionpool] Retrying (Retry(total=5, connect=0, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca05b200>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:17:29.762 WARNING (SyncWorker_53) [urllib3.connectionpool] Retrying (Retry(total=9, connect=4, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffec9f07230>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/ring_devices
2024-05-28 01:17:32.911 WARNING (SyncWorker_49) [urllib3.connectionpool] Retrying (Retry(total=9, connect=4, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca4d5340>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/dings/active
2024-05-28 01:17:38.767 WARNING (SyncWorker_53) [urllib3.connectionpool] Retrying (Retry(total=8, connect=3, read=0, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ffeca0ebf50>: Failed to establish a new connection: [Errno -3] Try again')': /clients_api/ring_devices
2024-05-28 01:31:01.558 ERROR (Recorder) [homeassistant] Error doing job: Unclosed connection
2024-05-28 02:28:34.004 ERROR (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Error reading from socket.
2024-05-28 02:28:34.004 WARNING (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Error communicating with socket, resetting connection
2024-05-28 02:28:34.018 ERROR (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Failed to connect to service HostServiceInfo(host='192.168.1.250', port=8009), retrying in 5.0s
2024-05-28 02:39:59.216 WARNING (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Heartbeat timeout, resetting connection
2024-05-28 02:40:29.242 ERROR (Thread-12) [pychromecast.socket_client] [Loft TV(192.168.1.250):8009] Failed to connect to service HostServiceInfo(host='192.168.1.250', port=8009), retrying in 5.0s
2024-05-28 02:54:31.933 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching active dings data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/dings/active: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2024-05-28 06:54:37.930 ERROR (MainThread) [homeassistant.components.ring.coordinator] Error fetching active dings data: Error communicating with API: Unknown error during query of url https://api.ring.com/clients_api/dings/active: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2024-05-28 07:30:05.740 ERROR (stream_worker) [homeassistant.components.stream.stream.test_stream] Error from stream worker: Error opening stream (INVALIDDATA, Invalid data found when processing input) http://pinas.local:1984/webrtc.html?src=Front+Door&media=video+audio
2024-05-28 07:30:15.746 ERROR (stream_worker) [homeassistant.components.stream.stream.test_stream] Error from stream worker: Error opening stream (INVALIDDATA, Invalid data found when processing input) http://pinas.local:1984/webrtc.html?src=Front+Door&media=video+audio
2024-05-28 07:31:41.986 ERROR (stream_worker) [homeassistant.components.stream.stream.test_stream] Error from stream worker: Stream ended; no additional packets
2024-05-28 07:31:54.674 ERROR (stream_worker) [homeassistant.components.stream.stream.test_stream] Error from stream worker: Stream ended; no additional packets

Additional information

No response`

[Workaround Found]:

I have resolved this issue by grabbing a random web url of a random photo from some random website and attaching that as the snapshot url. The live url is your camera url. The live switch stays off and only goes on when i view the camera, and then goes off when I exit. Recording is now possible.

The main issue, is that the generic webcam snapshot url doesnt accept the snapshot url of the ring devices, so you have to use a generic image url.

@bonstio
Copy link

bonstio commented Jun 3, 2024

Same issue here.

@jowo1217
Copy link

jowo1217 commented Aug 1, 2024

I have the same issue. When Livestream is turned off it switches back on immediately and Ring battery drains quickly

@Justnthenick
Copy link
Author

Justnthenick commented Aug 2, 2024

I have resolved this issue by grabbing a random web url of a random photo from some random website and attaching that as the snapshot url. The live url is your camera url. The live switch stays off and only goes on when i view the camera, and then goes off when I exit. Recording is now possible.

The main issue, is that the generic webcam snapshot url doesnt accept the snapshot url of the ring devices, so you have to use a generic image url.

@Justnthenick Justnthenick changed the title Generic Camera keeps ring Live Stream switch always on. Generic Camera keeps ring Live Stream switch always on. [Workaround Found] Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants