2 * Copyright (c) 2010-2024 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.salus.internal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
21 * @author Martin GrzeĊlowski - Initial contribution
24 * The {@link SalusBindingConstants} class defines common constants, which are
25 * used across the whole binding.
27 * @author Martin Grzeslowski - Initial contribution
30 public class SalusBindingConstants {
32 public static final String BINDING_ID = "salus";
34 // List of all Thing Type UIDs
36 public static final ThingTypeUID SALUS_DEVICE_TYPE = new ThingTypeUID(BINDING_ID, "salus-device");
37 public static final ThingTypeUID SALUS_IT600_DEVICE_TYPE = new ThingTypeUID(BINDING_ID, "salus-it600-device");
38 public static final ThingTypeUID SALUS_SERVER_TYPE = new ThingTypeUID(BINDING_ID, "salus-cloud-bridge");
39 public static final ThingTypeUID SALUS_AWS_TYPE = new ThingTypeUID(BINDING_ID, "salus-aws-bridge");
41 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(SALUS_DEVICE_TYPE,
42 SALUS_IT600_DEVICE_TYPE, SALUS_SERVER_TYPE, SALUS_AWS_TYPE);
44 public static class SalusCloud {
45 public static final String DEFAULT_URL = "https://eu.salusconnect.io";
48 public static class SalusDevice {
49 public static final String DSN = "dsn";
50 public static final String OEM_MODEL = "oem_model";
51 public static final String IT_600 = "it600";
54 public static class It600Device {
55 public static class HoldType {
56 public static final int AUTO = 0;
57 public static final int MANUAL = 2;
58 public static final int TEMPORARY_MANUAL = 1;
59 public static final int OFF = 7;
63 public static class Channels {
64 public static class It600 {
65 public static final String TEMPERATURE = "temperature";
66 public static final String EXPECTED_TEMPERATURE = "expected-temperature";
67 public static final String WORK_TYPE = "work-type";
70 public static final String GENERIC_OUTPUT_CHANNEL = "generic-output-channel";
71 public static final String GENERIC_INPUT_CHANNEL = "generic-input-channel";
72 public static final String GENERIC_OUTPUT_BOOL_CHANNEL = "generic-output-bool-channel";
73 public static final String GENERIC_INPUT_BOOL_CHANNEL = "generic-input-bool-channel";
74 public static final String GENERIC_OUTPUT_NUMBER_CHANNEL = "generic-output-number-channel";
75 public static final String GENERIC_INPUT_NUMBER_CHANNEL = "generic-input-number-channel";
76 public static final String TEMPERATURE_OUTPUT_NUMBER_CHANNEL = "temperature-output-channel";
77 public static final String TEMPERATURE_INPUT_NUMBER_CHANNEL = "temperature-input-channel";
78 public static final Set<String> TEMPERATURE_CHANNELS = Set.of("ep_9:sIT600TH:AutoCoolingSetpoint_x100",
79 "ep_9:sIT600TH:AutoCoolingSetpoint_x100_a", "ep_9:sIT600TH:AutoHeatingSetpoint_x100",
80 "ep_9:sIT600TH:AutoHeatingSetpoint_x100_a", "ep_9:sIT600TH:CoolingSetpoint_x100",
81 "ep_9:sIT600TH:CoolingSetpoint_x100_a", "ep_9:sIT600TH:FloorCoolingMax_x100",
82 "ep_9:sIT600TH:FloorCoolingMin_x100", "ep_9:sIT600TH:FloorHeatingMax_x100",
83 "ep_9:sIT600TH:FloorHeatingMin_x100", "ep_9:sIT600TH:FrostSetpoint_x100",
84 "ep_9:sIT600TH:HeatingSetpoint_x100", "ep_9:sIT600TH:HeatingSetpoint_x100_a",
85 "ep_9:sIT600TH:LocalTemperature_x100", "ep_9:sIT600TH:MaxCoolSetpoint_x100",
86 "ep_9:sIT600TH:MaxHeatSetpoint_x100", "ep_9:sIT600TH:MaxHeatSetpoint_x100_a",
87 "ep_9:sIT600TH:MinCoolSetpoint_x100", "ep_9:sIT600TH:MinCoolSetpoint_x100_a",
88 "ep_9:sIT600TH:MinHeatSetpoint_x100", "ep_9:sIT600TH:PipeTemperature_x100",
89 "ep_9:sIT600TH:SetAutoCoolingSetpoint_x100", "ep_9:sIT600TH:SetAutoHeatingSetpoint_x100",
90 "ep_9:sIT600TH:SetCoolingSetpoint_x100", "ep_9:sIT600TH:SetFloorCoolingMin_x100",
91 "ep_9:sIT600TH:SetFloorHeatingMax_x100", "ep_9:sIT600TH:SetFloorHeatingMin_x100",
92 "ep_9:sIT600TH:SetFrostSetpoint_x100", "ep_9:sIT600TH:SetHeatingSetpoint_x100",
93 "ep_9:sIT600TH:SetMaxHeatSetpoint_x100", "ep_9:sIT600TH:SetMinCoolSetpoint_x100");