]> git.basschouten.com Git - openhab-addons.git/blob
1924e2ebe5139b3f508c1ceb52d1dd722690fd60
[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.airvisualnode.internal;
14
15 import java.util.Set;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.DefaultSystemChannelTypeProvider;
19 import org.openhab.core.thing.ThingTypeUID;
20
21 /**
22  * The {@link AirVisualNodeBindingConstants} class defines common constants, which are
23  * used across the whole binding.
24  *
25  * @author Victor Antonovich - Initial contribution
26  */
27 @NonNullByDefault
28 public class AirVisualNodeBindingConstants {
29
30     public static final String BINDING_ID = "airvisualnode";
31
32     // List of all Thing Type UIDs
33     public static final ThingTypeUID THING_TYPE_AVNODE = new ThingTypeUID(BINDING_ID, "avnode");
34
35     // List of all Channel ids
36     public static final String CHANNEL_CO2 = "co2";
37     public static final String CHANNEL_HUMIDITY = "humidity";
38     public static final String CHANNEL_AQI_US = "aqi";
39     public static final String CHANNEL_PM_25 = "pm_25";
40     public static final String CHANNEL_PM_10 = "pm_10";
41     public static final String CHANNEL_PM_01 = "pm_01";
42     public static final String CHANNEL_TEMP_CELSIUS = "temperature";
43     public static final String CHANNEL_TIMESTAMP = "timestamp";
44     public static final String CHANNEL_USED_MEMORY = "used_memory";
45     public static final String CHANNEL_BATTERY_LEVEL = DefaultSystemChannelTypeProvider.SYSTEM_CHANNEL_BATTERY_LEVEL
46             .getUID().getId();
47     public static final String CHANNEL_WIFI_STRENGTH = DefaultSystemChannelTypeProvider.SYSTEM_CHANNEL_SIGNAL_STRENGTH
48             .getUID().getId();
49
50     // List of all supported Thing UIDs
51     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_AVNODE);
52
53     // List of all supported Channel ids
54     public static final Set<String> SUPPORTED_CHANNEL_IDS = Set.of(CHANNEL_CO2, CHANNEL_HUMIDITY, CHANNEL_AQI_US,
55             CHANNEL_PM_25, CHANNEL_PM_10, CHANNEL_PM_01, CHANNEL_TEMP_CELSIUS, CHANNEL_BATTERY_LEVEL,
56             CHANNEL_WIFI_STRENGTH, CHANNEL_TIMESTAMP, CHANNEL_USED_MEMORY);
57 }