Can we create child devices?

So I got it working by changing

childDevice = addChildDevice("stephack", "Http Switch", "HC_${app.id}", null,[completedSetup: true,
        label: app.label]) 

TO

childDevice = addChildDevice("stephack", "Http Switch", "HC_${app.id}")

Getting rid of the trailer code seems to work now. Thank you @ogiewon. I used your HubDuino as a template.
@bravenel, @chuck.schwer adding the empty installed method also removed the error in the logsā€¦let me know if you need me to test anything furtherā€¦but I think Iā€™m good for now. Thanks for all the feedback guys.

2 Likes

Youā€™re welcome! By any chance, are you working on an improved Harmony Hub integration? :wink:

yupā€¦I was going to PM you once I had it working somewhat. Probably tomorrow because Iā€™m pretty much done for the night.

2 Likes

I tried your:
childDevice = addChildDevice(ā€œstephackā€, ā€œHttp Switchā€, ā€œHC_${app.id}ā€, null,[completedSetup: true, label: app.label])

and iā€™m not seeing the problemā€¦ can you post an example of the failure?

@patrick are there plans to allow this functionality in the near future. I was about to create a smartapp as a workaround for my fan driver...but you guys always seem to release an update that negates the need for my workarounds right after I create them.
Never had this "problem" on the ST platform :wink:

2 Likes

Its in the works, but with anything software, it will be out when its ready.

I hate that problem, we will work hard to fix it :slight_smile:

2 Likes

Good enough for me. I understand you got a lot on your plate. I think Iā€™ll wait a bit since itā€™s a ā€œwork in progressā€ and not a ā€œlast on the list of prioritiesā€ item.

any update on this yet? I have a driver that i have brought across from ST for the Fibaro UBS that creates the devices children. The DH used to grab the virtual DH from ST and use them as the children.

Looks like Hubitat Firmware v 1.0.9 adds support for Composite Device Handlers! Thank you Hubitat team!

4 Likes