]> git.basschouten.com Git - openhab-addons.git/blob
2ccdb70aee4a8c5d0b53e4e114d661243405f061
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.konnected.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link KonnectedBindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Zachary Christiansen - Initial contribution
23  */
24 @NonNullByDefault
25 public class KonnectedBindingConstants {
26
27     public static final String BINDING_ID = "konnected";
28
29     // List of all Thing Type UIDs
30     public static final ThingTypeUID THING_TYPE_MODULE = new ThingTypeUID(BINDING_ID, "module");
31
32     // Thing config properties
33     public static final String HOST = "ipAddress";
34     public static final String MAC_ADDR = "macAddress";
35     public static final String CALLBACK_PATH = "callBackPath";
36     public static final String REQUEST_TIMEOUT = "request_timeout";
37     public static final String RETRY_COUNT = "retry_count";
38
39     // PIN_TO_ZONE array, this array maps an index location as a zone to the corresponding
40     // pin location
41     public static final Integer[] PIN_TO_ZONE = { 0, 1, 2, 5, 6, 7, 9, 8 };
42
43     public static final String WEBHOOK_APP = "app_security";
44
45     public static final String CHANNEL_ZONE = "zone";
46
47     // channeltypeids
48     public static final String CHANNEL_SWITCH = "konnected:switch";
49     public static final String CHANNEL_ACTUATOR = "konnected:actuator";
50     public static final String CHANNEL_TEMPERATURE = "konnected:temperature";
51     public static final String CHANNEL_HUMIDITY = "konnected:humidity";
52
53     public static final String CHANNEL_TEMPERATURE_TYPE = "tempsensorType";
54     public static final String CHANNEL_TEMPERATURE_DS18B20_ADDRESS = "ds18b20_address";
55     public static final String CHANNEL_TEMPERATRUE_POLL = "pollinterval";
56
57     public static final String CHANNEL_ACTUATOR_TIMES = "times";
58     public static final String CHANNEL_ACTUATOR_MOMENTARY = "momentary";
59     public static final String CHANNEL_ACTUATOR_PAUSE = "pause";
60
61     public static final String CHANNEL_ONVALUE = "onvalue";
62 }