]> git.basschouten.com Git - openhab-addons.git/blob
14bebefa09d2e72be7ab79721852c90578ae6ffe
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.automower.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link AutomowerBindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Markus Pfleger - Initial contribution
23  * @author Marcin Czeczko - Added support for planner & calendar data
24  */
25 @NonNullByDefault
26 public class AutomowerBindingConstants {
27     private static final String BINDING_ID = "automower";
28
29     public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "bridge");
30
31     // generic thing types
32     public static final ThingTypeUID THING_TYPE_AUTOMOWER = new ThingTypeUID(BINDING_ID, "automower");
33
34     // List of all Channel ids
35     public static final String CHANNEL_STATUS_NAME = "name";
36     public static final String CHANNEL_STATUS_MODE = "mode";
37     public static final String CHANNEL_STATUS_ACTIVITY = "activity";
38     public static final String CHANNEL_STATUS_STATE = "state";
39     public static final String CHANNEL_STATUS_LAST_UPDATE = "last-update";
40     public static final String CHANNEL_STATUS_BATTERY = "battery";
41     public static final String CHANNEL_STATUS_ERROR_CODE = "error-code";
42     public static final String CHANNEL_STATUS_ERROR_TIMESTAMP = "error-timestamp";
43     public static final String CHANNEL_PLANNER_NEXT_START = "planner-next-start";
44     public static final String CHANNEL_PLANNER_OVERRIDE_ACTION = "planner-override-action";
45     public static final String CHANNEL_CALENDAR_TASKS = "calendar-tasks";
46
47     // Command channels
48     public static final String CHANNEL_COMMAND_START = "start";
49     public static final String CHANNEL_COMMAND_RESUME_SCHEDULE = "resume_schedule";
50     public static final String CHANNEL_COMMAND_PAUSE = "pause";
51     public static final String CHANNEL_COMMAND_PARK = "park";
52     public static final String CHANNEL_COMMAND_PARK_UNTIL_NEXT_SCHEDULE = "park_until_next_schedule";
53     public static final String CHANNEL_COMMAND_PARK_UNTIL_NOTICE = "park_until_further_notice";
54
55     // Automower properties
56     public static final String AUTOMOWER_ID = "mowerId";
57     public static final String AUTOMOWER_NAME = "mowerName";
58     public static final String AUTOMOWER_MODEL = "mowerModel";
59     public static final String AUTOMOWER_SERIAL_NUMBER = "mowerSerialNumber";
60 }