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.sensibo.internal;
15 import java.util.Collections;
17 import java.util.stream.Collectors;
18 import java.util.stream.Stream;
20 import org.eclipse.jdt.annotation.NonNullByDefault;
21 import org.openhab.core.thing.ThingTypeUID;
24 * The {@link SensiboBindingConstants} class defines common constants, which are
25 * used across the whole binding.
27 * @author Arne Seime - Initial contribution
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");
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";
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";
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";
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()));