My First App

So I got my first, extremely simple app running. It is based on @bravenel's "Debounce Contact Sensor" code. All it does is listen for "held" and "double tapped" events on a switch, and make them act like normal presses. Not exciting, but I've got to start somewhere. My problem is, when I create 2 of these custom apps they show up in my apps list like this (the two "De-Scene switch" entries):

Pic1

I'd like them to show up like things do in Rule Machine, or "Groups and Scenes" in my picture: a single heading for "DeScened Switches", followed by individual instances. Clearly there is a bunch of code missing in how I'm setting things up, which is not surprising. The code I have is only 45 lines long.

Any suggestions on where I can look to find an example of what I'd like to do? I see in the documentation some mentions of "Child Apps" which looks promising. Any pointers to uses of these or examples would be appreciated.

Here's an example of a very simple parent-child app pair that you could use as a template for writing your own. Just remember, you have to have the parent saved first. It won't let you save a child that is dependent on a non-existent parent app.

http://github.com/Botched1/Hubitat/tree/master/Apps/Dimmer%20Sync

Edit: Updated link for the discourse bug.

Great -- I'll take a look at it.

Thanks!

Edit: that link leads to "page not found"??

Searching around github led me to this:

which may show me what I need to know. Thanks for the idea.

There's a bug in discourse. Updated the link. You just have to copy paste it. Whenever a link has %20 to represent a space it add the %25 to the link to represent a % sign when it doesn't need that.

Found it now -- thanks!