At App Object - Hubitat Documentation I see a
ChildDeviceWrapper addChildDevice(String namespace, String typeName, String deviceNetworkId, Map properties = [:])
However, if I try to call it, I get an invalid signature. However, adding a
null before properties works nicely, except that the properties are not actually saved into the device.
Can you show your broken code so we can see?
addChildDevice('foobar', 'My Driver', device.serial, null, [ isComponent: false, name: device.model, label: device.name ] )
this works, but the options in the map are ignored (serial, model and name are all valid). If I omit the null, I get the invalid signature error. This is the method of the