]> git.basschouten.com Git - openhab-addons.git/blob
62ec6d36bb9ed311088364d4f2c1404b09961454
[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.mynice.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link MyNiceBindingConstants} class defines common constants, which are used across the whole binding.
20  *
21  * @author GaĆ«l L'hopital - Initial contribution
22  */
23 @NonNullByDefault
24 public class MyNiceBindingConstants {
25     private static final String BINDING_ID = "mynice";
26
27     // List of all Channel ids
28     public static final String CHANNEL_STATUS = "status";
29     public static final String CHANNEL_OBSTRUCTED = "obstruct";
30     public static final String CHANNEL_MOVING = "moving";
31     public static final String CHANNEL_COMMAND = "command";
32     public static final String CHANNEL_T4_COMMAND = "t4command";
33     public static final String CHANNEL_COURTESY = "courtesy";
34
35     // List of all Thing Type UIDs
36     public static final ThingTypeUID BRIDGE_TYPE_IT4WIFI = new ThingTypeUID(BINDING_ID, "it4wifi");
37     public static final ThingTypeUID THING_TYPE_SWING = new ThingTypeUID(BINDING_ID, "swing");
38     public static final ThingTypeUID THING_TYPE_SLIDING = new ThingTypeUID(BINDING_ID, "sliding");
39
40     // Configuration element of a portal
41     public static final String DEVICE_ID = "id";
42
43     public static final String ALLOWED_T4 = "allowedT4";
44 }