mihai-dinculescu/tapo

EnergyUsageResult.today_energy wrong units in comments?

Closed this issue · 3 comments

The comments say this field (and several similar ones) are in watts, but watts isn't a unit of energy. Should it be kilowatt hours or maybe Joules?

It's Watts per hour. That's what the Tapo API returns.
You can divide the value by 1000 to get Killowats per hour.

It would be good to have the documentation updated.

mjp4 commented

It will be "Watt Hours" (i.e. Power * time), not Watts per Hour (which would be Power / Time, which doesn't make sense).

@felixwatts, @mjp4, could you please review the referenced PR to verify that the correct units are now specified?