skydiver / ewelink-api

eWeLink API for JavaScript
https://www.npmjs.com/package/ewelink-api
MIT License
264 stars 108 forks source link

Trouble with getDevicePowerUsage #196

Open tahajilani opened 1 year ago

tahajilani commented 1 year ago

I am using the ewelink-api-fixed but can't seem to get valid response form it. Getting the response below even though I can see power usage in the app. { error: 'No power usage data found' } I started debugging the application and I think websockets are not opening. image During first payload, I get a positive response image But during the second payload which is the update image I get websocket not being open error. image

I tired looking for forums but couldn't find a solution. I am using node version 16.15.0.