- Posted on
Thu Dec 10, 2020 7:05 am
-
johnpolasek
offline
-
- Posts: 911
- Joined: Aug 05, 2011
- Location: Aggieland, Texas
I ordered a Kasa KL100 bulb on Amazon, since it's less that $15, the plugin finds the device, but it gets a "not in dict" error on trying to save it... are lights not in the allowable devices?
Update: turned on debug and looked into hacking my way into adding the bulb myself; the get_sysinfo dict is slightly different in that lights do not include the mac , although they do have a mic-mac item which holds the MAC address without the colons and the relay_state:0/1 is replaced with a light_state:dict which includes not only on_off:0/1 but a whole host of items concerning color . I have gotten the plugin to accept the light and read it's on_off state, but can't get the protocol to accept the set command... and unfortunately, I don't understand JSON well enough to figure out the correct syntax... I also looked at replacing the softScheck tplink-smart-plug code with the pytho0n-Kasa tpling-device code below the plugin, but couldn't make sure all the changes were correct to deal with the relay_state specific items in plugin;py... I can give the dict to anyone who knows the code better and is interested.