1) Give a description of the problem
I want to create a piston that calculates the energy used in a Dryer cycle taking info from my zigbee plug that does not support Energy Readings…
2) What is the expected behaviour?
Calculate the energy using the following formula:
(AvgPowerUsed*TimeUsed)/1000
After the dryer start its cycle I take max 10probes of Power that I’m later using for calculate the Energy Used.
3) What is happening/not happening?
I am having issues with converting the TimeUsed variable into a integer number to use it in the formula. I get only 01:30 hours format and I need 1.5 format in order to use it accordingly in the formula.
4) Post a Green Snapshot of the piston