Homey Community Forum

Energy, multisocket devices

Hi,

I’m working to get my apps 3.0.0 / energy ready. Its not a very big change so lets get it over with. I was just wondering. I have implemented a multisocket device by having a capability onoff.soc1, onoff.soc2 ect and have made custom flowcharts to support flows.

Because the power usage is dependent on what socket is on and not. How should i implement this.

Can i just add

“energy”: {
“approximation”: {
“usageOn”: 6, // in Watt
“usageOff”: 0.5 // in Watt
}

as capabilityoption in the json or do have to add an measure power to each socket and do it myself?