JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
1.13k stars 89 forks source link

Unable to connect to Tapo #270

Closed migromao closed 1 year ago

migromao commented 1 year ago

Description

After upgrading to the recent Home Assistant Core 2023.1 .there are several occurrences of error:

Unable to connect to Tapo: Cameras Control controller: HTTPSConnectionPool(host='192.168.68.126', port=443): Max retries exceeded

Reproduction Steps

there are no actions that I'm taking to reproduce the error as I've already updated the custom_component and start fresh and after a while, the error is being shown once again. if Home assistant is restarted , the error is still be shown and I need to reboot the cameras. the rtsp stream is still working via webrtc-camera component

Expected behavior

I would expect no error and te service calls would be working

If applicable, add error logs.

First occurred: 20:29:52 (230 occurrences) Last logged: 22:55:42

Unable to connect to Tapo: Cameras Control controller: HTTPSConnectionPool(host='192.168.68.126', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f75d489d0>: Failed to establish a new connection: [Errno 111] Connection refused')) Unable to connect to Tapo: Cameras Control controller: HTTPSConnectionPool(host='192.168.68.126', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f71809450>: Failed to establish a new connection: [Errno 111] Connection refused')) ...

Device Firmware

1.0.17 Build 201111 Rel.74534n(4555)

Using stream component

Yes

Does camera work via official integrations?

Yes

Camera has all attributes filled out in developer tools

No

HASS Environment

HA Core instalation

Search for similar issues

Yes

Additional information

I'm able to see the stream (via rtsp) but not able to do any other service call ( move, pan, alarm , motion sensor , etc ...)

JurajNyiri commented 1 year ago

Cameras are overloaded or the network is not stable.

migromao commented 1 year ago

Hi JurajNyiri,

th integration was working fine until the HA upgrade. the network is a mesh solution and without stability issues. about the overloaded, I can only say that nothing changed besides the HA version. Would it be something on the HA side ?

migromao commented 1 year ago

thank you for your fantastic work on this

JurajNyiri commented 1 year ago

Camera is refusing the connection

Failed to establish a new connection: [Errno 111] Connection refused

I can't see a way how HA could affect it. That being said I have not yet updated to latest HA and do not intend to until February.

eprompc commented 6 months ago

Any update?