I’m working on a SmartApp that creates child devices. I’d like it to create a “Momentary Button Tile”, but when I try to create one based on the device type in the “smartthings” namespace like so:
def child = addChildDevice("smartthings", "Momentary Button Tile", deviceID, null, [name: deviceName])
…I get this:
physicalgraph.app.exception.UnknownDeviceTypeException: Device type 'Momentary Button Tile' in namespace 'smartthings' not found. @ line 69
I’m assuming this is because it’s outside my namespace, which would totally make sense if I were trying to pull in someone else’s code, but it’s a standard ST device type. It works if I duplicate the ST device code and change the namespace to my own, but that seems sub-optimal for any number of reasons.
Is there a reason we can’t just use the ST devices beyond “It’s a pain in the neck to make an exception to the namespace restrictions”?