]> git.basschouten.com Git - openhab-addons.git/blob
1e1100023abd8cfb71f517002097448bee777287
[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.km200.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link KM200BindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Markus Eckhardt - Initial contribution
23  */
24 @NonNullByDefault
25 public class KM200BindingConstants {
26
27     public static final String BINDING_ID = "km200";
28
29     // Bridge UID
30     public static final ThingTypeUID THING_TYPE_KMDEVICE = new ThingTypeUID(BINDING_ID, "kmdevice");
31
32     // List of all Thing Type UIDs
33     public static final ThingTypeUID THING_TYPE_GATEWAY = new ThingTypeUID(BINDING_ID, "gateway");
34     public static final ThingTypeUID THING_TYPE_DHW_CIRCUIT = new ThingTypeUID(BINDING_ID, "dhwCircuit");
35     public static final ThingTypeUID THING_TYPE_HEATING_CIRCUIT = new ThingTypeUID(BINDING_ID, "heatingCircuit");
36     public static final ThingTypeUID THING_TYPE_SOLAR_CIRCUIT = new ThingTypeUID(BINDING_ID, "solarCircuit");
37     public static final ThingTypeUID THING_TYPE_HEAT_SOURCE = new ThingTypeUID(BINDING_ID, "heatSource");
38     public static final ThingTypeUID THING_TYPE_SYSTEM = new ThingTypeUID(BINDING_ID, "system");
39     public static final ThingTypeUID THING_TYPE_SYSTEM_APPLIANCE = new ThingTypeUID(BINDING_ID, "appliance");
40     public static final ThingTypeUID THING_TYPE_SYSTEM_HOLIDAYMODES = new ThingTypeUID(BINDING_ID, "holidayMode");
41     public static final ThingTypeUID THING_TYPE_SYSTEM_SENSOR = new ThingTypeUID(BINDING_ID, "sensor");
42     public static final ThingTypeUID THING_TYPE_NOTIFICATION = new ThingTypeUID(BINDING_ID, "notification");
43     public static final ThingTypeUID THING_TYPE_SWITCH_PROGRAM = new ThingTypeUID(BINDING_ID, "switchProgram");
44     public static final ThingTypeUID THING_TYPE_SYSTEMSTATES = new ThingTypeUID(BINDING_ID, "systemStates");
45
46     // KM200 DataTypes
47     public static final String DATA_TYPE_STRING_VALUE = "stringValue";
48     public static final String DATA_TYPE_FLOAT_VALUE = "floatValue";
49     public static final String DATA_TYPE_SWITCH_PROGRAM = "switchProgram";
50     public static final String DATA_TYPE_ERROR_LIST = "errorList";
51     public static final String DATA_TYPE_Y_RECORDING = "yRecording";
52     public static final String DATA_TYPE_SYSTEM_INFO = "systeminfo";
53     public static final String DATA_TYPE_ARRAY_DATA = "arrayData";
54     public static final String DATA_TYPE_E_MONITORING_LIST = "eMonitoringList";
55     public static final String DATA_TYPE_MODULE_LIST = "moduleList";
56     public static final String DATA_TYPE_REF_ENUM = "refEnum";
57     public static final String DATA_TYPE_PROTECTED = "$$PROTECTED$$";
58
59     // Other constants
60     public static final String SWITCH_PROGRAM_REPLACEMENT = "__current__";
61     public static final String SWITCH_PROGRAM_PATH_NAME = "switchPrograms";
62     public static final String SWITCH_PROGRAM_CURRENT_PATH_NAME = "activeSwitchProgram";
63     public static final String SWITCH_PROGRAM_POSITIVE = "activeSwitchProgramPos";
64     public static final String SWITCH_PROGRAM_NEGATIVE = "activeSwitchProgramNeg";
65 }