The Query API allows power input data to be downloaded in a variety of units. Could you please provide details on which of these are actually recorded and which are derived? Am I correct in assuming that only time stamp, voltage (rms over the 5 second aggregated sampling interval) and frequency (from the voltage input), and current (rms over the 5 second aggregated sampling interval) and power factor (cosine of the phase difference between voltage and current signals) are recorded at every five-second interval?

If so, then watts and va would presumably be:

- watts = voltage * current / (power factor)
- va = voltage * current
- var = voltage * current * (sine of phase) [where phase is obtained as inverse cosine of the power factor]

Is that correct?

How are the energy quantities (wh and varh) calculated? Are they just the corresponding power quantity multiplied by (5 / 3600) so that they can be added to estimate cumulative energy usage / generation?