How to set up the alarm function for an imported flow switch?