Sengled Plug Accumulated Energy Usage Help

Worst case you could write a rule. I don't think it would be the most efficient, but it would work....

First create a global variable to store the total power... let's call it varKWH. You'll also want some local variables in the rule since Rule Machine can only perform one math operation at a time. We'll call these watts, var1 and var2.

Trigger: Periodic... slower would be better but have to be fast enough to catch any changes in power use. For this example I'll use 5 minutes.

Rule:
0. Set watts = sensor value

  1. Variable math... var1 = watts รท 1000 (convert watts to kilowatts)
  2. More math... var2 = var1 x 0.0833 (note that 5 minutes equals 0.0833 hours)
  3. And even more math... varKWH = varKWH + var2

And if you want you could add another step to calculate cost...