How to create a Child Device: Momentary on/off tile

Okay, one more question on childDevices…

I’m creating my app… well, pretty much have created it. After I do some testing of it to verify it works as intended I’m going to submit it for publication as I think it might be useful for others. So, let’s assume it gets published.

What namespace does the published app use? Will it use my namespace that I put in the app? Given that the childDevice’s Device Type needs to exist in the same namespace (and in fact is hard coded with my namespace), will that work?

Or is it best practices to try to get the namespace that the app is using and plug that in as a variable when creating the childDevice?

When you publish it your namespace would be included, since that’s what is in the code. So it would work fine. Don’t mess with trying to get the namespace.

Great!! I didn’t want to mess with finding namespace!

But, this was a pretty good project. Now that it appears to be done depending on what the full testing shows, it was a big learning experience for me.

Assuming testing goes well I might take a stab at figuring out how to check if the TTS device is playing audio and resuming that afterwards.

1 Like

Hello. Can you share the Code with us?