Discrete input to trigger a Wyze event

I have an home alarm system, not a Wyze product. I would like to trigger the Wyze cam to start monitoring once my alarm system is enabled. This could be done by using an external discrete input ,triggered by my alarm system, send a wifi signal to trigger the Cam.

This type of module could also be trigger by any external alarm component, switch, mat, temperature trigger etc.

Any comments.

Thanks