Warning: Recent firmware version 1.1.0 for the HS100, HS110 have been reported to break the capability of this plugin to communicate with kasa devices. So far it seems to be only effecting UK version plugs, but could spread to other firmware variants.
Warning: Recent firmware updates for the HS103 breaks the use of this plugin with those devices. TP-Link may push the same firmware to other devices, but be warned that updating your devices firmware may break the use of this plugin. It appears this can be resolved by never connecting the plug to the cloud by following the steps outlined here.
Work inspired by OctoPrint-PSUControl and TP-Link WiFi SmartPlug Client, this plugin controls a TP-Link Smartplug via OctoPrint's nav bar. Currently known compatible models are the HS100, HS103, HS105, HS107, HS110, HS300, KP105, KP303, KP115. Other Kasa app based devices may work. Tapo series devices will not work with this plugin, and probably never will because of their closed communication.
Install via the bundled Plugin Manager or manually using this URL:
https://github.com/jneilliii/OctoPrint-TPLinkSmartplug/archive/master.zip
Once installed go into settings and enter the ip address for your TP-Link Smartplug device. Adjust additional settings as needed.
<ip>/<1 based socket index>
, ie 192.168.0.2/1 would control the first socket in the strip.@TPLINKON
and @TPLINKOFF
followed by the IP address of the plug. This option will only work for plugs with GCODE processing enabled. For example if your plug is 192.168.1.2 your gcode command would be @TPLINKON 192.168.1.21.0.1 (04/15/2021)
If you experience issues with this plugin or need assistance please use the issue tracker by clicking issues above.
Check out my other plugins here
I, jneilliii, programmed this plugin for fun and do my best effort to support those that have issues with it, please return the favor and leave me a tip or become a Patron if you find this plugin helpful and want me to continue future development.
No paypal.me? Send funds via PayPal to jneilliii@gmail.com