]> git.basschouten.com Git - openhab-addons.git/blob
0df4eeec8149f09b62c3c16c1ccbbebf8037ff6c
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.loxone.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * Common constants used across the whole binding.
20  *
21  * @author Pawel Pieczul - Initial contribution
22  */
23 @NonNullByDefault
24 public class LxBindingConstants {
25
26     public static final String BINDING_ID = "loxone";
27
28     // List of all Thing Type UIDs
29     public static final ThingTypeUID THING_TYPE_MINISERVER = new ThingTypeUID(BINDING_ID, "miniserver");
30
31     // Channel Type IDs - read/write
32     public static final String MINISERVER_CHANNEL_TYPE_SWITCH = "switchTypeId";
33     public static final String MINISERVER_CHANNEL_TYPE_LIGHT_CTRL = "lightCtrlTypeId";
34     public static final String MINISERVER_CHANNEL_TYPE_RADIO_BUTTON = "radioButtonTypeId";
35     public static final String MINISERVER_CHANNEL_TYPE_ROLLERSHUTTER = "rollerShutterTypeId";
36     public static final String MINISERVER_CHANNEL_TYPE_DIMMER = "dimmerTypeId";
37     public static final String MINISERVER_CHANNEL_TYPE_NUMBER = "numberTypeId";
38     public static final String MINISERVER_CHANNEL_TYPE_COLORPICKER = "colorPickerTypeId";
39     public static final String MINISERVER_CHANNEL_TYPE_IROOM_V2_ACTIVE_MODE = "iRoomV2ActiveModeTypeId";
40     public static final String MINISERVER_CHANNEL_TYPE_IROOM_V2_OPERATING_MODE = "iRoomV2OperatingModeTypeId";
41     public static final String MINISERVER_CHANNEL_TYPE_IROOM_V2_PREPARE_STATE = "iRoomV2PrepareStateTypeId";
42     public static final String MINISERVER_CHANNEL_TYPE_IROOM_V2_COMFORT_TOLERANCE = "iRoomV2ComfortToleranceTypeId";
43     // Channel Type IDs - read only
44     public static final String MINISERVER_CHANNEL_TYPE_RO_TEXT = "roTextTypeId";
45     public static final String MINISERVER_CHANNEL_TYPE_RO_SWITCH = "roSwitchTypeId";
46     public static final String MINISERVER_CHANNEL_TYPE_RO_ANALOG = "roAnalogTypeId";
47     public static final String MINISERVER_CHANNEL_TYPE_RO_NUMBER = "roNumberTypeId";
48     public static final String MINISERVER_CHANNEL_TYPE_RO_DATETIME = "roDateTimeTypeId";
49
50     // Miniserver properties and parameters
51     public static final String MINISERVER_PARAM_HOST = "host";
52     public static final String MINISERVER_PARAM_PORT = "port";
53     public static final String MINISERVER_PROPERTY_MINISERVER_NAME = "name";
54     public static final String MINISERVER_PROPERTY_PROJECT_NAME = "project";
55     public static final String MINISERVER_PROPERTY_CLOUD_ADDRESS = "cloudAddress";
56
57     // Location as configured on the Miniserver - it may be different to the Thing location property, which is user
58     // defined and influences the grouping of items in the UI
59     public static final String MINISERVER_PROPERTY_PHYSICAL_LOCATION = "physicalLocation";
60 }