Thyg0d
4
@tpmanley
Sorry for the slow reply, first time in 2 weeks I get to sit down…
I’m using @erocm1231’s wonderful DTH
but I’ve also tried the “default” that Smartthings made available a while ago.
The custom DTH conatins the code you said.
addChildDevice(“Metering Switch Child Device”, “${device.deviceNetworkId}-ep${i}”, null,
[completedSetup: true, label: “${device.displayName} (S${i})”,
isComponent: false, componentName: “ep$i”, componentLabel: “Switch $i”])
Just to make sure I got this right.
Below is the same code but with , componentName: “ep$i” removed
Is that correct?
addChildDevice(“Metering Switch Child Device”, “${device.deviceNetworkId}-ep${i}”, null,
[completedSetup: true, label: “${device.displayName} (S${i})”,
isComponent: false, componentLabel: “Switch $i”])
TIA!
BR
Per