CORE is your best bet at the present time for what you want, which is to subscribe to a smart home monitor alarm status change . It can be quite complicated to understand, but there are many people in the peer assistance thread who will be glad to help you set up the rule that you need.