]> git.basschouten.com Git - openhab-addons.git/blob
a17dd71cc18a585e7b4ec0058356aeda945f9659
[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.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 ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "bridge");
28     public static final String CONFIG_DESCRIPTION_URI_CHANNEL = "channel-type:homematic:config";
29
30     /**
31      * A thing's config-description-uri is generally composed as follows:<br>
32      * {@link #CONFIG_DESCRIPTION_URI_THING_PREFIX}:{@link ThingTypeUID}
33      */
34     public static final String CONFIG_DESCRIPTION_URI_THING_PREFIX = "thing-type";
35
36     public static final String PROPERTY_VENDOR_NAME = "eQ-3 AG";
37
38     public static final String ITEM_TYPE_SWITCH = "Switch";
39     public static final String ITEM_TYPE_ROLLERSHUTTER = "Rollershutter";
40     public static final String ITEM_TYPE_CONTACT = "Contact";
41     public static final String ITEM_TYPE_STRING = "String";
42     public static final String ITEM_TYPE_NUMBER = "Number";
43     public static final String ITEM_TYPE_DIMMER = "Dimmer";
44     public static final String ITEM_TYPE_DATETIME = "DateTime";
45
46     public static final String CHANNEL_TYPE_DUTY_CYCLE_RATIO = "DUTY_CYCLE_RATIO";
47
48     public static final String CATEGORY_BATTERY = "Battery";
49     public static final String CATEGORY_ALARM = "Alarm";
50     public static final String CATEGORY_HUMIDITY = "Humidity";
51     public static final String CATEGORY_TEMPERATURE = "Temperature";
52     public static final String CATEGORY_MOTION = "Motion";
53     public static final String CATEGORY_PRESSURE = "Pressure";
54     public static final String CATEGORY_SMOKE = "Smoke";
55     public static final String CATEGORY_WATER = "Water";
56     public static final String CATEGORY_WIND = "Wind";
57     public static final String CATEGORY_RAIN = "Rain";
58     public static final String CATEGORY_ENERGY = "Energy";
59     public static final String CATEGORY_BLINDS = "Blinds";
60     public static final String CATEGORY_CONTACT = "Contact";
61     public static final String CATEGORY_SWITCH = "Switch";
62
63     public static final String PROPERTY_BATTERY_TYPE = "batteryType";
64     public static final String PROPERTY_AES_KEY = "aesKey";
65     public static final String PROPERTY_DYNAMIC_FUNCTION_FORMAT = "dynamicFunction-%d";
66
67     public static final int INSTALL_MODE_NORMAL = 1;
68
69     public static final int CONFIGURATION_CHANNEL_NUMBER = -1;
70
71     public static final String RX_BURST_MODE = "BURST";
72     public static final String RX_WAKEUP_MODE = "WAKEUP";
73 }