code: def get_active_state(self) -> Optional[str]:
          
          for state in self.get_run_states():
              if state.active:
                  return state.name
          return None
docs: Get the name of the active run state from the ZoneMinder API.