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.openthermgateway.internal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
21 * The {@link OpenThermGatewayBindingConstants} class defines common constants, which are
22 * used across the whole binding.
24 * @author Arjen Korevaar - Initial contribution
27 public class OpenThermGatewayBindingConstants {
30 public static final String BINDING_ID = "openthermgateway";
32 // List of all the ThingType UID's
33 public static final ThingTypeUID OPENTHERM_GATEWAY_THING_TYPE_UID = new ThingTypeUID(BINDING_ID,
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");
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);
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";
55 // Generic channel type for Transparent Slave Parameter and Fault History Buffer values
56 public static final String CHANNEL_TSPFHB = "tspfhb";