]> git.basschouten.com Git - openhab-addons.git/blob
0fdc8744ba4432a73c6e76ea705fb676873a3848
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.vesync.internal.dto.requests;
14
15 /**
16  * The {@link VeSyncProtocolConstants} contains common Strings used by various elements of the protocol.
17  *
18  * @author David Goodyear - Initial contribution
19  */
20 public interface VeSyncProtocolConstants {
21
22     // Common Payloads
23     String MODE_AUTO = "auto";
24     String MODE_MANUAL = "manual";
25     String MODE_SLEEP = "sleep";
26
27     String MODE_ON = "on";
28     String MODE_DIM = "dim";
29     String MODE_OFF = "off";
30
31     // Common Commands
32     String DEVICE_SET_SWITCH = "setSwitch";
33     String DEVICE_SET_DISPLAY = "setDisplay";
34     String DEVICE_SET_LEVEL = "setLevel";
35
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";
43
44     String DEVICE_LEVEL_TYPE_MIST = "mist";
45
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";
52
53     /**
54      * Base URL for AUTHENTICATION REQUESTS
55      */
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";
61 }