]> git.basschouten.com Git - openhab-addons.git/blob
5909e516ee84b4ad749a860e97454662013fafa2
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.coolmasternet.internal;
14
15 import java.util.Set;
16 import java.util.stream.Collectors;
17 import java.util.stream.Stream;
18
19 import org.eclipse.jdt.annotation.NonNullByDefault;
20 import org.openhab.core.thing.ThingTypeUID;
21
22 /**
23  * Defines constants used across the whole binding.
24  *
25  * @author Angus Gratton - Initial contribution
26  */
27 @NonNullByDefault
28 public class CoolMasterNetBindingConstants {
29
30     public static final String BINDING_ID = "coolmasternet";
31
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");
35
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";
43
44     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Stream.of(THING_TYPE_CONTROLLER, THING_TYPE_HVAC)
45             .collect(Collectors.toSet());
46 }