Automatic restart apps when all devices get unavailable

I know this is a old post, but in searching what i needed, i found this topic.

Device Capabilities (Test version) has a new Triggercard:
Device became Un/Available.

With tags:

Perhaps you can use this.
I could make an All devices from [[app]] are un/available condition card?
Done, see below.