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.airvisualnode.internal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.DefaultSystemChannelTypeProvider;
19 import org.openhab.core.thing.ThingTypeUID;
22 * The {@link AirVisualNodeBindingConstants} class defines common constants, which are
23 * used across the whole binding.
25 * @author Victor Antonovich - Initial contribution
28 public class AirVisualNodeBindingConstants {
30 public static final String BINDING_ID = "airvisualnode";
32 // List of all Thing Type UIDs
33 public static final ThingTypeUID THING_TYPE_AVNODE = new ThingTypeUID(BINDING_ID, "avnode");
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
47 public static final String CHANNEL_WIFI_STRENGTH = DefaultSystemChannelTypeProvider.SYSTEM_CHANNEL_SIGNAL_STRENGTH
50 // List of all supported Thing UIDs
51 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_AVNODE);
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);