bphermansson / EspSparsnasGateway

Reads data from Ikea Sparsnäs energy meter and publish via Mqtt.
MIT License
39 stars 27 forks source link

fix for power calculation when data4 is 0 #13

Closed fredrike closed 6 years ago

fredrike commented 6 years ago

Apparently is data4 set to 0 when the power usage is low (around <400W in 10'000 pulses per kwh) and then is watt calculated as power * 0.24 / PULSES_PER_KWH.

fixes #9

bphermansson commented 6 years ago

Thanks!