mbarone
September 17, 2020, 11:42am
2
you need to update the addChildDevice() function. get rid of the null parameter, I use the following as a base in some custom device drivers and shows what HE is looking for:
def options = [
completedSetup: true,
label: "${device.label} - Child Device",
isComponent: false
]
addChildDevice("namespace", "Child Device Driver", ChildDeviceNetworkId, options)
if you havnt found this thread yet, it is super useful for moving drivers over to HE:
I thought I'd jot down a few of the driver porting changes I've encountered. Please add additional ones you find to this list.
Replace physicalgraph with hubitat
Replace variables beginning with data with device.data
Add to params calls that give a java error the following before headers:
requestContentType: "application/json",
Replace pause(int) with pauseExecution(long) (units are milliseconds)
include ‘asynchttp_v1’ is not supported - comment this out and replace affected code with syn…