TP-link KASA switch problem

I have half a dozen KASA switches in use, all controlled by the TP-link Smart Home integration. They were initially configured by the kasa python app, although I cannot remember what I did. I have a vague memory of having to pick an encryption type .. “2”, maybe .. but I could also be way off base.

Anyway, everything has been fine for months, maybe years, until today.

Today, we had a power failure .. not unusual. What was unusual was the way it came back. on-off .. on-off .. onoffonoffonoff .. on-off about twenty times before finally settling on.

Almost everything came back except one Kasa switch. Got a weird error.

Fine, delete it and rediscover. Got a similar weird error.

Connection error: Unsupported device 192.168.2.62 of type SMART.KASASWITCH with encrypt_scheme EncryptionScheme(is_support_https=False, encrypt_type='TPAP', http_port=80, lv=2)

I have no idea where to go from here. I’d happily go back to the kasa python command line .. if I knew what to type!

What I did try was kasa --ipaddress sysinfo for the “bad” switch and another switch right beside it, purchased at the same time, configured at the same time.

Very different output generated!

Output shown here.

Discovering device 192.168.2.62 for 10 seconds
== Unsupported device ==
	== Discovery Result ==
	Device Type:        SMART.KASASWITCH
	Device Model:       HS200(US)
	IP:                 192.168.2.62
	MAC:                D8-44-89-61-5F-3C
	Device Id (hash):   bc1a905eb712c96f2cfe8041f0eb53c1
	Supports IOT Cloud: True
	OBD Src:            tplink
	Encrypt Type:       TPAP
	HTTP Port:          80
	Login version:      2

[bold red]Unable to create device for 192.168.2.62[/bold red]
Discovering device 192.168.2.50 for 10 seconds
== System info ==
{'auto_off_remain_time': 0,
 'auto_off_status': 'off',
 'avatar': '',
 'default_states': {'state': {'on': False}, 'type': 'custom'},
 'device_id': '803B5690E906747C2F45E706011C809A22BAE379',
 'device_on': False,
 'fw_id': '00000000000000000000000000000000',
 'fw_ver': '1.0.3 Build 240723 Rel.192622',
 'has_set_location_info': False,
 'hw_id': '6AF62D27B2AD605568EB99FACA40C4F5',
 'hw_ver': '5.26',
 'ip': '192.168.2.50',
 'lang': '',
 'latitude': -1879048193,
 'longitude': -1879048193,
 'mac': 'D8-44-89-61-55-F5',
 'model': 'HS200',
 'nickname': '',
 'oem_id': '0FCE0680722397453338BE10825E6B91',
 'on_time': 0,
 'overheat_status': 'normal',
 'region': '',
 'rssi': -37,
 'signal_level': 3,
 'smart_switch_state': False,
 'specs': '',
 'ssid': 'U3R1ZGlvMS0y',
 'time_diff': 0,
 'type': 'SMART.KASASWITCH'}

Any thoughts appreciated.

Thanks for the reply!

They both used to work, perfectly, for a couple of years. Both set up the same way at the same time.

This was not a “flicker” though, this was FIFTY flickers in groups of 5 or 10 in rapid succession, then power was back on for six hours, then off for another four then finally back on for good .. after another 50 flickers.

Half a dozen devices .. mostly Zigbee, strangely .. needed to be readded when power came back on for good.

However, whatever state this device is in resists kasa python programming, and I haven’t found a way to do a hard factory reset.

More progress, but no good news.

Again, I am unable to perform a factory reset. Pressing and holding the RESET button (from 10 seconds to up to a minute) as the docs describe does not do a factory reset. I know because it maintains connectivity to the wireless network, even when the light flashes to say it’s NOT connected.

So I added the switch to the TP-Link app, using the device’s built in WiFi access point, and all went smoothly. The app is able to turn the switch on and off.

(The above statement is confusing to me, because it showed a connection to the router while at the same time advertising its own SSID. Not at all sure how that works.)

I then enabled Third Party Integrations in the TP-Link app and tried to add the switch to Home Assistant, but this did not succeed. It appears to be a password failure, which is disappointing since I JUST logged in with that very ID and password to the TP-Link app!

One unexpected thing is clear from the app though; the unit got a firmware update. I’m not at all sure how! And that firmware has added an encryption type that’s incompatible with the Home Assistant integration, no matter what the TP-Link docs might suggest.

(TP-Link has pretty docs, and lots of them, but they’re just not very accurate.)

So, I have done two things.

Added all the TP-Link devices in the house to the router “outside block” table. No more unexpected firmware “downgrades”.

Ordered a whole bunch of Sinope Zigbee switches.

Most of my house uses Sinope switches, and they’re spectacular. And a bit expensive. And spectacular. For half a dozen switches though, I cheaped out and went TP-Link.

Now, at the time, it didn’t seem like a cheapout. The TP-Link switches are twice the price of crappy Chinese switches; I thought I was still buying quality. And to be fair, they ARE a quality piece. But like so many manufacturers, you have to be part of their ecosystem.

“Forget this Smart Home nonsense, just use OUR app” seems to be an increasingly common thread.

So, problem fixed; TP-Link HS200 tossed into the trash, Sinope replacement on the way.

I’m an old man with limited hours left in this life, and I’m not about spend any more of them trying to rescue a $20 light switch!

I have the exact same problem. Wth. They sold yosn of these because they were manageble by third party app and now they bite the hand that feeds you.

Yeah it’s the newest firmware, 1.4.0, it’s nog longer compatible with HA. What you can do is flash OpenBeken, so you don’t need TPlink anymore, here’s my writeup: Flashing tplink HS200 switches to OpenBK7231T

Go to in your Kaza app and settings and turn on third party compatibility

Yeah doesnt help on 1.4.0