]> git.basschouten.com Git - openhab-addons.git/blob
905861aa2b2578b58e72d9a8cfb8e4ae871e931c
[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.electroluxair.internal;
14
15 import java.util.Set;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
19
20 /**
21  * The {@link ElectroluxAirBindingConstants} class defines common constants, which are
22  * used across the whole binding.
23  *
24  * @author Jan Gustafsson - Initial contribution
25  */
26 @NonNullByDefault
27 public class ElectroluxAirBindingConstants {
28
29     public static final String BINDING_ID = "electroluxair";
30
31     // List of all Thing Type UIDs
32     public static final ThingTypeUID THING_TYPE_ELECTROLUX_PURE_A9 = new ThingTypeUID(BINDING_ID, "electroluxpurea9");
33     public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "api");
34
35     // List of all Channel ids
36     public static final String CHANNEL_STATUS = "status";
37     public static final String CHANNEL_TEMPERATURE = "temperature";
38     public static final String CHANNEL_HUMIDITY = "humidity";
39     public static final String CHANNEL_TVOC = "tvoc";
40     public static final String CHANNEL_PM1 = "pm1";
41     public static final String CHANNEL_PM25 = "pm2_5";
42     public static final String CHANNEL_PM10 = "pm10";
43     public static final String CHANNEL_CO2 = "co2";
44     public static final String CHANNEL_FILTER_LIFE = "filterLife";
45     public static final String CHANNEL_DOOR_OPEN = "doorOpen";
46     public static final String CHANNEL_FAN_SPEED = "fanSpeed";
47     public static final String CHANNEL_WORK_MODE = "workMode";
48     public static final String CHANNEL_IONIZER = "ionizer";
49     public static final String CHANNEL_UI_LIGHT = "uiLight";
50     public static final String CHANNEL_SAFETY_LOCK = "safetyLock";
51
52     // List of all Properties ids
53     public static final String PROPERTY_BRAND = "brand";
54     public static final String PROPERTY_COLOUR = "colour";
55     public static final String PROPERTY_MODEL = "model";
56     public static final String PROPERTY_DEVICE = "device";
57     public static final String PROPERTY_FW_VERSION = "fwVersion";
58     public static final String PROPERTY_SERIAL_NUMBER = "serialNumber";
59     public static final String PROPERTY_WORKMODE = "workmode";
60
61     // List of all Commands
62     public static final String COMMAND_WORKMODE_POWEROFF = "PowerOff";
63     public static final String COMMAND_WORKMODE_AUTO = "Auto";
64     public static final String COMMAND_WORKMODE_MANUAL = "Manual";
65
66     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_BRIDGE,
67             THING_TYPE_ELECTROLUX_PURE_A9);
68 }