]> git.basschouten.com Git - openhab-addons.git/blob
a8b54f309be298848e6f8f6e05673aaf114fcada
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.daikin.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 DaikinBindingConstants} class defines common constants, which are
25  * used across the whole binding.
26  *
27  * @author Tim Waterhouse - Initial contribution
28  * @author Paul Smedley - Modifications to support Airbase Controllers
29  */
30 @NonNullByDefault
31 public class DaikinBindingConstants {
32
33     public static final String BINDING_ID = "daikin";
34
35     // List of all Thing Type UIDs
36     public static final ThingTypeUID THING_TYPE_AC_UNIT = new ThingTypeUID(BINDING_ID, "ac_unit");
37     public static final ThingTypeUID THING_TYPE_AIRBASE_AC_UNIT = new ThingTypeUID(BINDING_ID, "airbase_ac_unit");
38
39     // List of all Channel ids
40     public static final String CHANNEL_AC_TEMP = "settemp";
41     public static final String CHANNEL_INDOOR_TEMP = "indoortemp";
42     public static final String CHANNEL_OUTDOOR_TEMP = "outdoortemp";
43     public static final String CHANNEL_AC_POWER = "power";
44     public static final String CHANNEL_AC_MODE = "mode";
45     public static final String CHANNEL_AC_HOMEKITMODE = "homekitmode";
46     public static final String CHANNEL_AC_FAN_SPEED = "fanspeed";
47     public static final String CHANNEL_AC_FAN_DIR = "fandir";
48     public static final String CHANNEL_HUMIDITY = "humidity";
49     public static final String CHANNEL_CMP_FREQ = "cmpfrequency";
50
51     // Prefix and channel id format for energy - currentyear
52     public static final String CHANNEL_ENERGY_HEATING_CURRENTYEAR = "energyheatingcurrentyear";
53     public static final String CHANNEL_ENERGY_COOLING_CURRENTYEAR = "energycoolingcurrentyear";
54
55     public static final String CHANNEL_ENERGY_HEATING_TODAY = "energyheatingtoday";
56     public static final String CHANNEL_ENERGY_HEATING_THISWEEK = "energyheatingthisweek";
57     public static final String CHANNEL_ENERGY_HEATING_LASTWEEK = "energyheatinglastweek";
58     public static final String CHANNEL_ENERGY_COOLING_TODAY = "energycoolingtoday";
59     public static final String CHANNEL_ENERGY_COOLING_THISWEEK = "energycoolingthisweek";
60     public static final String CHANNEL_ENERGY_COOLING_LASTWEEK = "energycoolinglastweek";
61
62     public static final String CHANNEL_ENERGY_STRING_FORMAT = "%s-%d";
63
64     public static final String CHANNEL_AC_SPECIALMODE = "specialmode";
65     public static final String CHANNEL_AC_STREAMER = "streamer";
66
67     // additional channels for Airbase Controller
68     public static final String CHANNEL_AIRBASE_AC_FAN_SPEED = "airbasefanspeed";
69     public static final String CHANNEL_AIRBASE_AC_ZONE = "zone";
70
71     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Collections
72             .unmodifiableSet(Stream.of(THING_TYPE_AC_UNIT, THING_TYPE_AIRBASE_AC_UNIT).collect(Collectors.toSet()));
73 }