2 * Copyright (c) 2010-2023 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.vesync.internal.dto.requests;
16 * The {@link VeSyncProtocolConstants} contains common Strings used by various elements of the protocol.
18 * @author David Goodyear - Initial contribution
20 public interface VeSyncProtocolConstants {
23 String MODE_AUTO = "auto";
24 String MODE_MANUAL = "manual";
25 String MODE_SLEEP = "sleep";
27 String MODE_ON = "on";
28 String MODE_DIM = "dim";
29 String MODE_OFF = "off";
32 String DEVICE_SET_SWITCH = "setSwitch";
33 String DEVICE_SET_DISPLAY = "setDisplay";
34 String DEVICE_SET_LEVEL = "setLevel";
36 // Humidifier Commands
37 String DEVICE_SET_AUTOMATIC_STOP = "setAutomaticStop";
38 String DEVICE_SET_HUMIDITY_MODE = "setHumidityMode";
39 String DEVICE_SET_TARGET_HUMIDITY_MODE = "setTargetHumidity";
40 String DEVICE_SET_VIRTUAL_LEVEL = "setVirtualLevel";
41 String DEVICE_SET_NIGHT_LIGHT_BRIGHTNESS = "setNightLightBrightness";
42 String DEVICE_GET_HUMIDIFIER_STATUS = "getHumidifierStatus";
44 String DEVICE_LEVEL_TYPE_MIST = "mist";
46 // Air Purifier Commands
47 String DEVICE_SET_PURIFIER_MODE = "setPurifierMode";
48 String DEVICE_SET_CHILD_LOCK = "setChildLock";
49 String DEVICE_SET_NIGHT_LIGHT = "setNightLight";
50 String DEVICE_GET_PURIFIER_STATUS = "getPurifierStatus";
51 String DEVICE_LEVEL_TYPE_WIND = "wind";
54 * Base URL for AUTHENTICATION REQUESTS
56 String PROTOCOL = "https";
57 String HOST_ENDPOINT = PROTOCOL + "://smartapi.vesync.com/cloud";
58 String V1_LOGIN_ENDPOINT = HOST_ENDPOINT + "/v1/user/login";
59 String V1_MANAGED_DEVICES_ENDPOINT = HOST_ENDPOINT + "/v1/deviceManaged/devices";
60 String V2_BYPASS_ENDPOINT = HOST_ENDPOINT + "/v2/deviceManaged/bypassV2";