]> git.basschouten.com Git - openhab-addons.git/blob
400d13484d59a5be23854c5db9f1cf2dfcf9d561
[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.openthermgateway.internal;
14
15 import java.util.Set;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
19
20 /**
21  * The {@link OpenThermGatewayBindingConstants} class defines common constants, which are
22  * used across the whole binding.
23  *
24  * @author Arjen Korevaar - Initial contribution
25  */
26 @NonNullByDefault
27 public class OpenThermGatewayBindingConstants {
28
29     // Binding Id
30     public static final String BINDING_ID = "openthermgateway";
31
32     // List of all the ThingType UID's
33     public static final ThingTypeUID OPENTHERM_GATEWAY_THING_TYPE_UID = new ThingTypeUID(BINDING_ID,
34             "openthermgateway");
35     public static final ThingTypeUID BOILER_THING_TYPE_UID = new ThingTypeUID(BINDING_ID, "boiler");
36     public static final ThingTypeUID VENTILATION_HEATRECOVERY_THING_TYPE_UID = new ThingTypeUID(BINDING_ID,
37             "ventilationheatrecovery");
38     public static final ThingTypeUID LEGACY_THING_TYPE_UID = new ThingTypeUID(BINDING_ID, "otgw");
39
40     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPE_UIDS = Set.of(OPENTHERM_GATEWAY_THING_TYPE_UID,
41             BOILER_THING_TYPE_UID, VENTILATION_HEATRECOVERY_THING_TYPE_UID, LEGACY_THING_TYPE_UID);
42
43     // List of id's for writeable channels
44     public static final String CHANNEL_SEND_COMMAND = "sendcommand";
45     public static final String CHANNEL_OVERRIDE_SETPOINT_TEMPORARY = "temperaturetemporary";
46     public static final String CHANNEL_OVERRIDE_SETPOINT_CONSTANT = "temperatureconstant";
47     public static final String CHANNEL_OVERRIDE_DHW_SETPOINT = "overridedhwsetpoint";
48     public static final String CHANNEL_OVERRIDE_CENTRAL_HEATING_WATER_SETPOINT = "controlsetpointoverride";
49     public static final String CHANNEL_OVERRIDE_CENTRAL_HEATING2_WATER_SETPOINT = "controlsetpoint2override";
50     public static final String CHANNEL_OVERRIDE_CENTRAL_HEATING_ENABLED = "ch_enableoverride";
51     public static final String CHANNEL_OVERRIDE_CENTRAL_HEATING2_ENABLED = "ch2_enableoverride";
52     public static final String CHANNEL_OUTSIDE_TEMPERATURE = "outsidetemp";
53     public static final String CHANNEL_OVERRIDE_VENTILATION_SETPOINT = "vh_ventilationsetpoint";
54
55     // Generic channel type for Transparent Slave Parameter and Fault History Buffer values
56     public static final String CHANNEL_TSPFHB = "tspfhb";
57 }