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.max.internal.device;
16 * This enumeration represents the different message types provided by the MAX! Cube protocol.
18 * @author Andreas Heil (info@aheil.de) - Initial contribution
20 public enum DeviceType {
24 HeatingThermostatPlus(2),
25 WallMountedThermostat(3),
29 private final int value;
31 private DeviceType(int value) {
35 public int getValue() {
39 public static DeviceType create(int value) {
44 return HeatingThermostat;
46 return HeatingThermostatPlus;
48 return WallMountedThermostat;
50 return ShutterContact;
59 public String toString() {
68 return "Wallmounted Thermostat";
70 return "Shutter Contact";