Alarm siren after delay

Hi, I am trying to do the logic for the siren of my alarm, but I want to be very cautios because I don’t want to accidentally turn on the siren and bother the neigbours. Although I am testing before with VeraAlerts instead of activating the siren, I can’t figure the whole logic. I wan’t a delay of 30 seconds between the security breach and the siren activating, regardless if the security breach is not true anymore (the door was closed for example) but the alarm is not disamred (my alarm is PLEG). Here is, at the moment, my logic, hope someone can give me some suggestions.

house_secured
alarm_status eq “House secured”
ACTION: NONE

security_breached
alarm_status ne “Alarm deactivated”
ACTION: NONE

pre_siren
(house_secured; security_breached)
ACTION: start timer pre_siren_timer 30 seconds

siren
security_breached AND (security_breached; !siren_timer)
ACTION: Sound siren

Thanks.

If you want people to help you with your logic … you should include a STATUS report.