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.lgwebos.internal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.jupnp.model.types.ServiceType;
19 import org.openhab.core.thing.ThingTypeUID;
22 * This class defines common constants, which are used across the whole binding.
24 * @author Sebastian Prehn - Initial contribution
27 public class LGWebOSBindingConstants {
29 public static final String BINDING_ID = "lgwebos";
31 public static final ThingTypeUID THING_TYPE_WEBOSTV = new ThingTypeUID(BINDING_ID, "WebOSTV");
33 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_WEBOSTV);
35 public static final ServiceType UPNP_SERVICE_TYPE = new ServiceType("lge-com", "webos-second-screen", 1);
38 * Config names must match property names in
39 * - WebOSConfiguration
40 * - parameter names in OH-INF/config/config.xml
41 * - property names in OH-INF/thing/thing-types.xml
43 public static final String CONFIG_HOST = "host";
44 public static final String CONFIG_KEY = "key";
45 public static final String CONFIG_MAC_ADDRESS = "macAddress";
48 * Property names must match property names in
49 * - property names in OH-INF/thing/thing-types.xml
51 public static final String PROPERTY_DEVICE_ID = "deviceId";
52 public static final String PROPERTY_DEVICE_OS = "deviceOS";
53 public static final String PROPERTY_DEVICE_OS_VERSION = "deviceOSVersion";
54 public static final String PROPERTY_DEVICE_OS_RELEASE_VERSION = "deviceOSReleaseVersion";
55 public static final String PROPERTY_LAST_CONNECTED = "lastConnected";
58 * List of all Channel ids.
59 * Values have to match ids in thing-types.xml
61 public static final String CHANNEL_VOLUME = "volume";
62 public static final String CHANNEL_POWER = "power";
63 public static final String CHANNEL_MUTE = "mute";
64 public static final String CHANNEL_CHANNEL = "channel";
65 public static final String CHANNEL_TOAST = "toast";
66 public static final String CHANNEL_MEDIA_PLAYER = "mediaPlayer";
67 public static final String CHANNEL_MEDIA_STOP = "mediaStop";
68 public static final String CHANNEL_APP_LAUNCHER = "appLauncher";
69 public static final String CHANNEL_RCBUTTON = "rcButton";
71 public static final int DEFAULT_WS_PORT = 3000;
72 public static final int DEFAULT_WSS_PORT = 3001;