Deactivate homematic ip alarm / nuki / false alarm

Hello everyone, I have the following problem. I use the homematic IP alarm system, I have set up an automation at HA so that when the alarm system is deactivated, the front door opens through the nuki door lock. The following problem is that if I have a false alarm, then confirm / deactivate it, the nuki also opens the front door. For example, yesterday I had a false alarm from the smoke detector, which I then confirmed in the homematic IP app, then the nuki also opened the door, although the alarm system was not activated. that would of course be fatal if it happens when I’m not at home. who has an alternative / solution to it? maybe it would also be possible to automate another control using the homematic IP alarm remote control. i am very new to the HA story so i need a little support. I would be really grateful for help