I have a security system installed myself in 2000 and still is operational with code keypad, since I use HA I have connected zigbee switches in the central unit which is activated when the alarm is armed, when the siren goes on and I programmed the system that if I activate a zigbee switch instead of using the keypad the system is armed partional because upstairs we have a few detectors which may not work when home.
i used a button boolean to activate an automation in HA which turns off lights and activates the zigbee switch in the alarm unit to arm the system.
Now my issue
I would like to have the boolean turns on after the system is armed but if I do this the system gets armed completely which means the detectors upstairs also work and then when walking upstairs the alarm goes on.
this means that when the alarm is turned on partioned and if you then activate the zigbee switch again it is armed completely if you then activate the switch again it is unarmed, so it works in 3 steps when using the zigbee switch instead of the keypad.
I should have a kind of automation which knows if the system gets armed by keypad first it should turn also the boolean on without activating the switch in the system to arm the system completely.
I hope it’s a little bit clear this explanation and question and thanks for thinking with me for a solution.