Hikvision Enable / Disable Notifications

Good day,

on my hikvision APP on my phone, I can enable and disable notifications. How can I do this from HA?

For example only when the alarm is on, do I want to receive notifications from my cameras. I have seen examples where they disable motion detection on the actual camera. This is not what I want,as it affects recording. I want it to always record motion detection events, but only send me push notifications via the app when my HA alarm is enabled??

Please share your notification automation. It should be as simple as adding a state condition to check if the alarm is on.