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.unifi.internal;
15 import org.openhab.core.thing.ThingTypeUID;
18 * The {@link UniFiBindingConstants} class defines common constants, which are
19 * used across the UniFi binding.
21 * @author Matthew Bowman - Initial contribution
22 * @author Patrik Wimnell - Blocking / Unblocking client support
24 public class UniFiBindingConstants {
26 public static final String BINDING_ID = "unifi";
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");
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";
43 // List of additional wired client channels
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";
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";