is there a way to show the no connection icon in the devices status bar
clearly there is cause a native hubitat driver (wiz) does it
but how do we do it in groovy
Nothing special in Groovy for this, just the value of a custom networkStatus (or alternatively healthStatus) attribute on the device. A value of "offline" will make it show the icon you're talking about.
thank you where is this documented, that its "networkStatus" ?
its an enum?
attribute "networkStatus", "enum", ["offline","online"]
I don't think it really matters as long as the value is ultimately a matching string, but yes, this idea probably the best way to do it.