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.plugwise.internal.protocol.field;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Enumerates Plugwise devices.
20 * @author Wouter Born - Initial contribution
23 public enum DeviceType {
25 STICK("Stick", false, false),
26 CIRCLE("Circle", true, false),
27 CIRCLE_PLUS("Circle+", true, false),
28 SCAN("Scan", false, true),
29 SENSE("Sense", false, true),
30 STEALTH("Stealth", true, false),
31 SWITCH("Switch", false, true),
32 UNKNOWN("Unknown", false, false);
34 private final String string;
35 private final boolean relayDevice;
36 private final boolean sleepingEndDevice;
38 DeviceType(String string, boolean relayDevice, boolean sleepingEndDevice) {
40 this.relayDevice = relayDevice;
41 this.sleepingEndDevice = sleepingEndDevice;
44 public boolean isRelayDevice() {
48 public boolean isSleepingEndDevice() {
49 return sleepingEndDevice;
53 public String toString() {