Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Exception "Device is Offline" #61

Open
nicofr83 opened this issue Aug 26, 2022 · 2 comments
Open

Exception "Device is Offline" #61

nicofr83 opened this issue Aug 26, 2022 · 2 comments

Comments

@nicofr83
Copy link

I tried to run a very simple typescript application:

import {login} from "tplink-cloud-api";

const main = async () => {
let tplink = await login(user, pass, "TermID");
let deviceList = await tplink.getDeviceList();
try {
const relayState = await tplink.getHS110(deviceList[1].alias).get_relay_state()
console.log("relay state: " + relayState.toString())
}
catch(ex){
console.log(ex.toString())
}
}
main()

I always get an Exception : Error: response error: code=-20571, status="", message="Device is offline"

I have two plugs, one is defined in the Tapo app, the second one is shared plug coming form another account, which I can monitor from the Tapo app. Also the getDeviceList returns the list of device, but not the name used in the Tapo app

Am I doing something wrong ?
Thanks
Nicolas

@nicofr83
Copy link
Author

Sorry I did not see our libs was only supporting HS110, not TP110.
Any plan to support this plug ?
Thanks

@nunovivas
Copy link

i have the exact same issue. It seems that the "Pxx" are not supported.
Any plans on adding it soon?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants