Integrate KASA in Tasker, need help with Token and deviceID
So, I'm playing with Tasker and trying to make some mods in my house, just like I use to do with IFTTT.
Let's say the lurning curve is steep, but I've been able to manage some basic formula.
With Tasker, I'm now able to get my token ID from tplink website and now my goal is to get my device ID of a switch and a bulb.
The thing is, I enter a formula in the HTTP Shortcut apps as a cURL, but it always say thay my token expired. How long does this token, to identify my app on the cloud, stay "alive"? It seems expired after only 5sec.
Also, is there a way to get my device ID an other way?
Thank you
My reference:
https://itnerd.space/2017/02/26/control-your-tp-link-hs100-smartplug-with-tasker/
https://itnerd.space/2017/06/19/how-to-authenticate-to-tp-link-cloud-api-with-tasker/
https://itnerd.space/2017/06/19/how-to-authenticate-to-tp-link-cloud-api/
Those are all old, but with the steps in those links and comments on the bottom of the page, I managed to create a task that give me my toekn. But each time I press it, it's a new token. Some year's ago, the token was valid for months, so I'm like at a dead end now. I can't find up to date information