Operate power values
Posted: Wednesday 28 November 2018 20:50
I'm trying to process the values of several power devices to find the difference. Is there a way to directly get the Watts value of a power (usage) sensor without manually fiddling with separators? Like value = otherdevices['Lighting'][0].Value
What I'm trying to calculate is:
What I'm trying to calculate is:
Code: Select all
total = otherdevices['total'].Value
lights = otherdevices['lights'].Value
kitchen= otherdevices['kitchen'].Value
plugs = otherdevices['plugs'].Value
parasitic = total - lights - plugs - kitchen
commandArray['UpdateDevice'] = idx..'|0|'..parasitic