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