diff --git a/code/espurna/sensors/HLW8012Sensor.h b/code/espurna/sensors/HLW8012Sensor.h index a5c66efe..05383827 100644 --- a/code/espurna/sensors/HLW8012Sensor.h +++ b/code/espurna/sensors/HLW8012Sensor.h @@ -181,7 +181,7 @@ class HLW8012Sensor : public BaseSensor { if (index == 2) return _hlw8012->getActivePower(); if (index == 3) return _hlw8012->getReactivePower(); if (index == 4) return _hlw8012->getApparentPower(); - if (index == 5) return _hlw8012->getPowerFactor(); + if (index == 5) return 100 * _hlw8012->getPowerFactor(); if (index == 6) return _hlw8012->getEnergy(); _error = SENSOR_ERROR_OUT_OF_RANGE; return 0;