]> git.basschouten.com Git - openhab-addons.git/blob
034005ef8a485bde7c1fe9f64e72297164faea1f
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.milight.internal.protocol;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Implement this bulb interface for each new bulb type. It is used by {@see MilightLedHandler} to handle commands.
19  *
20  * @author David Graeff - Initial contribution
21  */
22 @NonNullByDefault
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;
27
28     /**
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.
32      */
33     // Session commands
34     public static final int CAT_DISCOVER = 1;
35
36     // Bulb commands
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;
46 }