Calculate Average Power using webcore


#1

1) Give a description of the problem
I already have a piston for calculating the energy used by a Zigbee Smart Plug, for which the default DHT does not read the actual energy of the plug.

2) What is the expected behaviour?
Calculate the Energy used by the Plug in a specific amount of time (while the clothes dryer is working) and from that energy calculates the associated costs.

3) What is happening/not happening?
I’ve made up a Avg. Power calculation that it’s not precise.

I need another way of calculating it.Please share suggestions.
Lines 97-102
**4) Post a Green Snapshot of the piston![image|45x37]