JurajNyiri / HomeAssistant-Tapo-Control

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

Offline device causes issues with other integrations #366

Closed Eilivers closed 1 year ago

Eilivers commented 1 year ago

Description

I have 3 P100 plugs added through Tapo Control integration, one of them is unplugged and offline. But the Tapo integration continuously tries to connect to the last one, and in the process making the communication with WLED API super slow/unstable.

Reproduction Steps

  1. Add a smart plug to HA
  2. Take the plug offline
  3. Look at the Supervisor logs for Failed to setup Error communication with API: Cannot connect to host <ip:port> ssl:default [Connect call failed ('<ip:port>)] Failed to setup Error communication with API: Cannot connect to host <ip:port> ssl:default [Network unreachable]
  4. Disable smart plug in integration, logs disappear and other integrations work fine again.

Expected behavior

I want the Tapo integration to poll less if the device is not online.

If applicable, add error logs.

update_coordinator.txt custom_components.tapo_control.init.txt wled_logs.txt

Device Firmware

1.1.5 Build 230324 Rel.143956

Using stream component

No

Does camera work via official integrations?

N/A

Camera has all attributes filled out in developer tools

No

HASS Environment

N/A

Search for similar issues

Yes

Additional information

Added the logs i got for WLED until i disabled the offline Tapo plug in integration.

JurajNyiri commented 1 year ago

Wrong repo. This one is for cameras.