Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use power consumption with sonoff POW Elite #217

Open
Danny24 opened this issue Jun 7, 2023 · 6 comments
Open

Unable to use power consumption with sonoff POW Elite #217

Danny24 opened this issue Jun 7, 2023 · 6 comments

Comments

@Danny24
Copy link

Danny24 commented Jun 7, 2023

Hi,

I am trying to use my sonoff POW Elite (Powr316d) with the API to recover the power consumption from a Raspberry Pi. But it fails, it says: "error: 404, msg: 'No power usage data found'" However all the other options in the API works well, I can eve toggle the device ON state.
This same code works just fine with a sonoff POW R3. And I can see the data correctly in the app and in the web browser. So I think is something related to the device or the API, not my code. Can you help me make this work? Or at least give me an alternative way to archive this?

Greetings!

@baugp
Copy link

baugp commented Sep 12, 2023

I patched it, check my fork https://github.com/baugp/ewelink-api

@Danny24
Copy link
Author

Danny24 commented Sep 12, 2023

Thanks a lot, I will check it out and give feedback :)

@Danny24
Copy link
Author

Danny24 commented Sep 12, 2023

Dumb question, how I can test this change since there is no new release available?

@baugp
Copy link

baugp commented Sep 13, 2023

npm uninstall ewelink-api
npm install https://github.com/baugp/ewelink-api

@Danny24
Copy link
Author

Danny24 commented Sep 15, 2023

Thanks, I will test it on the weekend and give feedback.

@Danny24
Copy link
Author

Danny24 commented Sep 18, 2023

Thanks :)

I uninstalled the original one and installed the one you told me.

I have been trying over the weekend, but the problem persist. It still says "{ error: 404, msg: 'No power usage data found' }" when using the sonoff pow elite. With the sonoff pow r3 it works just nice.

getDevice('sonoff_id') works fine but getDevicePowerUsage('sonoff_id',true) returns error 404.

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

No branches or pull requests

2 participants