Skip to content

PyTapo KLAP Error #3 #1189

@homeassistantlocal-beep

Description

Description

Unable to connect to Tapo: Cameras Control controller: PyTapo KLAP Error #3: ('Device connection error: XXX.XXX.XXX.XXX: Server disconnected', ServerDisconnectedError('Server disconnected'))

Reproduction Steps

  1. Install Tapo: Cameras Control integration (version 7.1.3) via HACS.

  2. Go to Settings → Devices & Services → Add Integration.

  3. Select "Tapo: Cameras Control".

  4. Enter Tapo account email and password.

  5. Enter camera IP address (192.168.0.121).

  6. Complete setup.

  7. Integration attempts to connect.

  8. Error appears:

    PyTapo KLAP Error Invalid Config #3:
    ('Device connection error: 192.168.0.121: Server disconnected',
    ServerDisconnectedError('Server disconnected'))

Additional notes:

  • Camera model: Tapo C206
  • Camera works correctly in official Tapo app.
  • Camera works with official Home Assistant TP-Link Smart Home integration.
  • Camera and Home Assistant are on the same LAN.
  • RTSP works correctly.
  • Factory reset did not resolve the issue.

Expected behavior

Camera should connect locally via KLAP like other supported Tapo models.

If applicable, add error logs.

2026-02-11 08:22:24.674 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: PyTapo KLAP Error #3: ('Device connection error: 192.168.0.121: Server disconnected', ServerDisconnectedError('Server disconnected'))
2026-02-11 08:22:36.323 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: PyTapo KLAP Error #3: ('Device connection error: 192.168.0.121: Server disconnected', ServerDisconnectedError('Server disconnected'))
2026-02-11 08:22:46.752 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: PyTapo KLAP Error #3: ('Device connection error: 192.168.0.121: Server disconnected', ServerDisconnectedError('Server disconnected'))
2026-02-11 08:23:06.944 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: PyTapo KLAP Error #3: ('Device connection error: 192.168.0.121: Server disconnected', ServerDisconnectedError('Server disconnected'))
2026-02-11 08:23:47.445 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: PyTapo KLAP Error #3: ('Device connection error: 192.168.0.121: Server disconnected', ServerDisconnectedError('Server disconnected'))
2026-02-11 08:25:07.662 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: PyTapo KLAP Error #3: ('Device connection error: 192.168.0.121: Server disconnected', ServerDisconnectedError('Server disconnected'))
2026-02-11 08:26:27.927 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: PyTapo KLAP Error #3: ('Device connection error: 192.168.0.121: Server disconnected', ServerDisconnectedError('Server disconnected'))
2026-02-11 08:27:23.400 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: PyTapo KLAP Error #3: ('Device connection error: 192.168.0.121: Server disconnected', ServerDisconnectedError('Server disconnected'))
2026-02-11 08:27:28.603 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: PyTapo KLAP Error #3: ('Device connection error: 192.168.0.121: Server disconnected', ServerDisconnectedError('Server disconnected'))
2026-02-11 08:27:39.016 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: PyTapo KLAP Error #3: ('Device connection error: 192.168.0.121: Server disconnected', ServerDisconnectedError('Server disconnected'))
2026-02-11 08:27:59.321 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: PyTapo KLAP Error #3: ('Device connection error: 192.168.0.121: Server disconnected', ServerDisconnectedError('Server disconnected'))
2026-02-11 08:28:39.549 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: PyTapo KLAP Error #3: ('Device connection error: 192.168.0.121: Server disconnected', ServerDisconnectedError('Server disconnected'))

Device Firmware

1.2.1 Build 250919 Rel34131n

Integration Version

7.1.3

Using stream component

Yes

Does camera work via official integrations?

Yes

Camera has all attributes filled out in developer tools

No

HASS Environment

HA OS x86

Search for similar issues

Yes

Additional information

Network Setup

  • Camera and Home Assistant on same LAN
  • Static IP assigned
  • No VLAN isolation
  • No guest network
  • Port 554 open
  • RTSP works correctly

What I already tried

  • Factory reset of the camera
  • Reboot router
  • Reboot Home Assistant
  • Reinstall integration
  • Re-enter credentials
  • Close Tapo mobile app completely
  • Assign static IP
  • Test connectivity (ping OK)

Actual behavior

Handshake starts, but the camera immediately disconnects.
Server closes connection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions