How are people doing energy reporting for power switches?
In theory, I get that you can call ResetEnergy() every 1h or something, then have the device report out the energy on an hourly basis. Then you send that to InfluxDB and sum it up/graph it.
In practice, though, I'm wondering how you get the timing to work out. For example, what if you do your ResetEnergy() at :00, but the device reports energy usage at :01? There doesn't seem to be a way to set the exact minutes after the hour that the device reports energy usage.
Another way I guess to do it would be that you could have the device report energy usage every minute, and in that case if you did a ResetEnergy() at :00, then you would have the full sixty minutes, but that seems a bit chatty from a reporting perspective.