CPC G01R 22/065 (2013.01) [G01R 22/10 (2013.01); G05D 23/1917 (2013.01)] | 19 Claims |
1. A smart-home device comprising:
a main power rail that provides power to one or more components of the smart-home device;
an integrator coupled to the main power rail that stores energy on an energy-storage device, wherein the energy stored on the energy-storage device is representative of an amount of power provided to the smart-home device through the main power rail during an integration cycle of the integrator, and wherein:
each integration cycle of the integrator begins when the energy stored on the energy-storage device is reset; and
each integration cycle of the integrator ends when an electrical measurement of the energy-storage device meets or exceeds a threshold; and
a counter that stores a number of integration cycles performed by the integrator during a time interval, wherein a total amount of power provided to the smart-home device through the main power rail during the time interval is represented by:
a product of a number of integration cycles performed by the integrator during the time interval and a known total amount of energy provided to the main power rail during a single integration cycle divided by a length of the time interval; and
the energy stored on the energy-storage device.
|