Using the TP-Link Kasa API with Shortcuts

Hey Everyone,

Found this great blog post about someone that managed to reverse engineer the TP-Link Kasa API.

Using code snippets from the posts I managed to get the API to work in Shortcuts.

You will either need the Actions App or another way to generate a UUID.

Generate UUID

Get Kasa API Token

Get Kasa Device Details - Use this Shortcut to get the App Server URL and the Device IDs

Turn On/Off Kasa Device

Turn On & Off Kasa Power Strip Plugs (KP303)

If you figure anything else out about the API please let me know as there isn’t any official public documentation on it. :nerd_face:

Enjoy!

Aidan