]> git.basschouten.com Git - openhab-addons.git/blob
1398e070c2b61532eb9a2ddbf0afc456db80b8b6
[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
40     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(SALUS_DEVICE_TYPE,
41             SALUS_IT600_DEVICE_TYPE, SALUS_SERVER_TYPE);
42
43     public static class SalusCloud {
44         public static final String DEFAULT_URL = "https://eu.salusconnect.io";
45     }
46
47     public static class SalusDevice {
48         public static final String DSN = "dsn";
49         public static final String OEM_MODEL = "oem_model";
50         public static final String IT_600 = "it600";
51     }
52
53     public static class It600Device {
54         public static class HoldType {
55             public static final int AUTO = 0;
56             public static final int MANUAL = 2;
57             public static final int TEMPORARY_MANUAL = 1;
58             public static final int OFF = 7;
59         }
60     }
61
62     public static class Channels {
63         public static class It600 {
64             public static final String TEMPERATURE = "temperature";
65             public static final String EXPECTED_TEMPERATURE = "expected-temperature";
66             public static final String WORK_TYPE = "work-type";
67         }
68
69         public static final String GENERIC_OUTPUT_CHANNEL = "generic-output-channel";
70         public static final String GENERIC_INPUT_CHANNEL = "generic-input-channel";
71         public static final String GENERIC_OUTPUT_BOOL_CHANNEL = "generic-output-bool-channel";
72         public static final String GENERIC_INPUT_BOOL_CHANNEL = "generic-input-bool-channel";
73         public static final String GENERIC_OUTPUT_NUMBER_CHANNEL = "generic-output-number-channel";
74         public static final String GENERIC_INPUT_NUMBER_CHANNEL = "generic-input-number-channel";
75         public static final String TEMPERATURE_OUTPUT_NUMBER_CHANNEL = "temperature-output-channel";
76         public static final String TEMPERATURE_INPUT_NUMBER_CHANNEL = "temperature-input-channel";
77         public static final Set<String> TEMPERATURE_CHANNELS = Set.of("ep_9:sIT600TH:AutoCoolingSetpoint_x100",
78                 "ep_9:sIT600TH:AutoCoolingSetpoint_x100_a", "ep_9:sIT600TH:AutoHeatingSetpoint_x100",
79                 "ep_9:sIT600TH:AutoHeatingSetpoint_x100_a", "ep_9:sIT600TH:CoolingSetpoint_x100",
80                 "ep_9:sIT600TH:CoolingSetpoint_x100_a", "ep_9:sIT600TH:FloorCoolingMax_x100",
81                 "ep_9:sIT600TH:FloorCoolingMin_x100", "ep_9:sIT600TH:FloorHeatingMax_x100",
82                 "ep_9:sIT600TH:FloorHeatingMin_x100", "ep_9:sIT600TH:FrostSetpoint_x100",
83                 "ep_9:sIT600TH:HeatingSetpoint_x100", "ep_9:sIT600TH:HeatingSetpoint_x100_a",
84                 "ep_9:sIT600TH:LocalTemperature_x100", "ep_9:sIT600TH:MaxCoolSetpoint_x100",
85                 "ep_9:sIT600TH:MaxHeatSetpoint_x100", "ep_9:sIT600TH:MaxHeatSetpoint_x100_a",
86                 "ep_9:sIT600TH:MinCoolSetpoint_x100", "ep_9:sIT600TH:MinCoolSetpoint_x100_a",
87                 "ep_9:sIT600TH:MinHeatSetpoint_x100", "ep_9:sIT600TH:PipeTemperature_x100",
88                 "ep_9:sIT600TH:SetAutoCoolingSetpoint_x100", "ep_9:sIT600TH:SetAutoHeatingSetpoint_x100",
89                 "ep_9:sIT600TH:SetCoolingSetpoint_x100", "ep_9:sIT600TH:SetFloorCoolingMin_x100",
90                 "ep_9:sIT600TH:SetFloorHeatingMax_x100", "ep_9:sIT600TH:SetFloorHeatingMin_x100",
91                 "ep_9:sIT600TH:SetFrostSetpoint_x100", "ep_9:sIT600TH:SetHeatingSetpoint_x100",
92                 "ep_9:sIT600TH:SetMaxHeatSetpoint_x100", "ep_9:sIT600TH:SetMinCoolSetpoint_x100");
93     }
94 }