2 * Copyright (c) 2010-2020 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.lutron.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link LutronBinding} class defines common constants, which are
20 * used across the whole binding.
22 * @author Allan Tong - Initial contribution
25 public class LutronBindingConstants {
27 public static final String BINDING_ID = "lutron";
30 public static final ThingTypeUID THING_TYPE_IPBRIDGE = new ThingTypeUID(BINDING_ID, "ipbridge");
32 // List of all Thing Type UIDs
33 public static final ThingTypeUID THING_TYPE_DIMMER = new ThingTypeUID(BINDING_ID, "dimmer");
34 public static final ThingTypeUID THING_TYPE_SHADE = new ThingTypeUID(BINDING_ID, "shade");
35 public static final ThingTypeUID THING_TYPE_SWITCH = new ThingTypeUID(BINDING_ID, "switch");
36 public static final ThingTypeUID THING_TYPE_OCCUPANCYSENSOR = new ThingTypeUID(BINDING_ID, "occupancysensor");
37 public static final ThingTypeUID THING_TYPE_KEYPAD = new ThingTypeUID(BINDING_ID, "keypad");
38 public static final ThingTypeUID THING_TYPE_TTKEYPAD = new ThingTypeUID(BINDING_ID, "ttkeypad");
39 public static final ThingTypeUID THING_TYPE_INTLKEYPAD = new ThingTypeUID(BINDING_ID, "intlkeypad");
40 public static final ThingTypeUID THING_TYPE_PICO = new ThingTypeUID(BINDING_ID, "pico");
41 public static final ThingTypeUID THING_TYPE_VIRTUALKEYPAD = new ThingTypeUID(BINDING_ID, "virtualkeypad");
42 public static final ThingTypeUID THING_TYPE_VCRX = new ThingTypeUID(BINDING_ID, "vcrx");
43 public static final ThingTypeUID THING_TYPE_CCO = new ThingTypeUID(BINDING_ID, "cco");
44 public static final ThingTypeUID THING_TYPE_CCO_PULSED = new ThingTypeUID(BINDING_ID, "ccopulsed");
45 public static final ThingTypeUID THING_TYPE_CCO_MAINTAINED = new ThingTypeUID(BINDING_ID, "ccomaintained");
46 public static final ThingTypeUID THING_TYPE_TIMECLOCK = new ThingTypeUID(BINDING_ID, "timeclock");
47 public static final ThingTypeUID THING_TYPE_GREENMODE = new ThingTypeUID(BINDING_ID, "greenmode");
48 public static final ThingTypeUID THING_TYPE_QSIO = new ThingTypeUID(BINDING_ID, "qsio");
49 public static final ThingTypeUID THING_TYPE_GRAFIKEYEKEYPAD = new ThingTypeUID(BINDING_ID, "grafikeyekeypad");
50 public static final ThingTypeUID THING_TYPE_BLIND = new ThingTypeUID(BINDING_ID, "blind");
51 public static final ThingTypeUID THING_TYPE_PALLADIOMKEYPAD = new ThingTypeUID(BINDING_ID, "palladiomkeypad");
52 public static final ThingTypeUID THING_TYPE_WCI = new ThingTypeUID(BINDING_ID, "wci");
53 public static final ThingTypeUID THING_TYPE_SYSVAR = new ThingTypeUID(BINDING_ID, "sysvar");
55 // List of all Channel ids
56 public static final String CHANNEL_LIGHTLEVEL = "lightlevel";
57 public static final String CHANNEL_SHADELEVEL = "shadelevel";
58 public static final String CHANNEL_SWITCH = "switchstatus";
59 public static final String CHANNEL_OCCUPANCYSTATUS = "occupancystatus";
60 public static final String CHANNEL_CLOCKMODE = "clockmode";
61 public static final String CHANNEL_SUNRISE = "sunrise";
62 public static final String CHANNEL_SUNSET = "sunset";
63 public static final String CHANNEL_EXECEVENT = "execevent";
64 public static final String CHANNEL_ENABLEEVENT = "enableevent";
65 public static final String CHANNEL_DISABLEEVENT = "disableevent";
66 public static final String CHANNEL_STEP = "step";
67 public static final String CHANNEL_BLINDLIFTLEVEL = "blindliftlevel";
68 public static final String CHANNEL_BLINDTILTLEVEL = "blindtiltlevel";
69 public static final String CHANNEL_VARSTATE = "varstate";
71 // Bridge config properties (used by discovery service)
72 public static final String HOST = "ipAddress";
73 public static final String USER = "user";
74 public static final String PASSWORD = "password";
75 public static final String SERIAL_NUMBER = "serialNumber";
76 public static final String DISCOVERY_FILE = "discoveryFile";
78 public static final String PROPERTY_PRODFAM = "productFamily";
79 public static final String PROPERTY_PRODTYP = "productType";
81 // Thing config properties
82 public static final String INTEGRATION_ID = "integrationId";
84 // CCO config properties
85 public static final String CCO_TYPE = "outputType";
86 public static final String CCO_TYPE_PULSED = "Pulsed";
87 public static final String CCO_TYPE_MAINTAINED = "Maintained";
88 public static final String DEFAULT_PULSE = "pulseLength";
90 // GreenMode config properties
91 public static final String POLL_INTERVAL = "pollInterval";
94 public static final String BLIND_TYPE_PARAMETER = "type";
95 public static final String BLIND_TYPE_SHEER = "Sheer";
96 public static final String BLIND_TYPE_VENETIAN = "Venetian";