def METHOD_NAME(self, RemoteNwkId, type_dir):
    # Identify which group the Remote belongs too
    Ikea5ButtonGroupId = None
    for x in self.ListOfGroups:
        if "Tradfri Remote" not in self.ListOfGroups[x]:
            continue
        # Get NwkId from the IEEE remote in the Group (as if we use the Device Addr this could be an Old NetworkId)
        Ieee = self.ListOfGroups[x]["Tradfri Remote"]["IEEE"]
        if Ieee not in self.IEEE2NWK:
            # Inconsistency. Most-like the remote has been removed but remains in Group
            self.logging(
                "Error",
                "manageIkeaTradfriRemoteLeftRight - Group %s refer to a Remote %s/%s which do not exist anymore"
                % (x, self.ListOfGroups[x]["Tradfri Remote"]["Device Addr"], Ieee),
            )
            break
        RemoteFromGroupNwkId = self.IEEE2NWK[Ieee]
        if RemoteNwkId == RemoteFromGroupNwkId:
            self.logging("Debug", "manageIkeaTradfriRemoteLeftRight - Found GrpId : %s" % x)
            Ikea5ButtonGroupId = x
            break
    if Ikea5ButtonGroupId is None:
        self.logging("Error", "manageIkeaTradfriRemoteLeftRight - Remote %s not associated to any group" % RemoteNwkId)
        return
    if "Tradfri Remote" not in self.ListOfGroups[Ikea5ButtonGroupId]:
        self.logging(
            "Error",
            "manageIkeaTradfriRemoteLeftRight - Remote %s badly associated in GroupId: %s with %s"
            % (RemoteNwkId, Ikea5ButtonGroupId, self.ListOfGroups[Ikea5ButtonGroupId]),
        )
        return
    if "Color Mode" not in self.ListOfGroups[Ikea5ButtonGroupId]["Tradfri Remote"]:
        self.logging(
            "Error",
            "manageIkeaTradfriRemoteLeftRight - Remote %s badly associated in GroupId: %s with %s"
            % (RemoteNwkId, Ikea5ButtonGroupId, self.ListOfGroups[Ikea5ButtonGroupId]),
        )
        return
    DomoWidgetColorType = self.ListOfGroups[Ikea5ButtonGroupId]["Tradfri Remote"]["Color Mode"]
    if DomoWidgetColorType is None:
        self.logging("Error", "manageIkeaTradfriRemoteLeftRight - undefined Color Mode for %s" % DomoWidgetColorType)
        return
    self.logging("Debug", "manageIkeaTradfriRemoteLeftRight - Color model : %s" % DomoWidgetColorType)
    if DomoWidgetColorType in ("ColorControlWW"):  # Will work in Kelvin
        if "Actual T" not in self.ListOfGroups[Ikea5ButtonGroupId]["Tradfri Remote"]:
            t = 128
        else:
            t = self.ListOfGroups[Ikea5ButtonGroupId]["Tradfri Remote"]["Actual T"]
        if type_dir == "left":
            t -= self.pluginconf.pluginConf["TradfriKelvinStep"]
            if t < 0:
                t = 255
        elif type_dir == "right":
            t += self.pluginconf.pluginConf["TradfriKelvinStep"]
            if t > 255:
                t = 0
        self.logging("Debug", "manageIkeaTradfriRemoteLeftRight - Kelvin T %s" % t)
        set_kelvin_color(self, ADDRESS_MODE["group"], Ikea5ButtonGroupId, "01", "01", t)
        self.ListOfGroups[Ikea5ButtonGroupId]["Tradfri Remote"]["Actual T"] = t
    elif DomoWidgetColorType in (
        "ColorControlRGB",
        "ColorControlRGBWW",
        "ColorControl",
        "ColorControlFull",
    ):  # Work in RGB
        # Here we will scroll R, G and B
        PRESET_COLOR = (
            (10, 10, 10),  #
            (255, 0, 0),  # Red
            (0, 255, 0),  # Green
            (0, 0, 255),  # Blue
            (255, 255, 0),  # Yello
            (0, 255, 255),  # Aqua
            (255, 0, 255),  #
            (255, 255, 255),  # Whhite
        )
        if "RGB" not in self.ListOfGroups[Ikea5ButtonGroupId]["Tradfri Remote"]:
            seq_idx = 0
        else:
            seq_idx = self.ListOfGroups[Ikea5ButtonGroupId]["Tradfri Remote"]["RGB"]
        r, g, b = PRESET_COLOR[seq_idx]
        if type_dir == "left":
            seq_idx -= 1
        elif type_dir == "right":
            seq_idx += 1
        if seq_idx >= len(PRESET_COLOR):
            seq_idx = 0
        if seq_idx < 0:
            seq_idx = len(PRESET_COLOR) - 1
        self.logging("Debug", "manageIkeaTradfriRemoteLeftRight - R %s G %s B %s" % (r, g, b))
        set_rgb_color(self, ADDRESS_MODE["group"], Ikea5ButtonGroupId, "01", "01", r, g, b)
        self.ListOfGroups[Ikea5ButtonGroupId]["Tradfri Remote"]["RGB"] = seq_idx