Is there any way to discover that a (child) device is in use by other apps?
I have an app that creates child devices based on various inputs. Sometimes it removes those devices. I'd like to make sure it doesn't remove a device that is in use by other apps (eg. RM). In 2018 the answer was "no:"
... but I thought I'd ask if it was still true four years later. I don't need to know which apps are using the device, just that it's happening. (I'd want to know which apps, but would be satisfied with knowing that it's happening.)
[To satisfy the inevitable "you don't need to do that, you're obviously doing something wrong" responses, sure, maybe. My app defines recursive groups - that is, device groups that can contain device groups, and propagates events to all contained devices. Because the UI is a PITA, I'm playing with doing this in a JSON spec that I download via HTTP rather than as a UI-driven application. You may love Hubitat UI development; I choose not to. ]