If someone wants to experiment further - this is an experimental “overcomplicated” version of the community IKEA BILRESA Matter Buttons driver :
I was trying to detect and recover from lost Matter subscriptions on Hubitat... with a partial success.
The driver watches the Hubitat Matter JSON log, tries to detect the current subscriptionId, peer node, MaxInterval, and liveness refreshes. If the expected liveness window is missed, it first pings the device to confirm it is still online.Only after consecutive missed liveness checks, while the device still responds, it attempts to re-subscribe.
It also includes extra handling for delayed/stale BILRESA button events, simulated hold events, and debounce logic for multi-presses.
In the end, it was too much effort to patch something that could be handled much better at the Hubitat platform level. It may be wiser to simply clearly describe the needs and publish improvement requests to the HE devs. : )