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.regoheatpump.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link RegoHeatPumpBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Boris Krivonog - Initial contribution
25 public class RegoHeatPumpBindingConstants {
27 public static final String BINDING_ID = "regoheatpump";
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");
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";
50 public static final String REFRESH_INTERVAL = "refreshInterval";
53 public static final String HOST_PARAMETER = "address";
54 public static final String TCP_PORT_PARAMETER = "tcpPort";
57 public static final String PORT_NAME = "portName";