]> git.basschouten.com Git - openhab-addons.git/blob
d33667c79c743c52d7df784900f238707b1fddf2
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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
39     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPE_UIDS = Set.of(OPENTHERM_GATEWAY_THING_TYPE_UID,
40             BOILER_THING_TYPE_UID, VENTILATION_HEATRECOVERY_THING_TYPE_UID);
41
42     // List of id's for writeable channels
43     public static final String CHANNEL_SEND_COMMAND = "sendcommand";
44     public static final String CHANNEL_OVERRIDE_SETPOINT_TEMPORARY = "temperaturetemporary";
45     public static final String CHANNEL_OVERRIDE_SETPOINT_CONSTANT = "temperatureconstant";
46     public static final String CHANNEL_OVERRIDE_DHW_SETPOINT = "overridedhwsetpoint";
47     public static final String CHANNEL_OVERRIDE_CENTRAL_HEATING_WATER_SETPOINT = "controlsetpointoverride";
48     public static final String CHANNEL_OVERRIDE_CENTRAL_HEATING2_WATER_SETPOINT = "controlsetpoint2override";
49     public static final String CHANNEL_OVERRIDE_CENTRAL_HEATING_ENABLED = "ch_enableoverride";
50     public static final String CHANNEL_OVERRIDE_CENTRAL_HEATING2_ENABLED = "ch2_enableoverride";
51     public static final String CHANNEL_OUTSIDE_TEMPERATURE = "outsidetemp";
52     public static final String CHANNEL_OVERRIDE_VENTILATION_SETPOINT = "vh_ventilationsetpoint";
53
54     // Generic channel type for Transparent Slave Parameter and Fault History Buffer values
55     public static final String CHANNEL_TSPFHB = "tspfhb";
56 }