空调联动策略
获取、更新、删除空调联动策略
创建空调联动策略
- 参数类型是否必填描述范围样例stringintintintintintintint
curl --request POST \
--url https://www.einfra.cn/wad/ems/v1/api/air-strategy \
--header 'X-API-Key: YH3kPJ5rKVYH3kPJ5rKVYH3kPJ5rKV' \
--header 'content-type: application/json' \
--data '{
"device_uid": "xxxxx",
"cooling_point": 1,
"cooling_hysteresis": 2,
"heating_point": 3,
"heating_hysteresis": 4,
"high_temp_point": 5,
"low_temp_point": 6,
"high_humidity_point": 7
}'import http.client
conn = http.client.HTTPConnection("https://www.einfra.cn")
payload = "{\n \"cooling_point\": 1,\n \"cooling_hysteresis\": 2,\n \"heating_point\": 3,\n \"heating_hysteresis\": 4,\n \"high_temp_point\": 5,\n \"low_temp_point\": 6,\n \"high_humidity_point\": 7,\n \"device_uid\": \"xxxxx\"\n}"
headers = {
'X-API-Key': "YH3kPJ5rKVYH3kPJ5rKVYH3kPJ5rKV",
'content-type': "application/json"
}
conn.request("POST", "/wad/ems/v1/api/air-strategy", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))- 参数类型是否必填描述范围样例intstrstr
- HTTP状态码错误码描述
获取空调联动策略列表
- 参数类型是否必填描述范围样例strintint
- 参数类型是否必填描述范围样例intstrlistResult
- 参数类型是否必填描述范围样例int[]protectionStrategy
- HTTP状态码错误码描述
修改空调联动策略
- 参数类型是否必填描述范围样例str
- 参数类型是否必填描述范围样例intstr
- HTTP状态码错误码描述
同步空调联动策略
- 参数类型是否必填描述范围样例str
参数
类型
是否必填
描述
范围
样例
int
str
object
- 参数类型是否必填描述范围样例stringintintintintintintint
最后更新于