JurajNyiri / HomeAssistant-Tapo-Control

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

С200 - invalid continuation byte #489

Open tariya-garker opened 6 months ago

tariya-garker commented 6 months ago

Description

Faced with the same error: 'utf-8' codec can't decode byte 0xd0 in position 4003: invalid continuation byte appears on the already added camera and if it is removed, with reboot, and add again

Reproduction Steps

probably update the camera software to 1.3.11 (the offer, since I did not notice exactly when it started)

Expected behavior

a stably working camera with its options

If applicable, add error logs.

home-assistant_tapo_control_2023-12-21T09-10-09.445Z.log Screenshot_117

Device Firmware

1.3.11

Integration Version

5.4.12

Using stream component

Yes

Does camera work via official integrations?

N/A

Camera has all attributes filled out in developer tools

No

HASS Environment

HAOS on Proxmox (on miniPC)

Search for similar issues

Yes

Additional information

I didn’t notice exactly when it started, for some time I didn’t follow the updates, then I read in the integration description that there were errors at 1.3.9 - I decided to update, but I didn’t know that the camera already had 1.3.11 - actually from one mistake, another came out as I suppose. I tried to remove the camera and add it again - with no result I tried to delete the integration and install it again - with no result there are no restrictions for the camera on the router, it works stably in the native application, the stream also gives out in the Surveillance Station, the error appeared BEFORE adding the Surveillance Station

rark-ha commented 5 months ago

I get the same error showing up.

image

If I trigger something on the C200 camera (like auto-track etc) in an automation, the automation will abort itself quoting the "'utf-8' codec can't decode byte 0xd0 in position 4003: invalid continuation byte" error.

foxnewmen commented 4 months ago

After setting up the IP address, login and password, the integration does not find any devices or objects. The mistaken comment is: 'utf-8' codec can't decode byte 0xd0 in position 4112: invalid continuation byte Please help me solve the problem! Integration version: 5.4.15, Camera software version 1.3.11

JurajNyiri commented 4 months ago

In the logs of @rark-ha I see also camera being unavailable - host is unreachable. It is possible that the camera is overloaded or your network (wifi) is unstable for camera. Try removing everything using the camera except Home Assistant, restart the camera and try again.

If the issue persists with only HA being the only client, I will need access to the camera to debug further.

rark-ha commented 4 months ago

If the issue persists with only HA being the only client, I will need access to the camera to debug further.

Noting your comment, I looked to see if anything else was using the camera (nothing was). Looking inside of HA I had a couple of old automations that would take a snapshot and save the image on an event (e.g. when door opened, pan to door, take picture). Turning these couple of automations off, restarting HA, and monitoring the logs over the last couple of days I don't get the error message anymore.

The automation was pre the ability to access Tapo recordings from the HA Media setup.

infinitytec commented 3 months ago

I seem to be having this issue as well. If I do not move the camera at all (or, sometimes, allow auto-track) the camera seems stable, but if I tell it to move I will often see the camera reboot.

foxnewmen commented 3 months ago

Today I connected a new camera TAPO C100. Everything is connected and working perfectly in the integration. The problem persists only with the TAPO C200 camera. I already tried to reset it to factory settings, configured it again - all to no avail. Everything in the TAPO application works flawlessly.