JurajNyiri / HomeAssistant-Tapo-Control

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

C420 Cameras and H200 Hub unavailable after update to 5.3.0-5.3.3 #392

Closed antstyl closed 12 months ago

antstyl commented 12 months ago

Description

Right after update to 5.3.0 and 5.3.1 the two cameras C420 and the hub H200 dont work anymore. In the Integrations section, it says "Failed Setup, will retry"

In the logs I get this:

Logger: custom_components.tapo_control Source: custom_components/tapo_control/init.py:691 Integration: Tapo: Cameras Control (documentation, issues) First occurred: 12:19:18 μ.μ. (4 occurrences) Last logged: 12:21:55 μ.μ.

Unable to connect to Tapo: Cameras Control controller: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

Reproduction Steps

  1. Go to Devices & Services
  2. Go to Tapo: Cameras Control

Expected behavior

Cannot see battery status (as I used to) and cannot change anything as all are unavailable

If applicable, add error logs.

No response

Device Firmware

1.2.21 Build 20230731 rel.51223 (HUB) and 1.2.11 Build 20230726 rel.66682 (Cameras)

Using stream component

Yes

Does camera work via official integrations?

Yes

Camera has all attributes filled out in developer tools

Yes

HASS Environment

VM in Proxmox

Search for similar issues

Yes

Additional information

No response

JurajNyiri commented 12 months ago

Hi, wait for the retries and try rebooting the camera, it might be overloaded.

JurajNyiri commented 12 months ago

IF, and only IF it does not come up after rebooting camera and waiting for at least 10 minutes, try installing https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/releases/tag/5.3.0.beta.3 and let me know how it goes in either case.

JurajNyiri commented 12 months ago

If issue persists, please enable debug logs.

logger:
  default: critical
  logs:
    custom_components.tapo_control: debug

Upload the full log here.

antstyl commented 12 months ago

After at least 10 mins and reboot of Home assistant and of Hub, problem still persists.

Will try to install the older version (just copy and replace the files in config/custom_components folder? ) and let you know.

For the records, if this has any meaning to you, there is an sd card in the Hub.

JurajNyiri commented 12 months ago

Yes you can also install betas via HACS.

JurajNyiri commented 12 months ago

Also rollback to last working version to verify it is not a camera issue please.

antstyl commented 12 months ago

Just rolled back to previous state through back up. In 5.2.4 it works ok.

Do you want me to update step by step in order to see where the problem starts?

These are the versions I have in HACS:

image

JurajNyiri commented 12 months ago

Please try https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/releases/tag/5.3.0.beta.3 and https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/releases/tag/5.3.0.beta.5. You will need to install it manually if you do not see it in HACS.

antstyl commented 12 months ago

Ok will do it this night and let you know.

JurajNyiri commented 12 months ago

You can also install pytapo library on python. python3 -m pip install pytapo and see if this works:

from pytapo import Tapo

# Camera
user = "admin"  # admin user
password = ""  # cloud password
host = "192.168.100.70"  # ip of the camera, example: 192.168.1.52

tapo = Tapo(host, user, password, password)

print(tapo.getMost())
JurajNyiri commented 12 months ago

Also please test with 5.3.3.

antstyl commented 12 months ago

Problem persists after update to 5.3.3 and one more Camera (C310) became unavailable.

Also new error in logs, as described in #393

JurajNyiri commented 12 months ago

Follow all steps above otherwise I cannot help you.

antstyl commented 12 months ago

Ok I will, just wanted to test first the 5.3.3 and then go back.

Will keep you posted. thanks.

CAP-Team commented 12 months ago

5.3.0 works fine for my C310, 5.3.3 doesn't work.

propi62 commented 12 months ago

5.3.3 all cameras broken in ha. camera reboot does not fix it. i dont know how to revert back to 5.3.0.

JurajNyiri commented 12 months ago

Released 5.3.4 fixing the https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/issues/393, it would also affect the C420. @antstyl Please try to see if C420 works now and post full logs if not.

antstyl commented 12 months ago

This version 5.3.4 fixed also the problem with C420 and the Hub H200.

many many thanks.

JurajNyiri commented 12 months ago

Thank you for testing @antstyl!

Closing as this issue is now fixed in 5.3.4.