The TP-Link Plugin brings TP-Link SmartPlugs into indigo.
This is a trial release. I know it needs work and I'd appreciate your input.
A SmartPlug is a WiFi enabled plug, similar in behavior to an Insteon or X-10 plug, so it is modeled as a "relay" (on/off) type Device.
Download the plugin here: https://github.com/jtburgess/indigo-TP-LInk/releases/download/0.1.2/TP-Link-Device.indigoPlugin.zip.
Install by double-clicking the downloaded plugin.
You'll need to know the IP address of your SmartPlug, which you can get from your DHCP server, typically your gateway/Wifi Router.
It's a good idea to configure a static IP for SmartPlugs on the DHCP server if it supports that capability.
This will make sure it always gets the same address should the router reboot or otherwise has its DHCP cache cleared.
Then add a new Device. Select Type = "TP-Link Device", and Model = "SmartPlug".
Aside - There may be other TP-Link device types. If you know of any, let me know.
It will ask for the address.
That's it!
Click On to turn it on, and Off to turn it off.
Repeat for other SmartPlugs.
Since a SmartPlug can also be controlled by Alexa or the "Kasa" app, the "Send Status Request" button will update Indigo with the on/off state returned from the device itself. It also prints complete information about the device into the Indigo Log.
Known bug: The state value shows as" true"/"false" when you turn it on/off, but shows as "on"/"off" as returned by status. I'm working on it. Suggestions on a fix are welcomed.