code: async def update_state(self, name, state):
          
  
          await self.send_command(OPERATIONS.CMD_UPDATE_STATE,
                                  {'name': name, 'new_status': state},
                                  MESSAGES.UpdateStateResponse, timeout=5.0)
docs: Update the state for a service.
  
          Args:
              name (string): The name of the service
              state (int): The new state of the service