]> git.basschouten.com Git - openhab-addons.git/blob
7a1560192883173cd5ea7a322b307463fd40aba3
[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.airthings.internal;
14
15 import java.util.Set;
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 AirthingsBindingConstants} class defines common constants, which are
23  * used across the whole binding.
24  *
25  * @author Pauli Anttila - Initial contribution
26  * @author Kai Kreuzer - Added Airthings Wave Mini support
27  * @author Davy Wong - Added Airthings Wave Gen 1 support
28  */
29 @NonNullByDefault
30 public class AirthingsBindingConstants {
31
32     // List of all Thing Type UIDs
33     public static final ThingTypeUID THING_TYPE_AIRTHINGS_WAVE_PLUS = new ThingTypeUID(
34             BluetoothBindingConstants.BINDING_ID, "airthings_wave_plus");
35     public static final ThingTypeUID THING_TYPE_AIRTHINGS_WAVE_MINI = new ThingTypeUID(
36             BluetoothBindingConstants.BINDING_ID, "airthings_wave_mini");
37     public static final ThingTypeUID THING_TYPE_AIRTHINGS_WAVE_GEN1 = new ThingTypeUID(
38             BluetoothBindingConstants.BINDING_ID, "airthings_wave_gen1");
39
40     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_AIRTHINGS_WAVE_PLUS,
41             THING_TYPE_AIRTHINGS_WAVE_MINI, THING_TYPE_AIRTHINGS_WAVE_GEN1);
42
43     // Channel IDs
44     public static final String CHANNEL_ID_HUMIDITY = "humidity";
45     public static final String CHANNEL_ID_TEMPERATURE = "temperature";
46     public static final String CHANNEL_ID_PRESSURE = "pressure";
47     public static final String CHANNEL_ID_CO2 = "co2";
48     public static final String CHANNEL_ID_TVOC = "tvoc";
49     public static final String CHANNEL_ID_RADON_ST_AVG = "radon_st_avg";
50     public static final String CHANNEL_ID_RADON_LT_AVG = "radon_lt_avg";
51 }