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.lirc.internal;
16 import java.util.stream.Collectors;
17 import java.util.stream.Stream;
19 import org.openhab.core.thing.ThingTypeUID;
22 * The {@link LIRCBindingConstants} class defines common constants, which are
23 * used across the whole binding.
25 * @author Andrew Nagle - Initial contribution
27 public class LIRCBindingConstants {
29 public static final String BINDING_ID = "lirc";
30 public static final int DISCOVERY_TIMOUT = 5;
32 // List of all Thing Type UIDs
33 public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "bridge");
34 public static final ThingTypeUID THING_TYPE_REMOTE = new ThingTypeUID(BINDING_ID, "remote");
36 // List of all channel ids
37 public static final String CHANNEL_EVENT = "event";
38 public static final String CHANNEL_TRANSMIT = "transmit";
40 // List of all supported thing types
41 public static final Set<ThingTypeUID> SUPPORTED_DEVICE_TYPES = Set.of(THING_TYPE_REMOTE);
42 public static final Set<ThingTypeUID> SUPPORTED_BRIDGE_TYPES = Set.of(THING_TYPE_BRIDGE);
43 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES = Stream.of(THING_TYPE_REMOTE, THING_TYPE_BRIDGE)
44 .collect(Collectors.toSet());
46 // List of all properties
47 public static final String PROPERTY_REMOTE = "remote";