JurajNyiri / HomeAssistant-Tapo-Control

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

"Migration Error" / "Unknown Error" for Tapo C200 Cameras #483

Closed megalotee closed 7 months ago

megalotee commented 7 months ago

Description

The HA integration for my two Tapo C200 Cameras stopped working, showing a "Migration Error" for both cameras. Trying to re-install the cameras, I get "Unknown Error" when submitting the Cam's credentials. The credentials are confirmed ok, as the rtsp network stream works in VLC. It was working with HA all up-to-date in August 2023. I do not know which HA version broke it since then, only switched them on right now on HA 2023.12.0. Trying a VM with the last November HA version showed the same error.

Reproduction Steps

Just open the Tapo integration, it shows the "Migration error".

Expected behavior

No error, camera stream should be visible.

If applicable, add error logs.

2023-12-08 11:40:41.006 DEBUG (MainThread) [custom_components.tapo_control] [isRtspStreamWorking][192.168.230.10] Image data received. 2023-12-08 11:40:41.006 DEBUG (MainThread) [custom_components.tapo_control] [ADD DEVICE][192.168.230.10] RTSP stream works. 2023-12-08 11:40:41.006 DEBUG (MainThread) [custom_components.tapo_control] [ADD DEVICE][192.168.230.10] Testing control of camera using Camera Account. 2023-12-08 11:40:42.606 ERROR (MainThread) [custom_components.tapo_control] Error communicating with Tapo Camera. Status code: 500 2023-12-08 11:40:42.607 ERROR (MainThread) [custom_components.tapo_control] Error communicating with Tapo Camera. Status code: 500 2023-12-08 11:40:42.607 DEBUG (MainThread) [custom_components.tapo_control] [ADD DEVICE][192.168.230.10] Showing config flow for Camera Account.

Device Firmware

1.3.9

Integration Version

5.4.12

Using stream component

Yes

Does camera work via official integrations?

Yes

Camera has all attributes filled out in developer tools

Yes

HASS Environment

HAOS

Search for similar issues

Yes

Additional information

No response

JurajNyiri commented 7 months ago

Your cameras updated, remove them, download latest version of integration and add them back.

5.4.12

Also based on the logs, you are not using the version you declared you are using.

megalotee commented 7 months ago

THANKS! Working now. Apologies for taking your time - wrong version was due to looking at wrong VM.