Do child devices not at all show up in custom devices handlers as components?
Details:
I have an aquarium light controller that I made with an esp32. It has 2 temperature sensors (one for the light and one for the tank). I have been able to control the light and get one temperature from SmartThings but I cannot seem to get a second temperature sensor to show up in the same device.
Things I have tried:
One temp sensor as capability of device and one as a child device.
Both sensors as child devices
mcdSync:true
Added component to deviceconfig
Experience:
The child device is created and has a temperature attribute which I can set. The temperature sensor shows up in Automations. I cannot get the sensor to show up as a component no matter what I do. Am I missing something or is it just not working?
It’s a good question, you just posted in the wrong section of the forum. I’ve moved it over to where coders will see it.
I think the short answer is that the way parent/child Devices work is changed in the new architecture, but that’s about all I know, other people will have to go into the details.
Hi, there! Can you share your DTH’s source code, please? I’d like to see the metadata (capabilities, vid, etc.)
Also, take a look at the sample from another developer I included here.