Detect devices with exclamation mark/error

Is there any way to report when devices are faulty aka showing exclamation marks?

There’s Flow Checker.
Which marks flows as broken when connected to a device.

Have tested it, but I am looking for a solution to restart apps based on device errors completely automatically.

@krl69 It might be possible to add this to the flowchecker app that it reports broken devices and in which app. Based on that you can restart a app.