2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.milight.internal.protocol;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Implement this bulb interface for each new bulb type. It is used by {@see MilightLedHandler} to handle commands.
20 * @author David Graeff - Initial contribution
23 public abstract class ProtocolConstants {
24 // Print out a lot of useful debug data for the session establishing
25 // This is for development purposes only, if the protocol changes again.
26 public static final boolean DEBUG_SESSION = true;
29 * There can only be one command of a category in the send queue (to avoid
30 * having multiple on/off commands in the queue for example). You can assign
31 * a category to each command you send and use one of the following constants.
34 public static final int CAT_DISCOVER = 1;
37 public static final int CAT_BRIGHTNESS_SET = 10;
38 public static final int CAT_SATURATION_SET = 11;
39 public static final int CAT_COLOR_SET = 12;
40 public static final int CAT_POWER_MODE = 13;
41 public static final int CAT_TEMPERATURE_SET = 14;
42 public static final int CAT_WHITEMODE = 17;
43 public static final int CAT_MODE_SET = 18;
44 public static final int CAT_SPEED_CHANGE = 19;
45 public static final int CAT_LINK = 20;