]> git.basschouten.com Git - openhab-addons.git/blob
97af65635dbfa86ad6384807d75e8d9182543f3d
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.miele.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link MieleBinding} class defines common constants, which are
20  * used across the whole binding.
21  *
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)
25  */
26 @NonNullByDefault
27 public class MieleBindingConstants {
28
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";
35     public static final String STATE_PROPERTY_NAME = "state";
36
37     // Shared Channel ID's
38     public static final String SUPERCOOL_CHANNEL_ID = "supercool";
39     public static final String SUPERFREEZE_CHANNEL_ID = "superfreeze";
40     public static final String POWER_CONSUMPTION_CHANNEL_ID = "powerConsumption";
41     public static final String WATER_CONSUMPTION_CHANNEL_ID = "waterConsumption";
42
43     // List of all Thing Type UIDs
44     public static final ThingTypeUID THING_TYPE_XGW3000 = new ThingTypeUID(BINDING_ID, "xgw3000");
45     public static final ThingTypeUID THING_TYPE_DISHWASHER = new ThingTypeUID(BINDING_ID, "dishwasher");
46     public static final ThingTypeUID THING_TYPE_OVEN = new ThingTypeUID(BINDING_ID, "oven");
47     public static final ThingTypeUID THING_TYPE_FRIDGE = new ThingTypeUID(BINDING_ID, "fridge");
48     public static final ThingTypeUID THING_TYPE_DRYER = new ThingTypeUID(BINDING_ID, "tumbledryer");
49     public static final ThingTypeUID THING_TYPE_HOB = new ThingTypeUID(BINDING_ID, "hob");
50     public static final ThingTypeUID THING_TYPE_FRIDGEFREEZER = new ThingTypeUID(BINDING_ID, "fridgefreezer");
51     public static final ThingTypeUID THING_TYPE_HOOD = new ThingTypeUID(BINDING_ID, "hood");
52     public static final ThingTypeUID THING_TYPE_WASHINGMACHINE = new ThingTypeUID(BINDING_ID, "washingmachine");
53     public static final ThingTypeUID THING_TYPE_COFFEEMACHINE = new ThingTypeUID(BINDING_ID, "coffeemachine");
54
55     // Miele devices classes
56     public static final String MIELE_DEVICE_CLASS_COFFEE_SYSTEM = "CoffeeSystem";
57     public static final String MIELE_DEVICE_CLASS_FRIDGE = "Fridge";
58     public static final String MIELE_DEVICE_CLASS_FRIDGE_FREEZER = "FridgeFreezer";
59
60     // Miele appliance states
61     public static final int STATE_SUPER_FREEZING = 13;
62     public static final int STATE_SUPER_COOLING = 14;
63
64     // Bridge config properties
65     public static final String HOST = "ipAddress";
66     public static final String INTERFACE = "interface";
67     public static final String USER_NAME = "userName";
68     public static final String PASSWORD = "password";
69 }