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.electroluxair.internal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
21 * The {@link ElectroluxAirBindingConstants} class defines common constants, which are
22 * used across the whole binding.
24 * @author Jan Gustafsson - Initial contribution
27 public class ElectroluxAirBindingConstants {
29 public static final String BINDING_ID = "electroluxair";
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");
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";
50 // List of all Properties ids
51 public static final String PROPERTY_BRAND = "brand";
52 public static final String PROPERTY_COLOUR = "colour";
53 public static final String PROPERTY_MODEL = "model";
54 public static final String PROPERTY_DEVICE = "device";
55 public static final String PROPERTY_FW_VERSION = "fwVersion";
56 public static final String PROPERTY_SERIAL_NUMBER = "serialNumber";
57 public static final String PROPERTY_WORKMODE = "workmode";
59 // List of all Commands
60 public static final String COMMAND_WORKMODE_POWEROFF = "PowerOff";
61 public static final String COMMAND_WORKMODE_AUTO = "Auto";
62 public static final String COMMAND_WORKMODE_MANUAL = "Manual";
64 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_BRIDGE,
65 THING_TYPE_ELECTROLUX_PURE_A9);