When is a COMMAND_CLASS_ALARM send?

Hi,

I have a Fibaro Wall Plug FGWPE/F added to my Vera 3. In my Zwave network I have got several motion detectors.

What I’m trying to do:
The Fibaro has a LED ring which you can setup to change output in different colors when a COMMAND_CLASS_ALARM is noticed (variable 39).
I want to use this to check if armed motiondetectors detect motion.

Is there a way to do this?

i think you need to set the group in the motionsensor for alarm and add the fibaro plug to that group, so that the motion sensor can control the plug. maybe some parameter need to be set also.