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;
15 import java.util.Collections;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.binding.silvercrestwifisocket.internal.enums.SilvercrestWifiSocketVendor;
20 import org.openhab.core.thing.ThingTypeUID;
23 * The {@link SilvercrestWifiSocketBindingConstants} class defines common constants, which are
24 * used across the whole binding.
26 * @author Jaime Vaz - Initial contribution
27 * @author Christian Heimerl - for integration of EasyHome
30 public class SilvercrestWifiSocketBindingConstants {
35 public static final String BINDING_ID = "silvercrestwifisocket";
38 * List of all Thing Type UIDs.
40 public static final ThingTypeUID THING_TYPE_WIFI_SOCKET = new ThingTypeUID(BINDING_ID, "wifiSocket");
43 * List of all Channel ids
45 public static final String WIFI_SOCKET_CHANNEL_ID = "switch";
48 * The supported thing types.
50 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Collections.singleton(THING_TYPE_WIFI_SOCKET);
52 // -------------- Configuration arguments ----------------
54 * Mac address configuration argument key.
56 public static final String MAC_ADDRESS_ARG = "macAddress";
58 * Wifi socket update interval configuration argument key.
60 public static final String UPDATE_INTERVAL_ARG = "updateInterval";
62 * Host address configuration argument key.
64 public static final String HOST_ADDRESS_ARG = "hostAddress";
66 * Host address configuration argument key.
68 public static final String VENDOR_ARG = "vendor";
70 // -------------- Default values ----------------
72 * Default Wifi socket refresh interval.
74 public static final long DEFAULT_REFRESH_INTERVAL = 60;
77 * Default Wifi socket vendor.
79 public static final SilvercrestWifiSocketVendor DEFAULT_VENDOR = SilvercrestWifiSocketVendor.LIDL_SILVERCREST;
82 * Default Wifi socket default UDP port.
84 public static final int WIFI_SOCKET_DEFAULT_UDP_PORT = 8530;
87 * Discovery timeout in seconds.
89 public static final int DISCOVERY_TIMEOUT_SECONDS = 4;