nocmt / ewelink-api-next

CoolKit v2 API Official Library
MIT License
22 stars 5 forks source link

Power consumption by day exposed for Sonoff POW devices #12

Closed KaloNikolov closed 1 year ago

KaloNikolov commented 1 year ago

Hi, I am exploring the next version API and I was hoping to be able to read the last 3months of power consumption from the Sonoff POW devices as it is available in the eWelink application. Is this supported, I did not see it in the SDK, in case I have missed it could you point me where to look.

If it is not supported do you plan to expose it?

Thanks.

nocmt commented 1 year ago

Hi, I am exploring the next version API and I was hoping to be able to read the last 3months of power consumption from the Sonoff POW devices as it is available in the eWelink application. Is this supported, I did not see it in the SDK, in case I have missed it could you point me where to look.

If it is not supported do you plan to expose it?

Thanks.

Hello, this function cannot actually be completed through an interface. Normally, you need to establish a websocket connection, send instructions to query historical electricity consumption information, and then parse the received information to display it. Here is the complete information:

https://coolkit-technologies.github.io/eWeLink-API/#/en/UIIDProtocol?id=uiid5-power-detection-single-channel-plug