2 * Copyright (c) 2010-2023 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.silvercrestwifisocket.internal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.binding.silvercrestwifisocket.internal.enums.SilvercrestWifiSocketVendor;
19 import org.openhab.core.thing.ThingTypeUID;
22 * The {@link SilvercrestWifiSocketBindingConstants} class defines common constants, which are
23 * used across the whole binding.
25 * @author Jaime Vaz - Initial contribution
26 * @author Christian Heimerl - for integration of EasyHome
29 public class SilvercrestWifiSocketBindingConstants {
34 public static final String BINDING_ID = "silvercrestwifisocket";
37 * List of all Thing Type UIDs.
39 public static final ThingTypeUID THING_TYPE_WIFI_SOCKET = new ThingTypeUID(BINDING_ID, "wifiSocket");
42 * List of all Channel ids
44 public static final String WIFI_SOCKET_CHANNEL_ID = "switch";
47 * The supported thing types.
49 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_WIFI_SOCKET);
51 // -------------- Configuration arguments ----------------
53 * Mac address configuration argument key.
55 public static final String MAC_ADDRESS_ARG = "macAddress";
57 * Wifi socket update interval configuration argument key.
59 public static final String UPDATE_INTERVAL_ARG = "updateInterval";
61 * Host address configuration argument key.
63 public static final String HOST_ADDRESS_ARG = "hostAddress";
65 * Host address configuration argument key.
67 public static final String VENDOR_ARG = "vendor";
69 // -------------- Default values ----------------
71 * Default Wifi socket refresh interval.
73 public static final long DEFAULT_REFRESH_INTERVAL = 60;
76 * Default Wifi socket vendor.
78 public static final SilvercrestWifiSocketVendor DEFAULT_VENDOR = SilvercrestWifiSocketVendor.LIDL_SILVERCREST;
81 * Default Wifi socket default UDP port.
83 public static final int WIFI_SOCKET_DEFAULT_UDP_PORT = 8530;
86 * Discovery timeout in seconds.
88 public static final int DISCOVERY_TIMEOUT_SECONDS = 4;