[APP][Pro] Ubiquiti UniFi Protect

I want Homey to decide if Unifi Protect shall notify me or not.

Solution from Unifi
Today I can restrict notifications based on schedule and/or GEO-Location within the Protect app.
But is not good enough. I want homey to decide with more schenarios.

Example
At nighttime when the house is locked. I want motiondetect notifications from the Protect App.
But I dont want it to notify me if it is not locked.

Solution?
Is there a way to toggle this in some smart way, API, or otherway?
A simplier solution than below would be great.


Maybe here is a solution (but its not pretty)

[Unify Protect] Motion alarmed triggered → Send webhook to [Homey] “Alarm triggered”

And at the same time: A new Alarm is started within Unifi protect. But this one is waiting for confirmation to send notification (confirmation via web hook from Homey)

IF [Homey] want me to have the notification → [Homey] send Webhook back to [Unify Protect] “yes please give us that notification”