Devices Unavailable

Glad it worked for you.

I’m not sure what the Device Health switch does except cause problems.

Also, I suggest that any time you add (or delete) a device or even make a change to an automated routine do a hub reboot (power-off, wait 60 seconds, and power-on). If your hub is a V2 with batteries, take the batteries out while rebooting. The reboot lets the mesh rediscover itself, I think. It may not be necessary but it’s an easy, no-hassle procedure. It works for me, anyway.

I never had this problem before (offline device but still work). Started now with aqara motion sensor and door sensor and also with orvibo door sensor.
Resolved by disabling device health