home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.92k stars 29.58k forks source link

TP-Link HS220 Failed Setup Error 'Unable to Query the device:" #122109

Closed drew1667 closed 1 month ago

drew1667 commented 1 month ago

The problem

One of my H220 Switches stopped working in HA. I have 14 other Kasa Home devices integrated into HA.

What version of Home Assistant Core has the issue?

core-2024.7.2

What was the last working version of Home Assistant Core?

core-2024.7.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

tp-link

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tplink/

Diagnostics information

Failed setup. will retry: ('Unable to query the device: 192.168.1.XXX: unexpected character: line 1 column1 (char 0)', JSONDecodeError('unexpected character: line 1 column 1(char0)'))

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @rytilahti, @bdraco, @sdb9696, mind taking a look at this issue as it has been labeled with an integration (tplink) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `tplink` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign tplink` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tplink documentation tplink source (message by IssueLinks)

dani-rodr commented 1 month ago

There are other issues filled related to this and it seems that the workaround is too block internet access to this Tapo/TP Link devices, for now

MikeJoss commented 1 month ago

Blocking internet access for these seems to have worked for me.

jvistola commented 1 month ago

for me too

drew1667 commented 1 month ago

Is there documentation on how to do this? I am assuming it would be done through the Kasa app. Thanks!

dani-rodr commented 1 month ago

@drew1667 blocking the device's internet access can br done in your router. The step could vary from model to model

drew1667 commented 1 month ago

@dani-rodr I realized I was over thinking it. blocked at my router. Works so far. Thanks!

sdb9696 commented 1 month ago

Home assistant core 2024.7.3 has just been released and should fix the issues that have occurred over the last few days due to tplink throttling their cloud services. After upgrading I would recommend power cycling any devices that are having issues as they get themselves into a bad state after encountering the throttling.