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.sinope;
15 import java.util.HashSet;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.core.thing.ThingTypeUID;
22 * The {@link sinopeBinding} class defines common constants, which are
23 * used across the whole binding.
25 * @author Pascal Larin - Initial contribution
28 public class SinopeBindingConstants {
30 public static final String BINDING_ID = "sinope";
32 // List of all Thing Type UIDs
33 public static final ThingTypeUID THING_TYPE_THERMO = new ThingTypeUID(BINDING_ID, "thermostat");
34 public static final ThingTypeUID THING_TYPE_GATEWAY = new ThingTypeUID(BINDING_ID, "gateway");
36 // List of all Channel ids
37 public static final String CHANNEL_HEATINGLEVEL = "heatingLevel";
38 public static final String CHANNEL_SETTEMP = "setpointTemperature";
39 public static final String CHANNEL_SETMODE = "setpointMode";
40 public static final String CHANNEL_INTEMP = "insideTemperature";
41 public static final String CHANNEL_OUTTEMP = "outsideTemperature";
43 public static final String CONFIG_PROPERTY_HOST = "ipAddress";
44 public static final String CONFIG_PROPERTY_PORT = "ipPort";
45 public static final String CONFIG_PROPERTY_GATEWAY_ID = "gatewayID";
46 public static final String CONFIG_PROPERTY_API_KEY = "apiKey";
47 public static final String CONFIG_PROPERTY_POLLING_INTERVAL = "pollingInterval";
48 public static final String CONFIG_PROPERTY_DEVICE_ID = "deviceId";
50 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = new HashSet<>();
53 SUPPORTED_THING_TYPES_UIDS.add(THING_TYPE_GATEWAY);
54 SUPPORTED_THING_TYPES_UIDS.add(THING_TYPE_THERMO);