Motion while Alarm is on? Send message

I’ve created a basic alarm system.

Goal: inform me if thieves enter my house while I am away + turn light on to scare them away.

PulseStation_-_Alarm
When the 4digit panel is armed with a code and motion is detected, send me a Pushover notification on my Phone and turn the lights on.

If motion is detected and the alarm is on (4digit status = armed),
then send me a notification on my phone using the Pushover app and turn the light on to scare away the thieves.
Inside the Pushover notification I put the Priority to Emergency, so that the message is delivered asap.

Note: you could also start a siren or let the camera record the thieve. Sending an SMS is also possible using the Google SMS service.
The Fibaro smoke sensor can also be used a a siren and can be found in our Store.