]> git.basschouten.com Git - openhab-addons.git/blob
d1ac78da83a68d7d14171f1c8cd0cb8a9ef2272c
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.irobot.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link IRobotBindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author hkuhn42 - Initial contribution
23  * @author Pavel Fedin - rename and update
24  */
25 @NonNullByDefault
26 public class IRobotBindingConstants {
27
28     public static final String BINDING_ID = "irobot";
29
30     // List of all Thing Type UIDs
31     public static final ThingTypeUID THING_TYPE_ROOMBA = new ThingTypeUID(BINDING_ID, "roomba");
32
33     // List of all Channel ids
34     public static final String CHANNEL_COMMAND = "command";
35     public static final String CHANNEL_CYCLE = "cycle";
36     public static final String CHANNEL_PHASE = "phase";
37     public static final String CHANNEL_BIN = "bin";
38     public static final String CHANNEL_BATTERY = "battery";
39     public static final String CHANNEL_ERROR = "error";
40     public static final String CHANNEL_RSSI = "rssi";
41     public static final String CHANNEL_SNR = "snr";
42     // iRobot's JSON lists weekdays starting from Saturday
43     public static final String CHANNEL_SCHED_SWITCH_PREFIX = "sched_";
44     public static final String[] CHANNEL_SCHED_SWITCH = { "sched_sun", "sched_mon", "sched_tue", "sched_wed",
45             "sched_thu", "sched_fri", "sched_sat" };
46     public static final String CHANNEL_SCHEDULE = "schedule";
47     public static final String CHANNEL_EDGE_CLEAN = "edge_clean";
48     public static final String CHANNEL_ALWAYS_FINISH = "always_finish";
49     public static final String CHANNEL_POWER_BOOST = "power_boost";
50     public static final String CHANNEL_CLEAN_PASSES = "clean_passes";
51
52     public static final String CMD_CLEAN = "clean";
53     public static final String CMD_SPOT = "spot";
54     public static final String CMD_DOCK = "dock";
55     public static final String CMD_PAUSE = "pause";
56     public static final String CMD_STOP = "stop";
57
58     public static final String BIN_OK = "ok";
59     public static final String BIN_FULL = "full";
60     public static final String BIN_REMOVED = "removed";
61
62     public static final String BOOST_AUTO = "auto";
63     public static final String BOOST_PERFORMANCE = "performance";
64     public static final String BOOST_ECO = "eco";
65
66     public static final String PASSES_AUTO = "auto";
67     public static final String PASSES_1 = "1";
68     public static final String PASSES_2 = "2";
69 }