Centralizing Notification Logic?

I had been trying to do something similar to do "notify if present". In WebCore I had a function to do this since you could specify inputs. In Hubitat I found it easier to just write a custom app: [RELEASE] Presence Aware Notification Wrapper

Depending on what you need to do you might be able to follow that pattern to have an App + Notification wrapper device.