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.coolmasternet.internal;
16 import java.util.stream.Collectors;
17 import java.util.stream.Stream;
19 import org.eclipse.jdt.annotation.NonNullByDefault;
20 import org.openhab.core.thing.ThingTypeUID;
23 * Defines constants used across the whole binding.
25 * @author Angus Gratton - Initial contribution
28 public class CoolMasterNetBindingConstants {
30 public static final String BINDING_ID = "coolmasternet";
32 // list of all Thing Type UIDs
33 public static final ThingTypeUID THING_TYPE_CONTROLLER = new ThingTypeUID(BINDING_ID, "controller");
34 public static final ThingTypeUID THING_TYPE_HVAC = new ThingTypeUID(BINDING_ID, "hvac");
36 // list of all Channel ids
37 public static final String ON = "on";
38 public static final String MODE = "mode";
39 public static final String SET_TEMP = "set_temp";
40 public static final String FAN_SPEED = "fan_speed";
41 public static final String LOUVRE = "louvre";
42 public static final String CURRENT_TEMP = "current_temp";
44 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Stream.of(THING_TYPE_CONTROLLER, THING_TYPE_HVAC)
45 .collect(Collectors.toSet());