tsvesync
Version:
A TypeScript library for interacting with VeSync smart home devices
194 lines (193 loc) • 4.36 kB
YAML
enable_white_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: XYD0001-CID
configModule: ConfigModule
deviceRegion: US
method: bypassV2
payload:
data:
brightness: ''
colorMode: white
colorTemp: ''
force: 1
hue: ''
saturation: ''
value: ''
method: setLightStatusV2
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_brightness:
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: XYD0001-CID
configModule: ConfigModule
deviceRegion: US
method: bypassV2
payload:
data:
brightness: 50
colorMode: ''
colorTemp: ''
force: 0
hue: ''
saturation: ''
value: ''
method: setLightStatusV2
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_color_temp:
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: XYD0001-CID
configModule: ConfigModule
deviceRegion: US
method: bypassV2
payload:
data:
brightness: ''
colorMode: white
colorTemp: 50
force: 1
hue: ''
saturation: ''
value: ''
method: setLightStatusV2
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_hsv:
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: XYD0001-CID
configModule: ConfigModule
deviceRegion: US
method: bypassV2
payload:
data:
brightness: 100
colorMode: hsv
colorTemp: ''
force: 1
hue: 5556
saturation: 5000
value: ''
method: setLightStatusV2
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: XYD0001-CID
configModule: ConfigModule
deviceRegion: US
method: bypassV2
payload:
data:
enabled: false
id: 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:
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: XYD0001-CID
configModule: ConfigModule
deviceRegion: US
method: bypassV2
payload:
data:
enabled: true
id: 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
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: XYD0001-CID
configModule: ConfigModule
deviceRegion: US
method: bypassV2
payload:
data: {}
method: getLightStatusV2
source: APP
phoneBrand: SM N9005
phoneOS: Android
timeZone: America/New_York
token: sample_tk
traceId: TRACE_ID
method: post
url: /cloud/v2/deviceManaged/bypassV2