code: def is_in_schedule_mode(self):
          
          resource = "schedule"
          mode_event = self.publish_and_get_event(resource)
          if mode_event and mode_event.get("resource", None) == "schedule":
              properties = mode_event.get('properties')
              return properties.get("active", False)
          return False
docs: Returns True if base_station is currently on a scheduled mode.