You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
I am using tplink-cloud-api version 0.8.1 on Ubuntu 18.04 and my code runs ok if I'm referencing older TP Link devices, but if I reference a new type Model EP10 (Kasa Smart Wi-Fi Plug Mini https://www.amazon.com/dp/B091699Z3W ) then I get an error.
I get an unhandled exception when calling:
let myPlug = tplink.getHS100(deviceName); if (verbose) console.log(myPlug); let currentState = await myPlug.getRelayState();
Error: (node:19268) UnhandledPromiseRejectionWarning: Error: response error: code=-20002, status="", message="Request timeout" at new ResponseError (/home/tomws/node_modules/tplink-cloud-api/distribution/api-utils.js:29:28) at Object.checkError (/home/tomws/node_modules/tplink-cloud-api/distribution/api-utils.js:22:15) at HS100.<anonymous> (/home/tomws/node_modules/tplink-cloud-api/distribution/device.js:229:37) at step (/home/tomws/node_modules/tplink-cloud-api/distribution/device.js:40:23) at Object.next (/home/tomws/node_modules/tplink-cloud-api/distribution/device.js:21:53) at fulfilled (/home/tomws/node_modules/tplink-cloud-api/distribution/device.js:12:58) at process._tickCallback (internal/process/next_tick.js:68:7) (node:19268) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:19268) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using tplink-cloud-api version 0.8.1 on Ubuntu 18.04 and my code runs ok if I'm referencing older TP Link devices, but if I reference a new type Model EP10 (Kasa Smart Wi-Fi Plug Mini https://www.amazon.com/dp/B091699Z3W ) then I get an error.
I get an unhandled exception when calling:
let myPlug = tplink.getHS100(deviceName); if (verbose) console.log(myPlug); let currentState = await myPlug.getRelayState();
console.log(myPlug) returns:
HS100 { device: { deviceType: 'IOT.SMARTPLUGSWITCH', role: 0, fwVer: '1.0.2 Build 200915 Rel.085940', appServerUrl: 'https://use1-wap.tplinkcloud.com', deviceRegion: 'us-east-1', deviceId: '8006195E7E71E9F0F02A1EE1F0730A6E1F5B4AB2', deviceName: 'Smart Wi-Fi Plug Mini', deviceHwVer: '1.0', alias: 'HIW Water Pump', deviceMac: 'B4B02429E1B8', oemId: '41372DE62C896B2C0E93C20D70B62DDB', deviceModel: 'EP10(US)', hwId: 'AE6865C67F6A54B756C0B5812472C825', fwId: '00000000000000000000000000000000', isSameRegion: true, status: 1 }, params: { appName: 'Kasa_Android', termID: 'a8cfb105-0485-4432-b51a-f4777b32113b', appVer: '1.4.4.607', ospf: 'Android+6.0.1', netType: 'wifi', locale: 'es_ES', token: 'e0231f94-ATprUV4W8bkC8V880f0cQmM' }, genericType: 'plug' }
Error:
(node:19268) UnhandledPromiseRejectionWarning: Error: response error: code=-20002, status="", message="Request timeout" at new ResponseError (/home/tomws/node_modules/tplink-cloud-api/distribution/api-utils.js:29:28) at Object.checkError (/home/tomws/node_modules/tplink-cloud-api/distribution/api-utils.js:22:15) at HS100.<anonymous> (/home/tomws/node_modules/tplink-cloud-api/distribution/device.js:229:37) at step (/home/tomws/node_modules/tplink-cloud-api/distribution/device.js:40:23) at Object.next (/home/tomws/node_modules/tplink-cloud-api/distribution/device.js:21:53) at fulfilled (/home/tomws/node_modules/tplink-cloud-api/distribution/device.js:12:58) at process._tickCallback (internal/process/next_tick.js:68:7) (node:19268) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:19268) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
The text was updated successfully, but these errors were encountered: