]> git.basschouten.com Git - openhab-addons.git/blob
24c66bc34f8262d5a0f2be560e24e064396082bc
[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.sensibo.internal;
14
15 import java.util.Collections;
16 import java.util.Set;
17 import java.util.stream.Collectors;
18 import java.util.stream.Stream;
19
20 import org.eclipse.jdt.annotation.NonNullByDefault;
21 import org.openhab.core.thing.ThingTypeUID;
22
23 /**
24  * The {@link SensiboBindingConstants} class defines common constants, which are
25  * used across the whole binding.
26  *
27  * @author Arne Seime - Initial contribution
28  */
29 @NonNullByDefault
30 public class SensiboBindingConstants {
31     public static final String BINDING_ID = "sensibo";
32     // List of all Thing Type UIDs
33     public static final ThingTypeUID THING_TYPE_ACCOUNT = new ThingTypeUID(BINDING_ID, "account");
34     public static final ThingTypeUID THING_TYPE_SENSIBOSKY = new ThingTypeUID(BINDING_ID, "sensibosky");
35     // Fixed channels
36     public static final String CHANNEL_CURRENT_TEMPERATURE = "currentTemperature";
37     public static final String CHANNEL_CURRENT_HUMIDITY = "currentHumidity";
38     public static final String CHANNEL_MASTER_SWITCH = "masterSwitch";
39     public static final String CHANNEL_TIMER = "timer";
40
41     // Dynamic channels
42     public static final String CHANNEL_FAN_LEVEL = "fanLevel";
43     public static final String CHANNEL_MODE = "mode";
44     public static final String CHANNEL_SWING_MODE = "swingMode";
45     public static final String CHANNEL_TARGET_TEMPERATURE = "targetTemperature";
46
47     public static final String CHANNEL_TYPE_FAN_LEVEL = "fanLevel";
48     public static final String CHANNEL_TYPE_MODE = "mode";
49     public static final String CHANNEL_TYPE_SWING_MODE = "swing";
50     public static final String CHANNEL_TYPE_TARGET_TEMPERATURE = "targetTemperature";
51
52     public static final Set<String> DYNAMIC_CHANNEL_TYPES = Collections.unmodifiableSet(Stream
53             .of(CHANNEL_TYPE_FAN_LEVEL, CHANNEL_TYPE_MODE, CHANNEL_TYPE_SWING_MODE, CHANNEL_TYPE_TARGET_TEMPERATURE)
54             .collect(Collectors.toSet()));
55 }