[Question][RM5.1] - How to discover if Hub Mesh is active or not

So now I'm running 2 hubs. All devices are connected to one hub, all automations are handled by second hub.
I also use the second hub for occasionally Hubitat beta versions.

So, in the case that a beta update or an automation or a power issue should prevent hub mesh from working, it may be handy to have backup versions of some more "important" automations on my main Hub. The only problem is, how to detect if Hub Mesh has suddenly failed?

I know that Hubitat Information driver is capable of providing this information, but it is polling it from somewhere on a scheduled basis, and I figure there must be a way for RM find out in real time if Hub Mesh is suddenly not connected to the second hub...

How would I go about using realtime Hub Mesh status to create a "Hub Mesh disconnected" as a trigger for automations?

I don’t know that there is a system wide way of checking this, but it is possible to check individual devices.

What I would do is pick one of the shared device, and use this (hubMeshDisabled()=true) as a required condition:

3 Likes