This plugin is designed to help you integrate your IoT TP-Link Kasa wireless plug into OctoPrint. The basis of the plug-in is to enable you to automatically switch-off your 3D printer once a print has successfully completed.
- Python >=3.7, <4.0
Install via the bundled Plugin Manager or manually using this URL:
https://github.com/jamesmccannon02/OctoPrint-Tplinkautoshutdown/archive/master.zip
Installation can be achieved through two options. The first and simplest option is to use the plugin manager within OctoPrint and search for TpLinkHandler. Then upon installation all you need to do is re-start you device and the plugin will be installed and ready for use.
To manually install your plugin, follow these steps:
- Open settings,
- Click on ‘Plugin Manager’
- Now click ‘Get More’
- A window will then pop-up. There will be a text box with ‘Enter URL…’. Paste the URL from above. This URL must be the URL from this README.md file not the URL of the webpage within your browser.
- Finally click install
- Restart OctoPrint and you are ready.
Currently, the plugin is always activated. This means that whilst activated within the Plugin Manager, the 3D printer will turn off automatically upon completion of a 3D Print. Additionally, there will also be a ‘Turn on’ and a “Turn off” button within the navigation bar at the top of the OctoPrint page. This allows for manual control of the device.
- Within the near future, you will be able to control how your printer reacts once a print has finished, paused, started etc.
- Additionally, an automatic search for your IoT device will be added. This will save you as the user searching for your Smart Plug.
- Integration will be added to control other Kasa devices including smart lights, bulbs and power strips.
- Any other recommendations are welcomed.
To connect your Kasa device, you will need to click the settings icon within the navigation bar and then down the right-hand side of your screen (under ‘plugins’) you can select the ‘TpLinkHandler’. Then type the IP address of your smart-plug and click save. Now you are ready.
Currently, the plugin is always activated. This means that whilst activated within the Plugin Manager, the 3D printer will turn off automatically upon completion of a 3D Print.
Although, this plugin may work with a number of other Kasa devices, this plugin has been designed to definitively work with the following devices.
- HS100
- HS103
- HS105
- HS107
- HS110
- James D. McCannon - https://mccannon.me.uk
Contributions (be it adding missing features, fixing bugs or improving documentation) are more than welcome, feel free to submit pull requests!