]> git.basschouten.com Git - openhab-addons.git/blob
361262e813b79bd6bfc0518617f3da02fe69f643
[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.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  */
24 @NonNullByDefault
25 public class AutomowerBindingConstants {
26
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_MOWER_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
44     // Automower properties
45     public static final String AUTOMOWER_ID = "mowerId";
46     public static final String AUTOMOWER_NAME = "mowerName";
47     public static final String AUTOMOWER_MODEL = "mowerModel";
48     public static final String AUTOMOWER_SERIAL_NUMBER = "mowerSerialNumber";
49 }