I know there was mention that component/composite devices were not supported. I’m not sure that they confirmed that all child devices were not supported. @patrick can you confirm either way?
This is completely wrong! Child devices are fully supported.
The error above appears to be from a new platform bug that has been reported internally. There is an easy work around: simply put in a method installed() { } That will get you past the bug which will no doubt be rooted out fairly quickly.
The error message is from the child device you are creating. It is saying there is no installed method in the child device. Does the device get created successfully? It should be.
It gets created but it doesn’t seem to be tied to the parent app. Parent calls aren’t received by the app and when I delete the app, it does not delete the child device.
I noticed this when creating my HubDuino Service Manager App + Child Drivers. For me, I just saw the errors in the Logs which annoyed me enough to simply add an empty installed(){} routine in every child. I haven’t had any issues with my Parent App / Child Devices.
My code auto creates child devices based on data received from the Arduino/ESP8266… So it always checks for the existence of a child to decide if is needs to create one. Not the prettiest code, but it seems to work well-enough.
if the link was not there, i would expect to see a null pointer exception… can you try adding a try catch around your call to parent and see what exception you get? I just tried creating a child device and then calling parent from there and it seemed fine. what does parent.childOn() do? can you add a logger to it at the beginning to see if it is truly being called?
I commented out everything and just have it log.debug. I’ll try your suggestions and see what I get. @bravenel, line 36 simply does “parent.childOn()”