]> git.basschouten.com Git - openhab-addons.git/blob
af3c23846777cde82823b2805ebfe65acb683576
[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.bluetooth.daikinmadoka;
14
15 import java.util.UUID;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.binding.bluetooth.BluetoothBindingConstants;
19 import org.openhab.core.thing.ThingTypeUID;
20
21 /**
22  * The {@link DaikinMadokaBindingConstants} class defines common constants, which are
23  * used across the whole binding.
24  *
25  * @author Benjamin Lafois - Initial contribution
26  */
27 @NonNullByDefault
28 public class DaikinMadokaBindingConstants {
29
30     private DaikinMadokaBindingConstants() {
31     }
32
33     public static final int WRITE_CHARACTERISTIC_MAX_RETRIES = 3;
34
35     public static final ThingTypeUID THING_TYPE_BRC1H = new ThingTypeUID(BluetoothBindingConstants.BINDING_ID, "brc1h");
36
37     public static final String CHANNEL_ID_ONOFF_STATUS = "onOffStatus";
38     public static final String CHANNEL_ID_INDOOR_TEMPERATURE = "indoorTemperature";
39     public static final String CHANNEL_ID_OUTDOOR_TEMPERATURE = "outdoorTemperature";
40     public static final String CHANNEL_ID_COMMUNICATION_CONTROLLER_VERSION = "commCtrlVersion";
41     public static final String CHANNEL_ID_REMOTE_CONTROLLER_VERSION = "remoteCtrlVersion";
42
43     public static final String CHANNEL_ID_OPERATION_MODE = "operationMode";
44     public static final String CHANNEL_ID_FAN_SPEED = "fanSpeed";
45     public static final String CHANNEL_ID_SETPOINT = "setpoint";
46     public static final String CHANNEL_ID_HOMEKIT_CURRENT_HEATING_COOLING_MODE = "homekitCurrentHeatingCoolingMode";
47     public static final String CHANNEL_ID_HOMEKIT_TARGET_HEATING_COOLING_MODE = "homekitTargetHeatingCoolingMode";
48     public static final String CHANNEL_ID_HOMEBRIDGE_MODE = "homebridgeMode";
49
50     public static final String CHANNEL_ID_EYE_BRIGHTNESS = "eyeBrightness";
51     public static final String CHANNEL_ID_INDOOR_OPERATION_HOURS = "indoorOperationHours";
52     public static final String CHANNEL_ID_INDOOR_POWER_HOURS = "indoorPowerHours";
53     public static final String CHANNEL_ID_INDOOR_FAN_HOURS = "indoorFanHours";
54
55     public static final String CHANNEL_ID_CLEAN_FILTER_INDICATOR = "cleanFilterIndicator";
56
57     /**
58      * BLUETOOTH UUID (service + chars)
59      */
60     public static final UUID SERVICE_UART_UUID = UUID.fromString("2141E110-213A-11E6-B67B-9E71128CAE77");
61     public static final UUID CHAR_WRITE_WITHOUT_RESPONSE_UUID = UUID.fromString("2141E112-213A-11E6-B67B-9E71128CAE77");
62     public static final UUID CHAR_NOTIF_UUID = UUID.fromString("2141E111-213A-11E6-B67B-9E71128CAE77");
63 }