2 * Copyright (c) 2010-2022 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.orbitbhyve.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link OrbitBhyveBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Ondrej Pecta - Initial contribution
25 public class OrbitBhyveBindingConstants {
27 public static final String BINDING_ID = "orbitbhyve";
29 // List of all Thing Type UIDs
30 public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "bridge");
31 public static final ThingTypeUID THING_TYPE_SPRINKLER = new ThingTypeUID(BINDING_ID, "sprinkler");
33 // List of all Channel ids
34 public static final String CHANNEL_CONTROL = "control";
35 public static final String CHANNEL_MODE = "mode";
36 public static final String CHANNEL_SMART_WATERING = "smart_watering";
37 public static final String CHANNEL_NEXT_START = "next_start";
38 public static final String CHANNEL_RAIN_DELAY = "rain_delay";
39 public static final String CHANNEL_WATERING_TIME = "watering_time";
42 public static final String AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36";
43 public static final String BHYVE_API = "https://api.orbitbhyve.com/v1/";
44 public static final String BHYVE_SESSION = BHYVE_API + "session";
45 public static final String BHYVE_DEVICES = BHYVE_API + "devices";
46 public static final String BHYVE_PROGRAMS = BHYVE_API + "sprinkler_timer_programs";
47 public static final String BHYVE_WS_URL = "wss://api.orbitbhyve.com/v1/events";
48 public static final int BHYVE_TIMEOUT = 5;