]> git.basschouten.com Git - openhab-addons.git/blob
ecc290d325b3fc2e2714f3e4dd5dd4213380f802
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.salus.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  * @author Martin GrzeĊ›lowski - Initial contribution
22  */
23 /**
24  * The {@link SalusBindingConstants} class defines common constants, which are
25  * used across the whole binding.
26  *
27  * @author Martin Grzeslowski - Initial contribution
28  */
29 @NonNullByDefault
30 public class SalusBindingConstants {
31
32     public static final String BINDING_ID = "salus";
33
34     // List of all Thing Type UIDs
35
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");
40
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);
43
44     public static class SalusCloud {
45         public static final String DEFAULT_URL = "https://eu.salusconnect.io";
46     }
47
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";
52     }
53
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;
60         }
61     }
62
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";
68         }
69
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");
94     }
95 }