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):
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.
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.