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.hydrawise.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link HydrawiseBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Dan Cunningham - Initial contribution
25 public class HydrawiseBindingConstants {
27 private static final String BINDING_ID = "hydrawise";
29 // List of all Thing Type UIDs
30 public static final ThingTypeUID THING_TYPE_CLOUD = new ThingTypeUID(BINDING_ID, "cloud");
31 public static final ThingTypeUID THING_TYPE_LOCAL = new ThingTypeUID(BINDING_ID, "local");
33 public static final String BASE_IMAGE_URL = "https://app.hydrawise.com/config/images/";
35 public static final String CHANNEL_GROUP_ALLZONES = "allzones";
36 public static final String CHANNEL_ZONE_RUN_CUSTOM = "runcustom";
37 public static final String CHANNEL_ZONE_RUN = "run";
38 public static final String CHANNEL_ZONE_STOP = "stop";
39 public static final String CHANNEL_ZONE_SUSPEND = "suspend";
40 public static final String CHANNEL_ZONE_NAME = "name";
41 public static final String CHANNEL_ZONE_ICON = "icon";
42 public static final String CHANNEL_ZONE_LAST_WATER = "lastwater";
43 public static final String CHANNEL_ZONE_TIME = "time";
44 public static final String CHANNEL_ZONE_TYPE = "type";
45 public static final String CHANNEL_ZONE_NEXT_RUN_TIME_TIME = "nextruntime";
46 public static final String CHANNEL_ZONE_TIME_LEFT = "timeleft";
47 public static final String CHANNEL_RUN_ALL_ZONES = "runall";
48 public static final String CHANNEL_STOP_ALL_ZONES = "stopall";
49 public static final String CHANNEL_SUSPEND_ALL_ZONES = "suspendall";
50 public static final String CHANNEL_SENSOR_NAME = "name";
51 public static final String CHANNEL_SENSOR_INPUT = "input";
52 public static final String CHANNEL_SENSOR_MODE = "mode";
53 public static final String CHANNEL_SENSOR_TIMER = "timer";
54 public static final String CHANNEL_SENSOR_OFFTIMER = "offtimer";
55 public static final String CHANNEL_SENSOR_OFFLEVEL = "offlevel";
56 public static final String CHANNEL_SENSOR_ACTIVE = "active";
57 public static final String CHANNEL_FORECAST_TEMPERATURE_HIGH = "temperaturehigh";
58 public static final String CHANNEL_FORECAST_TEMPERATURE_LOW = "temperaturelow";
59 public static final String CHANNEL_FORECAST_CONDITIONS = "conditions";
60 public static final String CHANNEL_FORECAST_DAY = "day";
61 public static final String CHANNEL_FORECAST_HUMIDITY = "humidity";
62 public static final String CHANNEL_FORECAST_WIND = "wind";
63 public static final String CHANNEL_FORECAST_ICON = "icon";
64 public static final String PROPERTY_CONTROLLER_ID = "controller";
65 public static final String PROPERTY_NAME = "name";
66 public static final String PROPERTY_DESCRIPTION = "description";
67 public static final String PROPERTY_LOCATION = "location";
68 public static final String PROPERTY_ADDRESS = "address";