mihai-dinculescu / tapo

Unofficial Tapo API Client. Works with TP-Link Tapo smart devices. Tested with light bulbs (L510, L520, L530, L610, L630), light strips (L900, L920, L930), plugs (P100, P105, P110, P115, P300), hubs (H100), switches (S200B) and sensors (KE100, T100, T110, T300, T310, T315).
MIT License
339 stars 35 forks source link

Error: Tapo(InvalidCredentials) #111

Closed khandieyea closed 11 months ago

khandieyea commented 12 months ago

Hey,

Been trying to figure out how best to get access to my P110s to pull energy stats. Paraphrasing off the internet here - something changed in the TAPO firmware at some point in the past and now most API implementations no longer work. Does your API client still work on the latest firmware? (v1.2.3)

The part I can't figure out is I've never once set credentials for the device itself, so I can only assume it's the same as my TAPO Account. But still InvalidCredential.

tia

mihai-dinculescu commented 12 months ago

Yes, it does work with firmware 1.2.3.

You are correct. The e-mail and the password combination are the ones of your TP-Link account.

Your device needs to connect to the internet on the initial setup and after every TP-Link password change so that it gets synced. Outside these two situations, you can keep your device off the internet.

An exception from the above rule is when you want to fetch the energy usage. That requires an internet connection for the device when the call is made. See https://github.com/mihai-dinculescu/tapo/issues/109 for details.

Some people got the invalid credentials error a while back because they had upper-case letters in their TP-Link e-mail. The fix for them was either to ensure they got the capitalisation right (as it shows up in the Tapo App) or to re-create their accounts with a lower-case e-mail.

khandieyea commented 11 months ago

Ah! Thanks for this! The whole reset password after adding device.

Cheers!