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.robonect.internal;
15 import org.openhab.core.thing.ThingTypeUID;
18 * The {@link RobonectBindingConstants} class defines common constants, which are
19 * used across the whole binding.
21 * @author Marco Meyer - Initial contribution
23 public class RobonectBindingConstants {
25 private static final String BINDING_ID = "robonect";
27 // List of all Thing Type UIDs
28 public static final ThingTypeUID THING_TYPE_AUTOMOWER = new ThingTypeUID(BINDING_ID, "mower");
30 // List of all Channel ids
31 public static final String CHANNEL_MOWER_NAME = "name";
32 public static final String CHANNEL_STATUS_BATTERY = "battery";
33 public static final String CHANNEL_STATUS_DURATION = "status-duration";
34 public static final String CHANNEL_STATUS_HOURS = "mowing-hours";
35 public static final String CHANNEL_STATUS_MODE = "mode";
36 public static final String CHANNEL_STATUS = "status";
37 public static final String CHANNEL_MOWER_START = "start";
38 public static final String CHANNEL_MOWER_STATUS_OFFLINE_TRIGGER = "offlineTrigger";
39 public static final String CHANNEL_TIMER_STATUS = "timer-status";
40 public static final String CHANNEL_TIMER_NEXT_TIMER = "timer-next";
41 public static final String CHANNEL_WLAN_SIGNAL = "wlan-signal";
43 public static final String CHANNEL_JOB = "job";
45 public static final String CHANNEL_ERROR_CODE = "error-code";
46 public static final String CHANNEL_ERROR_MESSAGE = "error-message";
47 public static final String CHANNEL_ERROR_DATE = "error-date";
49 public static final String CHANNEL_LAST_ERROR_CODE = "last-error-code";
50 public static final String CHANNEL_LAST_ERROR_MESSAGE = "last-error-message";
51 public static final String CHANNEL_LAST_ERROR_DATE = "last-error-date";
53 public static final String CHANNEL_HEALTH_TEMP = "health-temperature";
54 public static final String CHANNEL_HEALTH_HUM = "health-humidity";
56 public static final String PROPERTY_COMPILED = "compiled";
57 public static final String PROPERTY_COMMENT = "comment";