]> git.basschouten.com Git - openhab-addons.git/blob
3c3fe621185c773adfc3f05edb36c5eac6febed7
[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.unifi.internal;
14
15 import org.openhab.core.thing.ThingTypeUID;
16
17 /**
18  * The {@link UniFiBindingConstants} class defines common constants, which are
19  * used across the UniFi binding.
20  *
21  * @author Matthew Bowman - Initial contribution
22  * @author Patrik Wimnell - Blocking / Unblocking client support
23  */
24 public class UniFiBindingConstants {
25
26     public static final String BINDING_ID = "unifi";
27
28     // List of all Thing Types
29     public static final ThingTypeUID THING_TYPE_CONTROLLER = new ThingTypeUID(BINDING_ID, "controller");
30     public static final ThingTypeUID THING_TYPE_WIRED_CLIENT = new ThingTypeUID(BINDING_ID, "wiredClient");
31     public static final ThingTypeUID THING_TYPE_WIRELESS_CLIENT = new ThingTypeUID(BINDING_ID, "wirelessClient");
32
33     // List of common wired + wireless client channels
34     public static final String CHANNEL_ONLINE = "online";
35     public static final String CHANNEL_SITE = "site";
36     public static final String CHANNEL_MAC_ADDRESS = "macAddress";
37     public static final String CHANNEL_IP_ADDRESS = "ipAddress";
38     public static final String CHANNEL_UPTIME = "uptime";
39     public static final String CHANNEL_LAST_SEEN = "lastSeen";
40     public static final String CHANNEL_BLOCKED = "blocked";
41     public static final String CHANNEL_RECONNECT = "reconnect";
42
43     // List of additional wired client channels
44     // ..coming soon..
45
46     // List of additional wireless client channels
47     public static final String CHANNEL_AP = "ap";
48     public static final String CHANNEL_ESSID = "essid";
49     public static final String CHANNEL_RSSI = "rssi";
50
51     // List of all Parameters
52     public static final String PARAMETER_HOST = "host";
53     public static final String PARAMETER_PORT = "port";
54     public static final String PARAMETER_USERNAME = "username";
55     public static final String PARAMETER_PASSWORD = "password";
56     public static final String PARAMETER_UNIFIOS = "unifios";
57     public static final String PARAMETER_SITE = "site";
58     public static final String PARAMETER_CID = "cid";
59 }