2 * Copyright (c) 2010-2022 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.konnected.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link KonnectedBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Zachary Christiansen - Initial contribution
25 public class KonnectedBindingConstants {
27 public static final String BINDING_ID = "konnected";
29 // List of all Thing Type UIDs
30 public static final ThingTypeUID THING_TYPE_MODULE = new ThingTypeUID(BINDING_ID, "module");
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";
39 // PIN_TO_ZONE array, this array maps an index location as a zone to the corresponding
41 public static final Integer[] PIN_TO_ZONE = { 0, 1, 2, 5, 6, 7, 9, 8 };
43 public static final String WEBHOOK_APP = "app_security";
45 public static final String CHANNEL_ZONE = "zone";
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";
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";
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";
61 public static final String CHANNEL_ONVALUE = "onvalue";