]> git.basschouten.com Git - openhab-addons.git/blob
db4b5ef2e8b2f61b33e951838a130a2c89450cbc
[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.lghombot.internal;
14
15 import java.util.Collections;
16 import java.util.Set;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.core.thing.ThingTypeUID;
20
21 /**
22  * The {@link LGHomBotBindingConstants} class defines common constants, which are
23  * used across the whole binding.
24  *
25  * @author Fredrik Ahlström - Initial contribution
26  */
27 @NonNullByDefault
28 public final class LGHomBotBindingConstants {
29
30     private static final String BINDING_ID = "lghombot";
31
32     // List of all Thing Type UIDs
33     public static final ThingTypeUID THING_TYPE_LGHOMBOT = new ThingTypeUID(BINDING_ID, "LGHomBot");
34
35     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Collections.singleton(THING_TYPE_LGHOMBOT);
36
37     // List of all Channel ids
38     static final String CHANNEL_STATE = "state";
39     static final String CHANNEL_BATTERY = "battery";
40     static final String CHANNEL_CPU_LOAD = "cpuLoad";
41     static final String CHANNEL_SRV_MEM = "srvMem";
42     static final String CHANNEL_CLEAN = "clean";
43     static final String CHANNEL_START = "start";
44     static final String CHANNEL_HOME = "home";
45     static final String CHANNEL_PAUSE = "pause";
46     static final String CHANNEL_MODE = "mode";
47     static final String CHANNEL_TURBO = "turbo";
48     static final String CHANNEL_REPEAT = "repeat";
49     static final String CHANNEL_NICKNAME = "nickname";
50     static final String CHANNEL_MOVE = "move";
51     static final String CHANNEL_CAMERA = "camera";
52     static final String CHANNEL_LAST_CLEAN = "lastClean";
53     static final String CHANNEL_MAP = "map";
54     static final String CHANNEL_MONDAY = "monday";
55     static final String CHANNEL_TUESDAY = "tuesday";
56     static final String CHANNEL_WEDNESDAY = "wednesday";
57     static final String CHANNEL_THURSDAY = "thursday";
58     static final String CHANNEL_FRIDAY = "friday";
59     static final String CHANNEL_SATURDAY = "saturday";
60     static final String CHANNEL_SUNDAY = "sunday";
61
62     // List of all HomBot states
63     static final String HBSTATE_UNKNOWN = "UNKNOWN";
64     static final String HBSTATE_WORKING = "WORKING";
65     static final String HBSTATE_BACKMOVING = "BACKMOVING";
66     static final String HBSTATE_BACKMOVING_INIT = "BACKMOVING_INIT";
67     static final String HBSTATE_BACKMOVING_JOY = "BACKMOVING_JOY";
68     static final String HBSTATE_PAUSE = "PAUSE";
69     static final String HBSTATE_STANDBY = "STANDBY";
70     static final String HBSTATE_HOMING = "HOMING";
71     static final String HBSTATE_DOCKING = "DOCKING";
72     static final String HBSTATE_CHARGING = "CHARGING";
73     static final String HBSTATE_DIAGNOSIS = "DIAGNOSIS";
74     static final String HBSTATE_RESERVATION = "RESERVATION";
75     static final String HBSTATE_ERROR = "ERROR";
76
77     /**
78      * Default port number HomBot uses.
79      */
80     public static final int DEFAULT_HOMBOT_PORT = 6260;
81
82     private LGHomBotBindingConstants() {
83         // No need to instance this class.
84     }
85 }