plasticrake / homebridge-tplink-smarthome

TP-Link Smarthome Plugin for Homebridge
MIT License
467 stars 70 forks source link

Version 7.0.1 dropped my HS220 switches but my HS103 outlet are up #253

Open phodara opened 2 years ago

phodara commented 2 years ago

Is there an existing issue for this?

What happened?

I upgraded to version 7.01 and all my smart switches disappeared. running on an rpi Zero, it has been running for a month with no problems. I tried to roll back to previous version same problem.

What, if anything, has recently changed?

Only upgraded the plugin though I am not sure if Kasa upgraded the firmware in the background. Kasa firmware for the HS220 switch is v 1.0.3

Version

7.01

Node Version

v16.13.2

Homebridge Version

1.4.0

Which OS/Platform?

Other (Please describe)

Relevant log output

No errors in then logs

Configuration

I am using the default:
        {
            "platform": "TplinkSmarthome",
            "name": "TplinkSmarthome"
        },

I tried all the specific configs for mac address, ip address etc. nothing seemed to work.  What is strange is that the plugs are working
phodara commented 2 years ago

Tried specifying switch IPs specifically and setting discovery to UDP. Still no longer discovering the HS220 switches. The outlets works fine.

Tarnor commented 2 years ago

I have the same problem, but even stranger. One of my bulbs shows up, and most of my outlets show up. No switches. Really weird. Just came back from a trip and most everything dropped off HomeKit. Tried the next version - same thing. Rolled back to June 2021 version -- same. Wonder if Kasa changed something?

phodara commented 2 years ago

I think I found the issue at least for my environment. I am running Google Nest Mesh routers. I just changed the security to protocol from WPA2 to WPA3. What should happen is WPA2 devices should still be able to connect. I did see homebridge connected and accessible. I then decided to reinstall homebridge from scratch but when I did so the new install was not able to connect to the WPA3 network. I turned off WPA3 on my routers and was able to successfully reinstall homebridge and all the plugins including tplink and now everything is working fine. I think my RPi-Zero running homebridge has an issue with WPA3. I am interested if Tarnor is running WPA3.

Tarnor commented 2 years ago

Interesting thought and I honestly had no idea. But checking my Unifi Dream Machine, it seems like I'm only using WPA2.

Screen Shot 2022-03-04 at 12 46 57 PM
Tarnor commented 2 years ago

Maybe I should add that all of my lights, switches and outlets work fine via the Kasa app.

Also, I did a fresh install of Hoobs (4.0.31 I think), and restored the config from backup (TPLink 6.4) and although all of my Kasa stuff is there, it doesn't work. (Sidenote - tried a fresh install of 4.1.2 and it wouldn't even boot on my Pi0-2. Stuck at the rainbow screen).

Got a feeling that TP Link changed something but will wait to hear if any others have similar problems.

Not a big deal for me as I find the HomeKit app not very good anyway, and I have everything on timers in the Kasa App.

phodara commented 2 years ago

Interesting. My reinstall worked after switching off WPA3 and is still good. All my devices are discovered by homebridge and after I reconnected to homekit everything (wemo and Kasa) works with Siri. I like being able to give voice commands via Apple Watch. I may reinstall on a RPi 3 or 4 and see if the WPA3 issue is with the RPI Zero or the homebridge OS image.

On Fri, Mar 4, 2022 at 4:36 PM Tarnor the Hatchetman < @.***> wrote:

Maybe I should add that all of my lights, switches and outlets work fine via the Kasa app.

Also, I did a fresh install of Hoobs (1.64 I think), and restored the config from backup and although all of my Kasa stuff is there, it doesn't work. (Sidenote - tried a fresh install of 7.1.2 and it wouldn't even boot on my Pi0-2. Stuck at the rainbow screen).

Got a feeling that TP Link changed something but will wait to hear if any others have similar problems.

Not a big deal for me as I find the HomeKit app not very good anyway, and I have everything on timers in the Kasa App.

— Reply to this email directly, view it on GitHub https://github.com/plasticrake/homebridge-tplink-smarthome/issues/253#issuecomment-1059549382, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEJTDDLIW5OBFRIT7ITNWYTU6J663ANCNFSM5PVD4VCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Paul Hodara

salmundo11 commented 2 years ago

I have several HS220 switches, along with other TP Link devices, all working well. Could be the router implementation of WPA3 compatible mode. I have an eero router, their first go at WPA3 has issues, all better now.

CaptainGumbs commented 1 year ago

I have 2 HS220 dimmer switches. I am running “homebridge-tplink-smarthome hs220“ latest version. I only get light on or off, not getting the dimming feature, any idea how to fix this?