def METHOD_NAME(self, srv):
    """
    Set a valve open/close by raw id
    """
    rospy.loginfo(
        "Setting valve {} to {}".format(
            srv.actuator,
            "open" if srv.opened else "closed",
        ),
    )
    self.set_port(int(srv.actuator), srv.opened)
    return {"success": True}