App generating events that does not exist

Hi I have ported over a parent/child app from ST, which takes a media device status and sets different scenes based on play state..

When I first installed it it's possible I didn't hit done on the main app, so the app and it's child are not showing in the list of apps.. however a second time I then installed the app with the same settings making sure I hit done (apart from I selected a different bulb).. and this one is now present in my list of apps.. however when I hit play/pause stop it triggers the bulb in the visible app and also in the app I can't see?

Clearly the child app is still installed and working I just can't see it? Any ideas how to resolve this?

Update:
To add, opening up the bulb it states the below: LR was the Child App name and I can click on this app

In Use By * LR (MediaSceneChild)

Clicking the link will then take me to the child app and I can actually delete the app from there, but this still means I have this child app and possibly others lurking on my system? In fact if I go to app ID 77, I can see the second child app I created first time round (I created two child apps).

I guess there needs to be some cleanup activity on the hub to check for orphan children? Otherwise you could mistakenly end up having child apps you can't see subscribed and processing events..

There is such a cleanup activity daily, for just this reason. This is also why ALL of the built-in parent apps force you to hit Done before it will install any children. Suggest you do the same.

Great thanks @bravenel, good to know, will update my code accordingly!

Again thanks for the very quick response to support!