Yes.
When use security as trigger:
1. Choose "Use Adress" first, pick the same address as your sensor. Hit Enter
2. Then choose "Security" device again.
By that, u create the marcro as same adress as the security device/sensor.
I hope u know how to make ur security devices/sensor in an adress that u prefer when installed in AHP.
If not, it's best to do that. Use search in this forum.
( treat sensor as lamp or other divice, pick address, hit Enter, re-choose it as security device)