]> git.basschouten.com Git - openhab-addons.git/blob
f8b78d88b92a2d4c2b08751fcdfe786a53ddee4a
[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.regoheatpump.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link RegoHeatPumpBindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Boris Krivonog - Initial contribution
23  */
24 @NonNullByDefault
25 public class RegoHeatPumpBindingConstants {
26
27     public static final String BINDING_ID = "regoheatpump";
28
29     // List of all Thing Type UIDs
30     public static final ThingTypeUID THING_TYPE_IP_REGO6XX = new ThingTypeUID(BINDING_ID, "ipRego6xx");
31     public static final ThingTypeUID THING_TYPE_SERIAL_REGO6XX = new ThingTypeUID(BINDING_ID, "serialRego6xx");
32     public static final ThingTypeUID THING_TYPE_IP_HUSDATA = new ThingTypeUID(BINDING_ID, "ipHusdata");
33     public static final ThingTypeUID THING_TYPE_SERIAL_HUSDATA = new ThingTypeUID(BINDING_ID, "serialHusdata");
34
35     // List of all Channel ids
36     public static final String CHANNEL_GROUP_SENSOR_VALUES = "sensorValues#";
37     public static final String CHANNEL_GROUP_CONTROL_DATA = "controlData#";
38     public static final String CHANNEL_GROUP_DEVICE_VALUES = "deviceValues#";
39     public static final String CHANNEL_GROUP_SETTINGS = "settings#";
40     public static final String CHANNEL_GROUP_OPERATING_TIMES = "operatingTimes#";
41     public static final String CHANNEL_LAST_ERROR = "status#lastError";
42     public static final String CHANNEL_LAST_ERROR_TIMESTAMP = CHANNEL_LAST_ERROR + "Timestamp";
43     public static final String CHANNEL_LAST_ERROR_TYPE = CHANNEL_LAST_ERROR + "Type";
44     public static final String CHANNEL_FRONT_PANEL_POWER_LAMP = "frontPanel#powerLamp";
45     public static final String CHANNEL_FRONT_PANEL_PUMP_LAMP = "frontPanel#heatPumpLamp";
46     public static final String CHANNEL_FRONT_PANEL_ADDITIONAL_HEAT_LAMP = "frontPanel#additionalHeatLamp";
47     public static final String CHANNEL_FRONT_PANEL_WATER_HEATER_LAMP = "frontPanel#hotWaterLamp";
48     public static final String CHANNEL_FRONT_PANEL_ALARM_LAMP = "frontPanel#alarmLamp";
49
50     public static final String REFRESH_INTERVAL = "refreshInterval";
51
52     // TCP/IP thing
53     public static final String HOST_PARAMETER = "address";
54     public static final String TCP_PORT_PARAMETER = "tcpPort";
55
56     // Serial thing
57     public static final String PORT_NAME = "portName";
58 }