Closed jhalbrecht closed 6 years ago
In issue Cannot get working with smartPlug_CE_HS100(AU)_HS110(AU) #22 I found a fix by @kchiem
In tplink-smartplug.py add this struct and in the 'def encrypt' change the 'result' line
from struct import pack
#[...]
# result = "\0\0\0\0"
result = pack('>I', len(string))
It works on my machine! tplink-smartplug.py needs a merge.
I've purchased and received (today 12/16/2017) a tp-link smart plug HS 100(US) It is version 2.0 according to label on back of device.
I installed the Kasa app on my android phone configuring it for Local only. I didn't create a cloud account. I can turn the switch on and off with the Kasa app.
I cloned the Master branch tplink-smartplug repository. I learned the ip address of the smart plug and tried the tplink-smartplug.py script. I'm apparently not receiving anything back, nor am I seeing an error.
I've tried info, on and off and also on a couple different hosts. Also tried it with firewall off in case port was blocked. I can telnet to port 9999.
Any suggestions?