NicklasWallgren / ewelink

Ewelink SDK to control your eWelink smart devices.
MIT License
6 stars 8 forks source link

Power reading not yet implemented #2

Open StephanVerbeeck opened 2 years ago

StephanVerbeeck commented 2 years ago

Any suggestions or documentation how I can add this (or a final date when you will have implemented this) ? I only need the power reading features. I am writing software that can identify the individual devices (airco, freezer, cooking, oven, circulation, ...) and the timing when they are ON/OFF (assuming these are not switched ON/OFF by ewelink)

NicklasWallgren commented 2 years ago

Have a look at https://github.com/skydiver/ewelink-api/blob/master/src/classes/DevicePowerUsageRaw.js

You should be able to reuse parts of SetDevicePowerState, and pass in the parameters specific for that request.

I haven't got an eWeLink device which delivers power readings unfortunately, so I cannot test it out.