tsvesync
Version:
A TypeScript library for interacting with VeSync smart home devices
279 lines (278 loc) • 6.48 kB
YAML
automatic_stop_off:
headers:
Content-Type: application/json; charset=UTF-8
User-Agent: okhttp/3.12.1
json_object:
acceptLanguage: en
accountID: sample_id
appVersion: 2.8.6
cid: LUH-M101S-WUS-CID
configModule: ConfigModule
debugMode: false
deviceRegion: US
method: bypassV2
payload:
data:
autoStopSwitch: 0
method: setAutoStopSwitch
source: APP
phoneBrand: SM N9005
phoneOS: Android
timeZone: America/New_York
token: sample_tk
traceId: TRACE_ID
method: post
url: /cloud/v2/deviceManaged/bypassV2
automatic_stop_on:
headers:
Content-Type: application/json; charset=UTF-8
User-Agent: okhttp/3.12.1
json_object:
acceptLanguage: en
accountID: sample_id
appVersion: 2.8.6
cid: LUH-M101S-WUS-CID
configModule: ConfigModule
debugMode: false
deviceRegion: US
method: bypassV2
payload:
data:
autoStopSwitch: 1
method: setAutoStopSwitch
source: APP
phoneBrand: SM N9005
phoneOS: Android
timeZone: America/New_York
token: sample_tk
traceId: TRACE_ID
method: post
url: /cloud/v2/deviceManaged/bypassV2
set_auto_mode:
headers:
Content-Type: application/json; charset=UTF-8
User-Agent: okhttp/3.12.1
json_object:
acceptLanguage: en
accountID: sample_id
appVersion: 2.8.6
cid: LUH-M101S-WUS-CID
configModule: ConfigModule
debugMode: false
deviceRegion: US
method: bypassV2
payload:
data:
workMode: auto
method: setHumidityMode
source: APP
phoneBrand: SM N9005
phoneOS: Android
timeZone: America/New_York
token: sample_tk
traceId: TRACE_ID
method: post
url: /cloud/v2/deviceManaged/bypassV2
set_humidity:
headers:
Content-Type: application/json; charset=UTF-8
User-Agent: okhttp/3.12.1
json_object:
acceptLanguage: en
accountID: sample_id
appVersion: 2.8.6
cid: LUH-M101S-WUS-CID
configModule: ConfigModule
debugMode: false
deviceRegion: US
method: bypassV2
payload:
data:
targetHumidity: 50
method: setTargetHumidity
source: APP
phoneBrand: SM N9005
phoneOS: Android
timeZone: America/New_York
token: sample_tk
traceId: TRACE_ID
method: post
url: /cloud/v2/deviceManaged/bypassV2
set_manual_mode:
headers:
Content-Type: application/json; charset=UTF-8
User-Agent: okhttp/3.12.1
json_object:
acceptLanguage: en
accountID: sample_id
appVersion: 2.8.6
cid: LUH-M101S-WUS-CID
configModule: ConfigModule
debugMode: false
deviceRegion: US
method: bypassV2
payload:
data:
workMode: manual
method: setHumidityMode
source: APP
phoneBrand: SM N9005
phoneOS: Android
timeZone: America/New_York
token: sample_tk
traceId: TRACE_ID
method: post
url: /cloud/v2/deviceManaged/bypassV2
set_mist_level:
headers:
Content-Type: application/json; charset=UTF-8
User-Agent: okhttp/3.12.1
json_object:
acceptLanguage: en
accountID: sample_id
appVersion: 2.8.6
cid: LUH-M101S-WUS-CID
configModule: ConfigModule
debugMode: false
deviceRegion: US
method: bypassV2
payload:
data:
levelIdx: 0
levelType: mist
virtualLevel: 2
method: setVirtualLevel
source: APP
phoneBrand: SM N9005
phoneOS: Android
timeZone: America/New_York
token: sample_tk
traceId: TRACE_ID
method: post
url: /cloud/v2/deviceManaged/bypassV2
turn_off:
headers:
Content-Type: application/json; charset=UTF-8
User-Agent: okhttp/3.12.1
json_object:
acceptLanguage: en
accountID: sample_id
appVersion: 2.8.6
cid: LUH-M101S-WUS-CID
configModule: ConfigModule
debugMode: false
deviceRegion: US
method: bypassV2
payload:
data:
powerSwitch: 0
switchIdx: 0
method: setSwitch
source: APP
phoneBrand: SM N9005
phoneOS: Android
timeZone: America/New_York
token: sample_tk
traceId: TRACE_ID
method: post
url: /cloud/v2/deviceManaged/bypassV2
turn_off_display:
headers:
Content-Type: application/json; charset=UTF-8
User-Agent: okhttp/3.12.1
json_object:
acceptLanguage: en
accountID: sample_id
appVersion: 2.8.6
cid: LUH-M101S-WUS-CID
configModule: ConfigModule
debugMode: false
deviceRegion: US
method: bypassV2
payload:
data:
screenSwitch: 0
method: setDisplay
source: APP
phoneBrand: SM N9005
phoneOS: Android
timeZone: America/New_York
token: sample_tk
traceId: TRACE_ID
method: post
url: /cloud/v2/deviceManaged/bypassV2
turn_on:
headers:
Content-Type: application/json; charset=UTF-8
User-Agent: okhttp/3.12.1
json_object:
acceptLanguage: en
accountID: sample_id
appVersion: 2.8.6
cid: LUH-M101S-WUS-CID
configModule: ConfigModule
debugMode: false
deviceRegion: US
method: bypassV2
payload:
data:
powerSwitch: 1
switchIdx: 0
method: setSwitch
source: APP
phoneBrand: SM N9005
phoneOS: Android
timeZone: America/New_York
token: sample_tk
traceId: TRACE_ID
method: post
url: /cloud/v2/deviceManaged/bypassV2
turn_on_display:
headers:
Content-Type: application/json; charset=UTF-8
User-Agent: okhttp/3.12.1
json_object:
acceptLanguage: en
accountID: sample_id
appVersion: 2.8.6
cid: LUH-M101S-WUS-CID
configModule: ConfigModule
debugMode: false
deviceRegion: US
method: bypassV2
payload:
data:
screenSwitch: 1
method: setDisplay
source: APP
phoneBrand: SM N9005
phoneOS: Android
timeZone: America/New_York
token: sample_tk
traceId: TRACE_ID
method: post
url: /cloud/v2/deviceManaged/bypassV2
update:
headers:
Content-Type: application/json; charset=UTF-8
User-Agent: okhttp/3.12.1
json_object:
acceptLanguage: en
accountID: sample_id
appVersion: 2.8.6
cid: LUH-M101S-WUS-CID
configModule: ConfigModule
debugMode: false
deviceRegion: US
method: bypassV2
payload:
data: {}
method: getHumidifierStatus
source: APP
phoneBrand: SM N9005
phoneOS: Android
timeZone: America/New_York
token: sample_tk
traceId: TRACE_ID
method: post
url: /cloud/v2/deviceManaged/bypassV2