Converting code from ST

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: