Can I use ZESM to turn off the wireless modem when the machine has a wired connection?

From what I have read it sounds like I should be able to do this.

If so can someone please point me to the right documentation to implement this.

Or can I just do it based on their current location (IP Network)?