2 * Copyright (c) 2010-2021 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.miele.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link MieleBinding} class defines common constants, which are
20 * used across the whole binding.
22 * @author Karel Goderis - Initial contribution
23 * @author Martin Lepsy - added constants for support of WiFi devices & protocol
24 * @author Jacob Laursen - Fixed multicast and protocol support (ZigBee/LAN)
27 public class MieleBindingConstants {
29 public static final String BINDING_ID = "miele";
30 public static final String APPLIANCE_ID = "uid";
31 public static final String DEVICE_CLASS = "dc";
32 public static final String PROTOCOL_PROPERTY_NAME = "protocol";
33 public static final String SERIAL_NUMBER_PROPERTY_NAME = "serialNumber";
34 public static final String EXTENDED_DEVICE_STATE_PROPERTY_NAME = "extendedDeviceState";
36 // Shared Channel ID's
37 public static final String POWER_CONSUMPTION_CHANNEL_ID = "powerConsumption";
38 public static final String WATER_CONSUMPTION_CHANNEL_ID = "waterConsumption";
40 // List of all Thing Type UIDs
41 public static final ThingTypeUID THING_TYPE_XGW3000 = new ThingTypeUID(BINDING_ID, "xgw3000");
42 public static final ThingTypeUID THING_TYPE_DISHWASHER = new ThingTypeUID(BINDING_ID, "dishwasher");
43 public static final ThingTypeUID THING_TYPE_OVEN = new ThingTypeUID(BINDING_ID, "oven");
44 public static final ThingTypeUID THING_TYPE_FRIDGE = new ThingTypeUID(BINDING_ID, "fridge");
45 public static final ThingTypeUID THING_TYPE_DRYER = new ThingTypeUID(BINDING_ID, "tumbledryer");
46 public static final ThingTypeUID THING_TYPE_HOB = new ThingTypeUID(BINDING_ID, "hob");
47 public static final ThingTypeUID THING_TYPE_FRIDGEFREEZER = new ThingTypeUID(BINDING_ID, "fridgefreezer");
48 public static final ThingTypeUID THING_TYPE_HOOD = new ThingTypeUID(BINDING_ID, "hood");
49 public static final ThingTypeUID THING_TYPE_WASHINGMACHINE = new ThingTypeUID(BINDING_ID, "washingmachine");
50 public static final ThingTypeUID THING_TYPE_COFFEEMACHINE = new ThingTypeUID(BINDING_ID, "coffeemachine");
52 // Miele devices classes
53 public static final String MIELE_DEVICE_CLASS_COFFEE_SYSTEM = "CoffeeSystem";
55 // Bridge config properties
56 public static final String HOST = "ipAddress";
57 public static final String INTERFACE = "interface";
58 public static final String USER_NAME = "userName";
59 public static final String PASSWORD = "password";