2 * Copyright (c) 2010-2020 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.irobot.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link IRobotBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author hkuhn42 - Initial contribution
23 * @author Pavel Fedin - rename and update
26 public class IRobotBindingConstants {
28 public static final String BINDING_ID = "irobot";
30 // List of all Thing Type UIDs
31 public static final ThingTypeUID THING_TYPE_ROOMBA = new ThingTypeUID(BINDING_ID, "roomba");
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";
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";
58 public static final String BIN_OK = "ok";
59 public static final String BIN_FULL = "full";
60 public static final String BIN_REMOVED = "removed";
62 public static final String BOOST_AUTO = "auto";
63 public static final String BOOST_PERFORMANCE = "performance";
64 public static final String BOOST_ECO = "eco";
66 public static final String PASSES_AUTO = "auto";
67 public static final String PASSES_1 = "1";
68 public static final String PASSES_2 = "2";