Unifi Protect - Enable/Disable Alarm

Hello,

Anyone know if it’s possible to turn on/off Unifi Protect Alarms (Notifications) from HA?

I’d like to get notifications from the UI Protect app, but only when HA has my alarm panel set to “Away” mode. I know I could do all the notifications from within HA, but I’d like to use the Protect app so that my wife can I can just tap on the notification and have the app launch, etc…

I wrote a thing…this does it, but it’s a bit hacky.