power monitoring calibration - seurat-atreides/Sonoff-Tasmota GitHub Wiki
You might need to calibrate your power monitoring device as correct measurements are influenced by hardware and timing differences.
- Your power monitoring capable device flashed with Tasmota and configured to a correct module/template that supports power monitoring
- Calibrated multimeter (AC capable).
- A resistive load device (we use a 60 Watt incandescent light bulb in the example).
- Resistive load device is any device which draws a constant amount of power such as an incandescent or halogen light bulb (best choice since their power draw is declared on them). Electric kettle or electric heater can also be used but it is recommended to use a power meter in conjunction since the load could vary.
- Do not use switch mode driven devices such as LED lamps, computer equipment or inductive/capacitive devices such as motors!
-
(optional) Calibrated power meter (aka Kill A Watt).
Connect the light bulb to your device.
(optional) Plug your device into the power meter.
Turn power on and wait a few seconds for the power metering to settle on a stable power reading.
Open the web UI to your device in one window and open another window to that same devices Console.
Verify the Power reading in the web UI (optionally with the power meter as well) for the expected 60 W and, if needed, change the power offset with command:
PowerSet 60.0
If you're using something other than a 60W load, enter the your peripheral's power rating
Verify the Voltage reading with the multimeter and if needed change the voltage offset in V with command:
VoltageSet <voltage>
Replace <voltage>
with the reading on your multimeter. Your voltage will vary depending on the electrical standards and your electrical grid
Verify the Current reading by calculating current value (amperage) using formula P(W)/V(V)=I(A) and if needed change the current offset in mA (mA=A*1000) with command:
CurrentSet <current>
Replace <current>
with your calculated value for A (multiplied by 1000)
Confirm the validity of your calibration process checking Power Factor from the WebUI which should be 1.00
or as close as possible to 1.00
. In theory resistive loads will always provide a Power Factor of 1.00. If that is not the case, we recommend you repeat the calibration process and make sure everything was done correctly.
Current calculation:
P/V=I
W(atts)/(V)oltage=(A)mperes
watts/volts *1000=CurrentSet value
Example: (60.0/235.5)*1000=254.777
Congratulations, your device can now reliably monitor power consumption!
Tampermonkey script submitted by @yuuya45