2 * Copyright (c) 2010-2024 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.daikin.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 DaikinBindingConstants} class defines common constants, which are
25 * used across the whole binding.
27 * @author Tim Waterhouse - Initial contribution
28 * @author Paul Smedley - Modifications to support Airbase Controllers
31 public class DaikinBindingConstants {
33 public static final String BINDING_ID = "daikin";
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");
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";
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";
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";
62 public static final String CHANNEL_ENERGY_STRING_FORMAT = "%s-%d";
64 public static final String CHANNEL_AC_SPECIALMODE = "specialmode";
65 public static final String CHANNEL_AC_STREAMER = "streamer";
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";
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()));