JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
971 stars 81 forks source link

The integration does not load (TAPO C420). #621

Open Pippo1989 opened 1 week ago

Pippo1989 commented 1 week ago

Description

When Home Assistant starts, the integration struggles to load, showing "initializing" for a certain period of time (indefinitely long).

Also, if the startup is successful, you can see that many camera and hub entities are no longer available.

Cameras 1

Hub

Reproduction Steps

=/=

Expected behavior

=/=

If applicable, add error logs.

home-assistant_tapo_control_2024-07-07T15-09-15.196Z.log

Device Firmware

1.2.17 Build 20240305 rel.75572 (cameras) - 1.3.3 Build 20240604 rel.61598 (hub)

Integration Version

5.4.26

Using stream component

No

Does camera work via official integrations?

N/A

Camera has all attributes filled out in developer tools

No

HASS Environment

Hassio on Raspberry Pi4

Search for similar issues

Yes

Additional information

No response

JurajNyiri commented 1 week ago

Did this start happening after an update? If so, which one? I do not have these hub cameras so I cannot verify them myself.

Pippo1989 commented 1 week ago

Did this start happening after an update? If so, which one? I do not have these hub cameras so I cannot verify them myself.

Yes, it most likely happened after the latest updates (O.S. and Core updates, if I remember correctly, but probably Supervisor too).

Latest updates

JurajNyiri commented 1 week ago

Did it happen after integration version update? Could you rollback and note down the versions where it worked?

Fruitsmart commented 1 week ago

5.4.25 works and 5.4.26 works not.

harobertocpf commented 2 days ago

Podemos volver a la versión anterior 5.4.25?

Gracias

JurajNyiri commented 2 days ago

Could you please manually remove following parts from your installed code on the latest version one by one and after each time see if it helps:

https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/compare/5.4.25...5.4.26

First remove this green part in switch.py

Screenshot 2024-07-15 at 13 11 31

Then remove these:

Screenshot 2024-07-15 at 13 11 57

Finally if it still does not work, replace these greens with red:

Screenshot 2024-07-15 at 13 12 23