]> git.basschouten.com Git - openhab-addons.git/blob
1421d30eb47b9d928c84c7300947e865ae34e7b0
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.homematic.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * Defines common constants, which are used across the binding.
20  *
21  * @author Gerhard Riegler - Initial contribution
22  */
23 @NonNullByDefault
24 public class HomematicBindingConstants {
25
26     public static final String BINDING_ID = "homematic";
27     public static final String GATEWAY_POOL_NAME = "homematicGateway";
28     public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "bridge");
29     public static final String CONFIG_DESCRIPTION_URI_CHANNEL = "channel-type:homematic:config";
30
31     /**
32      * A thing's config-description-uri is generally composed as follows:<br>
33      * {@link #CONFIG_DESCRIPTION_URI_THING_PREFIX}:{@link ThingTypeUID}
34      */
35     public static final String CONFIG_DESCRIPTION_URI_THING_PREFIX = "thing-type";
36
37     public static final String PROPERTY_VENDOR_NAME = "eQ-3 AG";
38
39     public static final String ITEM_TYPE_SWITCH = "Switch";
40     public static final String ITEM_TYPE_ROLLERSHUTTER = "Rollershutter";
41     public static final String ITEM_TYPE_CONTACT = "Contact";
42     public static final String ITEM_TYPE_STRING = "String";
43     public static final String ITEM_TYPE_NUMBER = "Number";
44     public static final String ITEM_TYPE_DIMMER = "Dimmer";
45     public static final String ITEM_TYPE_DATETIME = "DateTime";
46
47     public static final String CHANNEL_TYPE_DUTY_CYCLE_RATIO = "DUTY_CYCLE_RATIO";
48
49     public static final String CATEGORY_BATTERY = "Battery";
50     public static final String CATEGORY_ALARM = "Alarm";
51     public static final String CATEGORY_HUMIDITY = "Humidity";
52     public static final String CATEGORY_TEMPERATURE = "Temperature";
53     public static final String CATEGORY_MOTION = "Motion";
54     public static final String CATEGORY_PRESSURE = "Pressure";
55     public static final String CATEGORY_SMOKE = "Smoke";
56     public static final String CATEGORY_WATER = "Water";
57     public static final String CATEGORY_WIND = "Wind";
58     public static final String CATEGORY_RAIN = "Rain";
59     public static final String CATEGORY_ENERGY = "Energy";
60     public static final String CATEGORY_BLINDS = "Blinds";
61     public static final String CATEGORY_CONTACT = "Contact";
62     public static final String CATEGORY_SWITCH = "Switch";
63
64     public static final String PROPERTY_BATTERY_TYPE = "batteryType";
65     public static final String PROPERTY_AES_KEY = "aesKey";
66     public static final String PROPERTY_DYNAMIC_FUNCTION_FORMAT = "dynamicFunction-%d";
67
68     public static final int INSTALL_MODE_NORMAL = 1;
69
70     public static final int CONFIGURATION_CHANNEL_NUMBER = -1;
71
72     public static final String RX_BURST_MODE = "BURST";
73     public static final String RX_WAKEUP_MODE = "WAKEUP";
74 }