There’s an OH2 method in here for responding to Thing status changes. It should be possible to adapt this for OH3, and probably make it slicker.