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.millheat.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17 import org.openhab.core.thing.type.ChannelTypeUID;
20 * The {@link MillheatBindingConstants} class defines common constants, which are
21 * used across the whole binding.
23 * @author Arne Seime - Initial contribution
26 public class MillheatBindingConstants {
27 private static final String BINDING_ID = "millheat";
28 // List of all Thing Type UIDs
29 public static final ThingTypeUID THING_TYPE_ACCOUNT = new ThingTypeUID(BINDING_ID, "account");
30 public static final ThingTypeUID THING_TYPE_HOME = new ThingTypeUID(BINDING_ID, "home");
31 public static final ThingTypeUID THING_TYPE_ROOM = new ThingTypeUID(BINDING_ID, "room");
32 public static final ThingTypeUID THING_TYPE_HEATER = new ThingTypeUID(BINDING_ID, "heater");
33 // List of all Channel ids
34 public static final String CHANNEL_CURRENT_TEMPERATURE = "currentTemperature";
35 public static final String CHANNEL_COMFORT_TEMPERATURE = "comfortTemperature";
36 public static final String CHANNEL_SLEEP_TEMPERATURE = "sleepTemperature";
37 public static final String CHANNEL_AWAY_TEMPERATURE = "awayTemperature";
38 public static final String CHANNEL_HEATING_ACTIVE = "heatingActive";
39 public static final String CHANNEL_FAN_ACTIVE = "fanActive";
40 public static final String CHANNEL_TARGET_TEMPERATURE = "targetTemperature";
41 public static final String CHANNEL_CURRENT_POWER = "currentEnergy";
42 public static final String CHANNEL_CURRENT_MODE = "currentMode";
43 public static final String CHANNEL_PROGRAM = "program";
44 public static final String CHANNEL_INDEPENDENT = "independent";
45 public static final String CHANNEL_WINDOW_STATE = "window";
46 public static final String CHANNEL_MASTER_SWITCH = "masterSwitch";
48 // Vacation mode channels
49 public static final String CHANNEL_HOME_VACATION_TARGET_TEMPERATURE = "vacationModeTargetTemperature";
50 public static final String CHANNEL_HOME_VACATION_MODE = "vacationMode";
51 public static final String CHANNEL_HOME_VACATION_MODE_ADVANCED = "vacationModeAdvanced";
52 public static final String CHANNEL_HOME_VACATION_MODE_START = "vacationModeStart";
53 public static final String CHANNEL_HOME_VACATION_MODE_END = "vacationModeEnd";
55 public static final String CHANNEL_TYPE_MASTER_SWITCH = "masterSwitch";
56 public static final String CHANNEL_TYPE_TARGET_TEMPERATURE_HEATER = "targetTemperatureHeater";
58 public static final ChannelTypeUID CHANNEL_TYPE_MASTER_SWITCH_UID = new ChannelTypeUID(BINDING_ID,
59 CHANNEL_TYPE_MASTER_SWITCH);
60 public static final ChannelTypeUID CHANNEL_TYPE_TARGET_TEMPERATURE_HEATER_UID = new ChannelTypeUID(BINDING_ID,
61 CHANNEL_TYPE_TARGET_TEMPERATURE_HEATER);