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.irtrans.internal;
15 import org.openhab.core.thing.ThingTypeUID;
18 * The {@link IRtransBindingConstants} contains constants used by the IRtrans
21 * @author Karel Goderis - Initial contribution
24 public class IRtransBindingConstants {
26 public static final String BINDING_ID = "irtrans";
28 // List of all Thing Type UIDs
29 public static final ThingTypeUID THING_TYPE_ETHERNET_BRIDGE = new ThingTypeUID(BINDING_ID, "ethernet");
30 public static final ThingTypeUID THING_TYPE_BLASTER = new ThingTypeUID(BINDING_ID, "blaster");
32 // List of all Channel ids
33 public static final String CHANNEL_IO = "io";
35 // List of all Channel types
36 public static final String BLASTER_CHANNEL_TYPE = "blaster";
37 public static final String RECEIVER_CHANNEL_TYPE = "receiver";
39 // List of possible leds on an IRtrans transceiver
54 private final String text;
56 private Led(final String text) {
61 public String toString() {
65 public static Led get(String valueSelectorText) throws IllegalArgumentException {
66 for (Led c : Led.values()) {
67 if (c.text.equals(valueSelectorText)) {
72 throw new IllegalArgumentException("Not valid value selector");