def set_active_state(self, state_name):
_LOGGER.info('<STR_LIT>', state_name)<EOL>return self._zm_request('<STR_LIT:GET>',<EOL>'<STR_LIT>'.format(state_name),<EOL>timeout=<NUM_LIT>)<EOL>
Set the ZoneMinder run state to the given state name, via ZM API.

Note that this is a long-running API call; ZoneMinder changes the state
of each camera in turn, and this GET does not receive a response until
all cameras have been updated. Even on a reasonably powerful machine,
this call can take ten (10) or more seconds **per camera**. This method
sets a timeout of 120, which should be adequate for most users.