mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-12-06 08:08:21 +00:00
Move iot fixtures into iot subfolder (#1299)
This commit is contained in:
32
tests/fixtures/iot/EP10(US)_1.0_1.0.2.json
vendored
Normal file
32
tests/fixtures/iot/EP10(US)_1.0_1.0.2.json
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "167 lamp",
|
||||
"dev_name": "Smart Wi-Fi Plug Mini",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "EP10(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -64,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.2 Build 200915 Rel.085940",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
45
tests/fixtures/iot/EP40(US)_1.0_1.0.2.json
vendored
Normal file
45
tests/fixtures/iot/EP40(US)_1.0_1.0.2.json
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "TP-LINK_Smart Plug_004F",
|
||||
"child_num": 2,
|
||||
"children": [
|
||||
{
|
||||
"alias": "Zombie",
|
||||
"id": "8006231E1499BAC4D4BC7EFCD4B075181E6393F200",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Magic",
|
||||
"id": "8006231E1499BAC4D4BC7EFCD4B075181E6393F201",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
}
|
||||
],
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "EP40(US)",
|
||||
"ntc_state": 0,
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"rssi": -47,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.2 Build 210105 Rel.165938",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
184
tests/fixtures/iot/ES20M(US)_1.0_1.0.11.json
vendored
Normal file
184
tests/fixtures/iot/ES20M(US)_1.0_1.0.11.json
vendored
Normal file
@@ -0,0 +1,184 @@
|
||||
{
|
||||
"cnCloud": {
|
||||
"get_info": {
|
||||
"binded": 1,
|
||||
"cld_connection": 1,
|
||||
"err_code": 0,
|
||||
"fwDlPage": "",
|
||||
"fwNotifyType": -1,
|
||||
"illegalType": 0,
|
||||
"server": "n-devs.tplinkcloud.com",
|
||||
"stopConnect": 0,
|
||||
"tcspInfo": "",
|
||||
"tcspStatus": 1,
|
||||
"username": "#MASKED_NAME#"
|
||||
},
|
||||
"get_intl_fw_list": {
|
||||
"err_code": 0,
|
||||
"fw_list": []
|
||||
}
|
||||
},
|
||||
"schedule": {
|
||||
"get_next_action": {
|
||||
"err_code": 0,
|
||||
"type": -1
|
||||
},
|
||||
"get_rules": {
|
||||
"enable": 1,
|
||||
"err_code": 0,
|
||||
"rule_list": [],
|
||||
"version": 2
|
||||
}
|
||||
},
|
||||
"smartlife.iot.LAS": {
|
||||
"get_adc_value": {
|
||||
"err_code": 0,
|
||||
"type": 2,
|
||||
"value": 0
|
||||
},
|
||||
"get_config": {
|
||||
"devs": [
|
||||
{
|
||||
"dark_index": 0,
|
||||
"enable": 1,
|
||||
"hw_id": 0,
|
||||
"level_array": [
|
||||
{
|
||||
"adc": 390,
|
||||
"name": "cloudy",
|
||||
"value": 15
|
||||
},
|
||||
{
|
||||
"adc": 300,
|
||||
"name": "overcast",
|
||||
"value": 11
|
||||
},
|
||||
{
|
||||
"adc": 222,
|
||||
"name": "dawn",
|
||||
"value": 8
|
||||
},
|
||||
{
|
||||
"adc": 222,
|
||||
"name": "twilight",
|
||||
"value": 8
|
||||
},
|
||||
{
|
||||
"adc": 111,
|
||||
"name": "total darkness",
|
||||
"value": 4
|
||||
},
|
||||
{
|
||||
"adc": 2400,
|
||||
"name": "custom",
|
||||
"value": 94
|
||||
}
|
||||
],
|
||||
"max_adc": 2550,
|
||||
"min_adc": 0
|
||||
}
|
||||
],
|
||||
"err_code": 0,
|
||||
"ver": "1.0"
|
||||
},
|
||||
"get_current_brt": {
|
||||
"err_code": 0,
|
||||
"value": 0
|
||||
},
|
||||
"get_dark_status": {
|
||||
"bDark": 1,
|
||||
"err_code": 0
|
||||
}
|
||||
},
|
||||
"smartlife.iot.PIR": {
|
||||
"get_adc_value": {
|
||||
"err_code": 0,
|
||||
"value": 2107
|
||||
},
|
||||
"get_config": {
|
||||
"array": [
|
||||
80,
|
||||
50,
|
||||
20,
|
||||
0
|
||||
],
|
||||
"cold_time": 120000,
|
||||
"enable": 0,
|
||||
"err_code": 0,
|
||||
"max_adc": 4095,
|
||||
"min_adc": 0,
|
||||
"trigger_index": 1,
|
||||
"version": "1.0"
|
||||
}
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"get_default_behavior": {
|
||||
"double_click": {
|
||||
"mode": "unknown"
|
||||
},
|
||||
"err_code": 0,
|
||||
"long_press": {
|
||||
"mode": "unknown"
|
||||
}
|
||||
},
|
||||
"get_dimmer_parameters": {
|
||||
"bulb_type": 1,
|
||||
"err_code": 0,
|
||||
"fadeOffTime": 0,
|
||||
"fadeOnTime": 0,
|
||||
"gentleOffTime": 10000,
|
||||
"gentleOnTime": 3000,
|
||||
"minThreshold": 5,
|
||||
"rampRate": 30
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"brightness": 100,
|
||||
"dev_name": "Wi-Fi Smart Dimmer with sensor",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "28:87:BA:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "ES20M(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"brightness": 75,
|
||||
"index": 1
|
||||
},
|
||||
{
|
||||
"brightness": 50,
|
||||
"index": 2
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"index": 3
|
||||
}
|
||||
],
|
||||
"relay_state": 0,
|
||||
"rssi": -57,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.11 Build 240514 Rel.110351",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
126
tests/fixtures/iot/ES20M(US)_1.0_1.0.8.json
vendored
Normal file
126
tests/fixtures/iot/ES20M(US)_1.0_1.0.8.json
vendored
Normal file
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"smartlife.iot.LAS": {
|
||||
"get_config": {
|
||||
"devs": [
|
||||
{
|
||||
"dark_index": 0,
|
||||
"enable": 1,
|
||||
"hw_id": 0,
|
||||
"level_array": [
|
||||
{
|
||||
"adc": 367,
|
||||
"name": "cloudy",
|
||||
"value": 14
|
||||
},
|
||||
{
|
||||
"adc": 300,
|
||||
"name": "overcast",
|
||||
"value": 12
|
||||
},
|
||||
{
|
||||
"adc": 222,
|
||||
"name": "dawn",
|
||||
"value": 9
|
||||
},
|
||||
{
|
||||
"adc": 222,
|
||||
"name": "twilight",
|
||||
"value": 9
|
||||
},
|
||||
{
|
||||
"adc": 111,
|
||||
"name": "total darkness",
|
||||
"value": 4
|
||||
},
|
||||
{
|
||||
"adc": 2400,
|
||||
"name": "custom",
|
||||
"value": 97
|
||||
}
|
||||
],
|
||||
"max_adc": 2450,
|
||||
"min_adc": 0
|
||||
}
|
||||
],
|
||||
"err_code": 0,
|
||||
"ver": "1.0"
|
||||
}
|
||||
},
|
||||
"smartlife.iot.PIR": {
|
||||
"get_config": {
|
||||
"array": [
|
||||
80,
|
||||
50,
|
||||
20,
|
||||
0
|
||||
],
|
||||
"cold_time": 600000,
|
||||
"enable": 1,
|
||||
"err_code": 0,
|
||||
"max_adc": 4095,
|
||||
"min_adc": 0,
|
||||
"trigger_index": 0,
|
||||
"version": "1.0"
|
||||
}
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"get_dimmer_parameters": {
|
||||
"bulb_type": 1,
|
||||
"err_code": 0,
|
||||
"fadeOffTime": 2000,
|
||||
"fadeOnTime": 1000,
|
||||
"gentleOffTime": 10000,
|
||||
"gentleOnTime": 3000,
|
||||
"minThreshold": 14,
|
||||
"rampRate": 30
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Test ES20M",
|
||||
"brightness": 35,
|
||||
"dev_name": "Wi-Fi Smart Dimmer with sensor",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "ES20M(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"brightness": 75,
|
||||
"index": 1
|
||||
},
|
||||
{
|
||||
"brightness": 50,
|
||||
"index": 2
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"index": 3
|
||||
}
|
||||
],
|
||||
"relay_state": 0,
|
||||
"rssi": -59,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.8 Build 211201 Rel.123822",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
28
tests/fixtures/iot/HS100(UK)_1.0_1.2.6.json
vendored
Normal file
28
tests/fixtures/iot/HS100(UK)_1.0_1.2.6.json
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "schedule",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"dev_name": "Wi-Fi Smart Plug",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"fwId": "00000000000000000000000000000000",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude": 0,
|
||||
"led_off": 0,
|
||||
"longitude": 0,
|
||||
"mac": "70:4F:57:00:00:00",
|
||||
"model": "HS100(UK)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -59,
|
||||
"sw_ver": "1.2.6 Build 200727 Rel.120236",
|
||||
"type": "IOT.SMARTPLUGSWITCH",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
47
tests/fixtures/iot/HS100(UK)_4.1_1.1.0.json
vendored
Normal file
47
tests/fixtures/iot/HS100(UK)_4.1_1.1.0.json
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"discovery_result": {
|
||||
"device_id": "00000000000000000000000000000000",
|
||||
"device_model": "HS100(UK)",
|
||||
"device_type": "IOT.SMARTPLUGSWITCH",
|
||||
"factory_default": true,
|
||||
"hw_ver": "4.1",
|
||||
"ip": "127.0.0.123",
|
||||
"mac": "CC-32-E5-00-00-00",
|
||||
"mgt_encrypt_schm": {
|
||||
"encrypt_type": "KLAP",
|
||||
"http_port": 80,
|
||||
"is_support_https": false
|
||||
},
|
||||
"owner": "00000000000000000000000000000000"
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"dev_name": "Smart Wi-Fi Plug",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "4.1",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "CC:32:E5:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS100(UK)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"ntc_state": 0,
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -43,
|
||||
"status": "new",
|
||||
"sw_ver": "1.1.0 Build 201016 Rel.175121",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
44
tests/fixtures/iot/HS100(US)_1.0_1.2.5.json
vendored
Normal file
44
tests/fixtures/iot/HS100(US)_1.0_1.2.5.json
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "schedule",
|
||||
"alias": "Unused 3",
|
||||
"dev_name": "Wi-Fi Smart Plug",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"fwId": "00000000000000000000000000000000",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude": 0,
|
||||
"led_off": 0,
|
||||
"longitude": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"model": "HS100(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -63,
|
||||
"sw_ver": "1.2.5 Build 171129 Rel.174814",
|
||||
"type": "IOT.SMARTPLUGSWITCH",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
49
tests/fixtures/iot/HS100(US)_2.0_1.5.6.json
vendored
Normal file
49
tests/fixtures/iot/HS100(US)_2.0_1.5.6.json
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
}
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "3D Printer",
|
||||
"dev_name": "Smart Wi-Fi Plug",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"fwId": "00000000000000000000000000000000",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"model": "HS100(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -36,
|
||||
"sw_ver": "1.5.6 Build 191118 Rel.140307",
|
||||
"type": "IOT.SMARTPLUGSWITCH",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
52
tests/fixtures/iot/HS103(US)_1.0_1.5.7.json
vendored
Normal file
52
tests/fixtures/iot/HS103(US)_1.0_1.5.7.json
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
}
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "schedule",
|
||||
"alias": "Night lite",
|
||||
"dev_name": "Smart Wi-Fi Plug Lite",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"fwId": "00000000000000000000000000000000",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"model": "HS103(US)",
|
||||
"next_action": {
|
||||
"action": 1,
|
||||
"id": "F98589DFF09AEA1D5AC2BDB4A8867305",
|
||||
"schd_sec": 75600,
|
||||
"type": 1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -43,
|
||||
"sw_ver": "1.5.7 Build 191114 Rel.105922",
|
||||
"type": "IOT.SMARTPLUGSWITCH",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
47
tests/fixtures/iot/HS103(US)_2.1_1.1.2.json
vendored
Normal file
47
tests/fixtures/iot/HS103(US)_2.1_1.1.2.json
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Corner",
|
||||
"dev_name": "Smart Wi-Fi Plug Lite",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.1",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS103(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -58,
|
||||
"status": "new",
|
||||
"sw_ver": "1.1.2 Build 191113 Rel.095623",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
31
tests/fixtures/iot/HS103(US)_2.1_1.1.4.json
vendored
Normal file
31
tests/fixtures/iot/HS103(US)_2.1_1.1.4.json
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Plug",
|
||||
"dev_name": "Smart Wi-Fi Plug Lite",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.1",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS103(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -48,
|
||||
"status": "new",
|
||||
"sw_ver": "1.1.4 Build 210409 Rel.113427",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
49
tests/fixtures/iot/HS105(US)_1.0_1.5.6.json
vendored
Normal file
49
tests/fixtures/iot/HS105(US)_1.0_1.5.6.json
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
}
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Unused 1",
|
||||
"dev_name": "Smart Wi-Fi Plug Mini",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"fwId": "00000000000000000000000000000000",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"model": "HS105(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -46,
|
||||
"sw_ver": "1.5.6 Build 191114 Rel.104204",
|
||||
"type": "IOT.SMARTPLUGSWITCH",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
59
tests/fixtures/iot/HS107(US)_1.0_1.0.8.json
vendored
Normal file
59
tests/fixtures/iot/HS107(US)_1.0_1.0.8.json
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "TP-LINK_Smart Plug_D310",
|
||||
"child_num": 2,
|
||||
"children": [
|
||||
{
|
||||
"alias": "Garage Charger 1",
|
||||
"id": "00",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Garage Charger 2",
|
||||
"id": "01",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
}
|
||||
],
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": -0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS107(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"rssi": -51,
|
||||
"sw_ver": "1.0.8 Build 190103 Rel.163436",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
37
tests/fixtures/iot/HS110(EU)_1.0_1.2.5.json
vendored
Normal file
37
tests/fixtures/iot/HS110(EU)_1.0_1.2.5.json
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"current": 0.014937,
|
||||
"err_code": 0,
|
||||
"power": 0.928511,
|
||||
"total": 55.139,
|
||||
"voltage": 231.067823
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "schedule",
|
||||
"alias": "Bedroom Lamp Plug",
|
||||
"dev_name": "Wi-Fi Smart Plug With Energy Monitoring",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM:ENE",
|
||||
"fwId": "00000000000000000000000000000000",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude": 0,
|
||||
"led_off": 1,
|
||||
"longitude": 0,
|
||||
"mac": "50:C7:BF:00:00:00",
|
||||
"model": "HS110(EU)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 6023162,
|
||||
"relay_state": 1,
|
||||
"rssi": -71,
|
||||
"sw_ver": "1.2.5 Build 171213 Rel.101523",
|
||||
"type": "IOT.SMARTPLUGSWITCH",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
40
tests/fixtures/iot/HS110(EU)_4.0_1.0.4.json
vendored
Normal file
40
tests/fixtures/iot/HS110(EU)_4.0_1.0.4.json
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"current_ma": 451,
|
||||
"err_code": 0,
|
||||
"power_mw": 61753,
|
||||
"total_wh": 16323,
|
||||
"voltage_mv": 230837
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"dev_name": "Smart Wi-Fi Plug With Energy Monitoring",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM:ENE",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "4.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 1,
|
||||
"longitude_i": 0,
|
||||
"mac": "B0:95:75:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS110(EU)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 1484778,
|
||||
"relay_state": 1,
|
||||
"rssi": -60,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.4 Build 191111 Rel.143500",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
37
tests/fixtures/iot/HS110(US)_1.0_1.2.6.json
vendored
Normal file
37
tests/fixtures/iot/HS110(US)_1.0_1.2.6.json
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"current": 0.128037,
|
||||
"err_code": 0,
|
||||
"power": 7.677094,
|
||||
"total": 30.404,
|
||||
"voltage": 118.917389
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "schedule",
|
||||
"alias": "Home Google WiFi HS110",
|
||||
"dev_name": "Wi-Fi Smart Plug With Energy Monitoring",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM:ENE",
|
||||
"fwId": "00000000000000000000000000000000",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude": 0,
|
||||
"led_off": 0,
|
||||
"longitude": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"model": "HS110(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 14048150,
|
||||
"relay_state": 1,
|
||||
"rssi": -38,
|
||||
"sw_ver": "1.2.6 Build 200727 Rel.121701",
|
||||
"type": "IOT.SMARTPLUGSWITCH",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
49
tests/fixtures/iot/HS200(US)_2.0_1.5.7.json
vendored
Normal file
49
tests/fixtures/iot/HS200(US)_2.0_1.5.7.json
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
}
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Master Bedroom Fan",
|
||||
"dev_name": "Smart Wi-Fi Light Switch",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"fwId": "00000000000000000000000000000000",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS200(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -33,
|
||||
"sw_ver": "1.5.7 Build 191118 Rel.140152",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
31
tests/fixtures/iot/HS200(US)_3.0_1.1.5.json
vendored
Normal file
31
tests/fixtures/iot/HS200(US)_3.0_1.1.5.json
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"dev_name": "Smart Wi-Fi Light Switch",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "3.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "D8:07:B6:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS200(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -44,
|
||||
"status": "new",
|
||||
"sw_ver": "1.1.5 Build 210422 Rel.082129",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
32
tests/fixtures/iot/HS200(US)_5.0_1.0.11.json
vendored
Normal file
32
tests/fixtures/iot/HS200(US)_5.0_1.0.11.json
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"dev_name": "Smart Wi-Fi Light Switch",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "5.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "28:87:BA:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS200(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -41,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.11 Build 230908 Rel.160526",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
31
tests/fixtures/iot/HS200(US)_5.0_1.0.2.json
vendored
Normal file
31
tests/fixtures/iot/HS200(US)_5.0_1.0.2.json
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "House Fan",
|
||||
"dev_name": "Smart Wi-Fi Light Switch",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "5.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS200(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -50,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.2 Build 200819 Rel.105309",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
50
tests/fixtures/iot/HS210(US)_1.0_1.5.8.json
vendored
Normal file
50
tests/fixtures/iot/HS210(US)_1.0_1.5.8.json
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
}
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"abnormal_detect": 1,
|
||||
"active_mode": "none",
|
||||
"alias": "Garage Light",
|
||||
"dev_name": "Smart Wi-Fi 3-Way Light Switch",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"fwId": "00000000000000000000000000000000",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS210(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -52,
|
||||
"sw_ver": "1.5.8 Build 191118 Rel.135937",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
31
tests/fixtures/iot/HS210(US)_2.0_1.1.5.json
vendored
Normal file
31
tests/fixtures/iot/HS210(US)_2.0_1.1.5.json
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"dev_name": "Smart Wi-Fi 3-Way Light Switch",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "D8:07:B6:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS210(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -43,
|
||||
"status": "new",
|
||||
"sw_ver": "1.1.5 Build 210422 Rel.113212",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
76
tests/fixtures/iot/HS220(US)_1.0_1.5.7.json
vendored
Normal file
76
tests/fixtures/iot/HS220(US)_1.0_1.5.7.json
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
}
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"get_dimmer_parameters": {
|
||||
"bulb_type": 1,
|
||||
"err_code": 0,
|
||||
"fadeOffTime": 1000,
|
||||
"fadeOnTime": 1000,
|
||||
"gentleOffTime": 10000,
|
||||
"gentleOnTime": 3000,
|
||||
"minThreshold": 0,
|
||||
"rampRate": 30
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Living Room Dimmer Switch",
|
||||
"brightness": 25,
|
||||
"dev_name": "Smart Wi-Fi Dimmer",
|
||||
"deviceId": "000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"fwId": "00000000000000000000000000000000",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 11.6210,
|
||||
"led_off": 0,
|
||||
"longitude_i": 42.2074,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS220(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"brightness": 75,
|
||||
"index": 1
|
||||
},
|
||||
{
|
||||
"brightness": 50,
|
||||
"index": 2
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"index": 3
|
||||
}
|
||||
],
|
||||
"relay_state": 0,
|
||||
"rssi": -35,
|
||||
"sw_ver": "1.5.7 Build 180912 Rel.104837",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
64
tests/fixtures/iot/HS220(US)_2.0_1.0.3.json
vendored
Normal file
64
tests/fixtures/iot/HS220(US)_2.0_1.0.3.json
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"smartlife.iot.dimmer": {
|
||||
"get_dimmer_parameters": {
|
||||
"err_code": 0,
|
||||
"fadeOffTime": 1000,
|
||||
"fadeOnTime": 1000,
|
||||
"gentleOffTime": 10000,
|
||||
"gentleOnTime": 3000,
|
||||
"minThreshold": 0,
|
||||
"rampRate": 30
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Living Room Dimmer Switch",
|
||||
"brightness": 100,
|
||||
"dev_name": "Wi-Fi Smart Dimmer",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS220(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"brightness": 75,
|
||||
"index": 1
|
||||
},
|
||||
{
|
||||
"brightness": 50,
|
||||
"index": 2
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"index": 3
|
||||
}
|
||||
],
|
||||
"relay_state": 0,
|
||||
"rssi": -45,
|
||||
"sw_ver": "1.0.3 Build 200326 Rel.082355",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
100
tests/fixtures/iot/HS300(US)_1.0_1.0.10.json
vendored
Normal file
100
tests/fixtures/iot/HS300(US)_1.0_1.0.10.json
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"current_ma": 4,
|
||||
"err_code": 0,
|
||||
"power_mw": 17,
|
||||
"total_wh": 1279,
|
||||
"voltage_mv": 122414
|
||||
}
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "TP-LINK_Power Strip_DAE1",
|
||||
"child_num": 6,
|
||||
"children": [
|
||||
{
|
||||
"alias": "Office Monitor 1",
|
||||
"id": "00",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Office Monitor 2",
|
||||
"id": "01",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Office Monitor 3",
|
||||
"id": "02",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Office Laptop Dock",
|
||||
"id": "03",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Office Desk Light",
|
||||
"id": "04",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Laptop",
|
||||
"id": "05",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": -32407,
|
||||
"state": 1
|
||||
}
|
||||
],
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM:ENE",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": -0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS300(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"rssi": -62,
|
||||
"sw_ver": "1.0.10 Build 190103 Rel.163517",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
89
tests/fixtures/iot/HS300(US)_1.0_1.0.21.json
vendored
Normal file
89
tests/fixtures/iot/HS300(US)_1.0_1.0.21.json
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"current_ma": 544,
|
||||
"err_code": 0,
|
||||
"power_mw": 62430,
|
||||
"total_wh": 26889,
|
||||
"voltage_mv": 118389
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "TP-LINK_Power Strip_2CA9",
|
||||
"child_num": 6,
|
||||
"children": [
|
||||
{
|
||||
"alias": "Home CameraPC",
|
||||
"id": "800623145DFF1AA096363EFD161C2E661A9D8DED00",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 1449897,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "Home Firewalla",
|
||||
"id": "800623145DFF1AA096363EFD161C2E661A9D8DED01",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 1449897,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "Home Cox modem",
|
||||
"id": "800623145DFF1AA096363EFD161C2E661A9D8DED02",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 1449897,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "Home rpi3-2",
|
||||
"id": "800623145DFF1AA096363EFD161C2E661A9D8DED03",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 1449897,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "Home Camera Switch",
|
||||
"id": "800623145DFF1AA096363EFD161C2E661A9D8DED05",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 1449897,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "Home Network Switch",
|
||||
"id": "800623145DFF1AA096363EFD161C2E661A9D8DED04",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 1449897,
|
||||
"state": 1
|
||||
}
|
||||
],
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM:ENE",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS300(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"rssi": -39,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.21 Build 210524 Rel.161309",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
90
tests/fixtures/iot/HS300(US)_2.0_1.0.12.json
vendored
Normal file
90
tests/fixtures/iot/HS300(US)_2.0_1.0.12.json
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"current_ma": 6,
|
||||
"err_code": 0,
|
||||
"power_mw": 277,
|
||||
"slot_id": 0,
|
||||
"total_wh": 62,
|
||||
"voltage_mv": 120110
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "#MASKED_NAME#",
|
||||
"child_num": 6,
|
||||
"children": [
|
||||
{
|
||||
"alias": "#MASKED_NAME#",
|
||||
"id": "8006A0F1D01120C3F93794F7AACACDBE1EAD246D00",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 710216,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "#MASKED_NAME#",
|
||||
"id": "8006A0F1D01120C3F93794F7AACACDBE1EAD246D01",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 710216,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "#MASKED_NAME#",
|
||||
"id": "8006A0F1D01120C3F93794F7AACACDBE1EAD246D02",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 710216,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "#MASKED_NAME#",
|
||||
"id": "8006A0F1D01120C3F93794F7AACACDBE1EAD246D03",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 710216,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "#MASKED_NAME#",
|
||||
"id": "8006A0F1D01120C3F93794F7AACACDBE1EAD246D04",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 710216,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "#MASKED_NAME#",
|
||||
"id": "8006A0F1D01120C3F93794F7AACACDBE1EAD246D05",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 710216,
|
||||
"state": 1
|
||||
}
|
||||
],
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM:ENE",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.0",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "C0:06:C3:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS300(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"rssi": -44,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.12 Build 220121 Rel.175814",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
90
tests/fixtures/iot/HS300(US)_2.0_1.0.3.json
vendored
Normal file
90
tests/fixtures/iot/HS300(US)_2.0_1.0.3.json
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"current_ma": 0,
|
||||
"err_code": 0,
|
||||
"power_mw": 0,
|
||||
"slot_id": 0,
|
||||
"total_wh": 0,
|
||||
"voltage_mv": 121302
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "TP-LINK_Power Strip_5C33",
|
||||
"child_num": 6,
|
||||
"children": [
|
||||
{
|
||||
"alias": "Plug 1",
|
||||
"id": "8006AF35494E7DB13DDE9B8F40BF2E001E77031900",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Plug 2",
|
||||
"id": "8006AF35494E7DB13DDE9B8F40BF2E001E77031901",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Plug 3",
|
||||
"id": "8006AF35494E7DB13DDE9B8F40BF2E001E77031902",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Plug 4",
|
||||
"id": "8006AF35494E7DB13DDE9B8F40BF2E001E77031903",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Plug 5",
|
||||
"id": "8006AF35494E7DB13DDE9B8F40BF2E001E77031904",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Plug 6",
|
||||
"id": "8006AF35494E7DB13DDE9B8F40BF2E001E77031905",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
}
|
||||
],
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM:ENE",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.0",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "HS300(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"rssi": -55,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.3 Build 201203 Rel.165457",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
89
tests/fixtures/iot/KL110(US)_1.0_1.8.11.json
vendored
Normal file
89
tests/fixtures/iot/KL110(US)_1.0_1.8.11.json
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 0
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_light_state": {
|
||||
"dft_on_state": {
|
||||
"brightness": 95,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"saturation": 0
|
||||
},
|
||||
"err_code": 0,
|
||||
"on_off": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Bulb3",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Smart Wi-Fi LED Bulb with Dimmable Light",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"heapsize": 291620,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 0,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 0,
|
||||
"light_state": {
|
||||
"dft_on_state": {
|
||||
"brightness": 95,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"saturation": 0
|
||||
},
|
||||
"on_off": 0
|
||||
},
|
||||
"mic_mac": "000000000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL110(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 75,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 2,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 1,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 3,
|
||||
"saturation": 0
|
||||
}
|
||||
],
|
||||
"rssi": -64,
|
||||
"sw_ver": "1.8.11 Build 191113 Rel.105336"
|
||||
}
|
||||
}
|
||||
}
|
||||
85
tests/fixtures/iot/KL120(US)_1.0_1.8.11.json
vendored
Normal file
85
tests/fixtures/iot/KL120(US)_1.0_1.8.11.json
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 7800
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_light_state": {
|
||||
"brightness": 70,
|
||||
"color_temp": 3001,
|
||||
"err_code": 0,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Home Family Room Table",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Smart Wi-Fi LED Bulb with Tunable White Light",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"heapsize": 292140,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 0,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"light_state": {
|
||||
"brightness": 70,
|
||||
"color_temp": 3001,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
"mic_mac": "000000000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL120(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 3500,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 50,
|
||||
"color_temp": 5000,
|
||||
"hue": 0,
|
||||
"index": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 50,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 2,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 1,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 3,
|
||||
"saturation": 0
|
||||
}
|
||||
],
|
||||
"rssi": -45,
|
||||
"sw_ver": "1.8.11 Build 191113 Rel.105336"
|
||||
}
|
||||
}
|
||||
}
|
||||
93
tests/fixtures/iot/KL120(US)_1.0_1.8.6.json
vendored
Normal file
93
tests/fixtures/iot/KL120(US)_1.0_1.8.6.json
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"emeter": {
|
||||
"err_code": -2001,
|
||||
"err_msg": "Module not support"
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 1800
|
||||
}
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"err_code": -2001,
|
||||
"err_msg": "Module not support"
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_light_state": {
|
||||
"brightness": 10,
|
||||
"color_temp": 2700,
|
||||
"err_code": 0,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Smart Wi-Fi LED Bulb with Tunable White Light",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "801200814AD69370AC59DE5501319C051AF409C3",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"heapsize": 290784,
|
||||
"hwId": "111E35908497A05512E259BB76801E10",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 0,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"light_state": {
|
||||
"brightness": 10,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
"mic_mac": "D80D17150474",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL120(US)",
|
||||
"oemId": "1210657CD7FBDC72895644388EEFAE8B",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 3500,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 50,
|
||||
"color_temp": 5000,
|
||||
"hue": 0,
|
||||
"index": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 50,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 2,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 1,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 3,
|
||||
"saturation": 0
|
||||
}
|
||||
],
|
||||
"rssi": -52,
|
||||
"sw_ver": "1.8.6 Build 180809 Rel.091659"
|
||||
}
|
||||
}
|
||||
}
|
||||
88
tests/fixtures/iot/KL125(US)_1.20_1.0.5.json
vendored
Normal file
88
tests/fixtures/iot/KL125(US)_1.20_1.0.5.json
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 10800,
|
||||
"total_wh": 40
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_light_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 4000,
|
||||
"err_code": 0,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "kasa-bc01",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Smart Wi-Fi LED Bulb with Color Changing",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.20",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"latitude_i": 0,
|
||||
"light_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 4000,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "000000000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL125(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 4000,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 0,
|
||||
"index": 1,
|
||||
"saturation": 100
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 120,
|
||||
"index": 2,
|
||||
"saturation": 100
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 240,
|
||||
"index": 3,
|
||||
"saturation": 100
|
||||
}
|
||||
],
|
||||
"rssi": -59,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.5 Build 200831 Rel.141525"
|
||||
}
|
||||
}
|
||||
}
|
||||
92
tests/fixtures/iot/KL125(US)_2.0_1.0.7.json
vendored
Normal file
92
tests/fixtures/iot/KL125(US)_2.0_1.0.7.json
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 0,
|
||||
"total_wh": 238
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_light_state": {
|
||||
"dft_on_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 2500,
|
||||
"hue": 255,
|
||||
"mode": "normal",
|
||||
"saturation": 100
|
||||
},
|
||||
"err_code": 0,
|
||||
"on_off": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Test bulb 6",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Smart Wi-Fi LED Bulb with Color Changing",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.0",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"latitude_i": 0,
|
||||
"light_state": {
|
||||
"dft_on_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 2500,
|
||||
"hue": 255,
|
||||
"mode": "normal",
|
||||
"saturation": 100
|
||||
},
|
||||
"on_off": 0
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "000000000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL125(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 50,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 0,
|
||||
"index": 1,
|
||||
"saturation": 100
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 120,
|
||||
"index": 2,
|
||||
"saturation": 100
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 240,
|
||||
"index": 3,
|
||||
"saturation": 100
|
||||
}
|
||||
],
|
||||
"rssi": -63,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.7 Build 210811 Rel.171439"
|
||||
}
|
||||
}
|
||||
}
|
||||
93
tests/fixtures/iot/KL125(US)_4.0_1.0.5.json
vendored
Normal file
93
tests/fixtures/iot/KL125(US)_4.0_1.0.5.json
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 0,
|
||||
"total_wh": 0
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_light_state": {
|
||||
"dft_on_state": {
|
||||
"brightness": 84,
|
||||
"color_temp": 0,
|
||||
"hue": 9,
|
||||
"mode": "normal",
|
||||
"saturation": 67
|
||||
},
|
||||
"err_code": 0,
|
||||
"on_off": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Smart Wi-Fi LED Bulb with Color Changing",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "4.0",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"latitude_i": 0,
|
||||
"light_state": {
|
||||
"dft_on_state": {
|
||||
"brightness": 84,
|
||||
"color_temp": 0,
|
||||
"hue": 9,
|
||||
"mode": "normal",
|
||||
"saturation": 67
|
||||
},
|
||||
"on_off": 0
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "5091E3000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL125(US)",
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 50,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 0,
|
||||
"index": 1,
|
||||
"saturation": 100
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 120,
|
||||
"index": 2,
|
||||
"saturation": 100
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 240,
|
||||
"index": 3,
|
||||
"saturation": 100
|
||||
}
|
||||
],
|
||||
"rssi": -37,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.5 Build 230613 Rel.151643"
|
||||
}
|
||||
}
|
||||
}
|
||||
150
tests/fixtures/iot/KL130(EU)_1.0_1.8.8.json
vendored
Normal file
150
tests/fixtures/iot/KL130(EU)_1.0_1.8.8.json
vendored
Normal file
@@ -0,0 +1,150 @@
|
||||
{
|
||||
"smartlife.iot.common.cloud": {
|
||||
"get_info": {
|
||||
"binded": 1,
|
||||
"cld_connection": 1,
|
||||
"err_code": 0,
|
||||
"fwDlPage": "",
|
||||
"fwNotifyType": 0,
|
||||
"illegalType": 0,
|
||||
"server": "n-devs.tplinkcloud.com",
|
||||
"stopConnect": 0,
|
||||
"tcspInfo": "",
|
||||
"tcspStatus": 1,
|
||||
"username": "#MASKED_NAME#"
|
||||
},
|
||||
"get_intl_fw_list": {
|
||||
"err_code": 0,
|
||||
"fw_list": [
|
||||
{
|
||||
"fwLocation": 0,
|
||||
"fwReleaseDate": "2019-11-27",
|
||||
"fwReleaseLog": "New Features/Enhancements:\n1. Added the offset feature when scheduling sunset/sunrise.\n2. Improved the overall performance of schedule feature.",
|
||||
"fwReleaseLogUrl": "undefined yet",
|
||||
"fwTitle": "Hi, a new firmware with bug fixes is available for your product.",
|
||||
"fwType": 0,
|
||||
"fwUrl": "http://download.tplinkcloud.com/firmware/smartBulb_FCC_1.8.11_Build_191113_Rel.105336__1574839035801.bin",
|
||||
"fwVer": "1.8.11 Build 191113 Rel.105336"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 10800
|
||||
}
|
||||
},
|
||||
"smartlife.iot.common.schedule": {
|
||||
"get_next_action": {
|
||||
"err_code": 0,
|
||||
"type": -1
|
||||
},
|
||||
"get_rules": {
|
||||
"enable": 1,
|
||||
"err_code": 0,
|
||||
"rule_list": []
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_default_behavior": {
|
||||
"err_code": 0,
|
||||
"hard_on": {
|
||||
"mode": "circadian"
|
||||
},
|
||||
"soft_on": {
|
||||
"brightness": 50,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"mode": "customize_preset",
|
||||
"saturation": 0
|
||||
}
|
||||
},
|
||||
"get_light_details": {
|
||||
"color_rendering_index": 80,
|
||||
"err_code": 0,
|
||||
"incandescent_equivalent": 60,
|
||||
"lamp_beam_angle": 150,
|
||||
"max_lumens": 800,
|
||||
"max_voltage": 120,
|
||||
"min_voltage": 110,
|
||||
"wattage": 10
|
||||
},
|
||||
"get_light_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 2700,
|
||||
"err_code": 0,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Smart Wi-Fi LED Bulb with Color Changing",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"heapsize": 308144,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"light_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
"mic_mac": "1C3BF3000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL130(EU)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 50,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 20,
|
||||
"color_temp": 0,
|
||||
"hue": 0,
|
||||
"index": 1,
|
||||
"saturation": 75
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 120,
|
||||
"index": 2,
|
||||
"saturation": 75
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 240,
|
||||
"index": 3,
|
||||
"saturation": 75
|
||||
}
|
||||
],
|
||||
"rssi": -60,
|
||||
"sw_ver": "1.8.8 Build 190613 Rel.123436"
|
||||
}
|
||||
}
|
||||
}
|
||||
89
tests/fixtures/iot/KL130(US)_1.0_1.8.11.json
vendored
Normal file
89
tests/fixtures/iot/KL130(US)_1.0_1.8.11.json
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 0
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_light_state": {
|
||||
"dft_on_state": {
|
||||
"brightness": 30,
|
||||
"color_temp": 0,
|
||||
"hue": 240,
|
||||
"mode": "normal",
|
||||
"saturation": 100
|
||||
},
|
||||
"err_code": 0,
|
||||
"on_off": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Bulb2",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Smart Wi-Fi LED Bulb with Color Changing",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"heapsize": 305252,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"light_state": {
|
||||
"dft_on_state": {
|
||||
"brightness": 30,
|
||||
"color_temp": 0,
|
||||
"hue": 240,
|
||||
"mode": "normal",
|
||||
"saturation": 100
|
||||
},
|
||||
"on_off": 0
|
||||
},
|
||||
"mic_mac": "000000000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL130(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 50,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 0,
|
||||
"index": 1,
|
||||
"saturation": 75
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 120,
|
||||
"index": 2,
|
||||
"saturation": 75
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 240,
|
||||
"index": 3,
|
||||
"saturation": 75
|
||||
}
|
||||
],
|
||||
"rssi": -52,
|
||||
"sw_ver": "1.8.11 Build 191113 Rel.105336"
|
||||
}
|
||||
}
|
||||
}
|
||||
140
tests/fixtures/iot/KL135(US)_1.0_1.0.15.json
vendored
Normal file
140
tests/fixtures/iot/KL135(US)_1.0_1.0.15.json
vendored
Normal file
@@ -0,0 +1,140 @@
|
||||
{
|
||||
"smartlife.iot.common.cloud": {
|
||||
"get_info": {
|
||||
"binded": 1,
|
||||
"cld_connection": 1,
|
||||
"err_code": 0,
|
||||
"fwDlPage": "",
|
||||
"fwNotifyType": -1,
|
||||
"illegalType": 0,
|
||||
"server": "n-devs.tplinkcloud.com",
|
||||
"stopConnect": 0,
|
||||
"tcspInfo": "",
|
||||
"tcspStatus": 1,
|
||||
"username": "#MASKED_NAME#"
|
||||
},
|
||||
"get_intl_fw_list": {
|
||||
"err_code": 0,
|
||||
"fw_list": []
|
||||
}
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 10800,
|
||||
"total_wh": 48
|
||||
}
|
||||
},
|
||||
"smartlife.iot.common.schedule": {
|
||||
"get_next_action": {
|
||||
"err_code": 0,
|
||||
"type": -1
|
||||
},
|
||||
"get_rules": {
|
||||
"enable": 0,
|
||||
"err_code": 0,
|
||||
"rule_list": [],
|
||||
"version": 2
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_default_behavior": {
|
||||
"err_code": 0,
|
||||
"hard_on": {
|
||||
"mode": "last_status"
|
||||
},
|
||||
"re_power_type": "always_on",
|
||||
"soft_on": {
|
||||
"mode": "last_status"
|
||||
}
|
||||
},
|
||||
"get_light_details": {
|
||||
"color_rendering_index": 90,
|
||||
"err_code": 0,
|
||||
"incandescent_equivalent": 60,
|
||||
"lamp_beam_angle": 220,
|
||||
"max_lumens": 800,
|
||||
"max_voltage": 120,
|
||||
"min_voltage": 100,
|
||||
"wattage": 10
|
||||
},
|
||||
"get_light_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 2700,
|
||||
"err_code": 0,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Smart Wi-Fi LED Bulb with Color Changing",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"latitude_i": 0,
|
||||
"light_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "54AF97000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL135(US)",
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 0,
|
||||
"index": 1,
|
||||
"saturation": 100
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 120,
|
||||
"index": 2,
|
||||
"saturation": 100
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 240,
|
||||
"index": 3,
|
||||
"saturation": 100
|
||||
}
|
||||
],
|
||||
"rssi": -69,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.15 Build 240429 Rel.154143"
|
||||
}
|
||||
}
|
||||
}
|
||||
89
tests/fixtures/iot/KL135(US)_1.0_1.0.6.json
vendored
Normal file
89
tests/fixtures/iot/KL135(US)_1.0_1.0.6.json
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 900,
|
||||
"total_wh": 0
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_light_state": {
|
||||
"brightness": 1,
|
||||
"color_temp": 0,
|
||||
"err_code": 0,
|
||||
"hue": 37,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 100
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "KL135 Bulb",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Smart Wi-Fi LED Bulb with Color Changing",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"latitude_i": 0,
|
||||
"light_state": {
|
||||
"brightness": 1,
|
||||
"color_temp": 0,
|
||||
"hue": 37,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 100
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "000000000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL135(US)",
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 50,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 0,
|
||||
"index": 1,
|
||||
"saturation": 100
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 120,
|
||||
"index": 2,
|
||||
"saturation": 100
|
||||
},
|
||||
{
|
||||
"brightness": 1,
|
||||
"color_temp": 0,
|
||||
"hue": 37,
|
||||
"index": 3,
|
||||
"saturation": 100
|
||||
}
|
||||
],
|
||||
"rssi": -69,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.6 Build 210330 Rel.173743"
|
||||
}
|
||||
}
|
||||
}
|
||||
57
tests/fixtures/iot/KL400L5(US)_1.0_1.0.5.json
vendored
Normal file
57
tests/fixtures/iot/KL400L5(US)_1.0_1.0.5.json
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 10800,
|
||||
"total_wh": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"LEF": 0,
|
||||
"active_mode": "none",
|
||||
"alias": "Kl400",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Kasa Smart Light Strip, Multicolor",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 0,
|
||||
"latitude_i": 0,
|
||||
"length": 16,
|
||||
"light_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 6500,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
"lighting_effect_state": {
|
||||
"brightness": 50,
|
||||
"custom": 0,
|
||||
"enable": 0,
|
||||
"id": "",
|
||||
"name": "station"
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL400L5(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [],
|
||||
"rssi": -58,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.5 Build 210616 Rel.122727"
|
||||
}
|
||||
}
|
||||
}
|
||||
57
tests/fixtures/iot/KL400L5(US)_1.0_1.0.8.json
vendored
Normal file
57
tests/fixtures/iot/KL400L5(US)_1.0_1.0.8.json
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 10800,
|
||||
"total_wh": 1
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"LEF": 0,
|
||||
"active_mode": "none",
|
||||
"alias": "Kl400",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Kasa Smart Light Strip, Multicolor",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 0,
|
||||
"latitude_i": 0,
|
||||
"length": 1,
|
||||
"light_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 6500,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
"lighting_effect_state": {
|
||||
"brightness": 100,
|
||||
"custom": 0,
|
||||
"enable": 1,
|
||||
"id": "CdLeIgiKcQrLKMINRPTMbylATulQewLD",
|
||||
"name": "Hanukkah"
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL400L5(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [],
|
||||
"rssi": -44,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.8 Build 211018 Rel.162056"
|
||||
}
|
||||
}
|
||||
}
|
||||
57
tests/fixtures/iot/KL420L5(US)_1.0_1.0.2.json
vendored
Normal file
57
tests/fixtures/iot/KL420L5(US)_1.0_1.0.2.json
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 1503,
|
||||
"total_wh": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"LEF": 1,
|
||||
"active_mode": "none",
|
||||
"alias": "Kl420 test",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Kasa Smart Light Strip, Multicolor",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 0,
|
||||
"latitude_i": 0,
|
||||
"length": 50,
|
||||
"light_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 6500,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
"lighting_effect_state": {
|
||||
"brightness": 50,
|
||||
"custom": 0,
|
||||
"enable": 0,
|
||||
"id": "",
|
||||
"name": "station"
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL420L5(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [],
|
||||
"rssi": -44,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.2 Build 211009 Rel.164949"
|
||||
}
|
||||
}
|
||||
}
|
||||
90
tests/fixtures/iot/KL430(UN)_2.0_1.0.8.json
vendored
Normal file
90
tests/fixtures/iot/KL430(UN)_2.0_1.0.8.json
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 16760,
|
||||
"total_wh": 120
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"LEF": 1,
|
||||
"active_mode": "none",
|
||||
"alias": "Bedroom light strip",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Kasa Smart Light Strip, Multicolor",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.0",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"latitude_i": 0,
|
||||
"length": 16,
|
||||
"light_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 9000,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
"lighting_effect_state": {
|
||||
"brightness": 100,
|
||||
"custom": 1,
|
||||
"enable": 1,
|
||||
"id": "yMwcNpLxijmoKamskHCvvravpbnIqAIN",
|
||||
"name": "Aurora 1"
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL430(UN)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 9000,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"mode": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 217,
|
||||
"index": 1,
|
||||
"mode": 1,
|
||||
"saturation": 99
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 194,
|
||||
"index": 2,
|
||||
"mode": 1,
|
||||
"saturation": 50
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 277,
|
||||
"index": 3,
|
||||
"mode": 1,
|
||||
"saturation": 86
|
||||
}
|
||||
],
|
||||
"rssi": -43,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.8 Build 210121 Rel.084339"
|
||||
}
|
||||
}
|
||||
}
|
||||
109
tests/fixtures/iot/KL430(US)_1.0_1.0.10.json
vendored
Normal file
109
tests/fixtures/iot/KL430(US)_1.0_1.0.10.json
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
{
|
||||
"emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"current_ma": 0,
|
||||
"err_code": 0,
|
||||
"power_mw": 2725,
|
||||
"total_wh": 1193,
|
||||
"voltage_mv": 0
|
||||
}
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "schedule",
|
||||
"alias": "Bedroom Lightstrip",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Kasa Smart Light Strip, Multicolor",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"latitude_i": 0,
|
||||
"length": 16,
|
||||
"light_state": {
|
||||
"brightness": 15,
|
||||
"color_temp": 2500,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
"lighting_effect_state": {
|
||||
"brightness": 100,
|
||||
"custom": 0,
|
||||
"enable": 0,
|
||||
"id": "bCTItKETDFfrKANolgldxfgOakaarARs",
|
||||
"name": "Flicker"
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "CC32E5000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL430(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"custom": 0,
|
||||
"id": "QglBhMShPHUAuxLqzNEefFrGiJwahOmz",
|
||||
"index": 0,
|
||||
"mode": 2
|
||||
},
|
||||
{
|
||||
"brightness": 100,
|
||||
"custom": 0,
|
||||
"id": "bCTItKETDFfrKANolgldxfgOakaarARs",
|
||||
"index": 1,
|
||||
"mode": 2
|
||||
},
|
||||
{
|
||||
"brightness": 34,
|
||||
"color_temp": 0,
|
||||
"hue": 7,
|
||||
"index": 2,
|
||||
"mode": 1,
|
||||
"saturation": 49
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"color_temp": 0,
|
||||
"hue": 4,
|
||||
"index": 3,
|
||||
"mode": 1,
|
||||
"saturation": 100
|
||||
},
|
||||
{
|
||||
"brightness": 15,
|
||||
"color_temp": 2500,
|
||||
"hue": 0,
|
||||
"index": 4,
|
||||
"mode": 1,
|
||||
"saturation": 0
|
||||
}
|
||||
],
|
||||
"rssi": -44,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.10 Build 200522 Rel.104340"
|
||||
}
|
||||
}
|
||||
}
|
||||
141
tests/fixtures/iot/KL430(US)_2.0_1.0.11.json
vendored
Normal file
141
tests/fixtures/iot/KL430(US)_2.0_1.0.11.json
vendored
Normal file
@@ -0,0 +1,141 @@
|
||||
{
|
||||
"smartlife.iot.common.cloud": {
|
||||
"get_info": {
|
||||
"binded": 1,
|
||||
"cld_connection": 1,
|
||||
"err_code": 0,
|
||||
"fwDlPage": "",
|
||||
"fwNotifyType": -1,
|
||||
"illegalType": 0,
|
||||
"server": "n-devs.tplinkcloud.com",
|
||||
"stopConnect": 0,
|
||||
"tcspInfo": "",
|
||||
"tcspStatus": 1,
|
||||
"username": "#MASKED_NAME#"
|
||||
},
|
||||
"get_intl_fw_list": {
|
||||
"err_code": 0,
|
||||
"fw_list": [
|
||||
{
|
||||
"fwLocation": 0,
|
||||
"fwReleaseDate": "2024-06-28",
|
||||
"fwReleaseLog": "Modifications and Bug Fixes:\n1. Enhanced device stability.\n2. Fixed the problem that Color Painting doesn't work properly in some cases.\n3. Fixed some minor bugs.",
|
||||
"fwReleaseLogUrl": "undefined yet",
|
||||
"fwTitle": "Hi, a new firmware with bug fixes is available for your product.",
|
||||
"fwType": 1,
|
||||
"fwUrl": "http://download.tplinkcloud.com/firmware/KLM430v2_FCC_KL430_1.0.12_Build_240227_Rel.160022_2024-02-27_16.01.59_1719559326313.bin",
|
||||
"fwVer": "1.0.12 Build 240227 Rel.160022"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 600,
|
||||
"total_wh": 0
|
||||
}
|
||||
},
|
||||
"smartlife.iot.common.schedule": {
|
||||
"get_next_action": {
|
||||
"err_code": 0,
|
||||
"type": -1
|
||||
},
|
||||
"get_rules": {
|
||||
"enable": 0,
|
||||
"err_code": 0,
|
||||
"rule_list": [],
|
||||
"version": 2
|
||||
}
|
||||
},
|
||||
"smartlife.iot.lightStrip": {
|
||||
"get_default_behavior": {
|
||||
"err_code": 0,
|
||||
"hard_on": {
|
||||
"mode": "last_status"
|
||||
},
|
||||
"soft_on": {
|
||||
"mode": "last_status"
|
||||
}
|
||||
},
|
||||
"get_light_details": {
|
||||
"color_rendering_index": 80,
|
||||
"err_code": 0,
|
||||
"incandescent_equivalent": 60,
|
||||
"lamp_beam_angle": 180,
|
||||
"max_lumens": 800,
|
||||
"max_voltage": 120,
|
||||
"min_voltage": 100,
|
||||
"wattage": 10
|
||||
},
|
||||
"get_light_state": {
|
||||
"dft_on_state": {
|
||||
"groups": [
|
||||
[
|
||||
0,
|
||||
15,
|
||||
0,
|
||||
0,
|
||||
100,
|
||||
3842
|
||||
]
|
||||
],
|
||||
"mode": "normal"
|
||||
},
|
||||
"err_code": 0,
|
||||
"length": 16,
|
||||
"on_off": 0,
|
||||
"transition": 500
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"LEF": 1,
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Kasa Smart Light Strip, Multicolor",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.0",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"latitude_i": 0,
|
||||
"length": 16,
|
||||
"light_state": {
|
||||
"dft_on_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 3842,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"saturation": 0
|
||||
},
|
||||
"on_off": 0
|
||||
},
|
||||
"lighting_effect_state": {
|
||||
"brightness": 100,
|
||||
"custom": 0,
|
||||
"enable": 0,
|
||||
"id": "bCTItKETDFfrKANolgldxfgOakaarARs",
|
||||
"name": "Flicker"
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "E8:48:B8:00:00:00",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL430(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [],
|
||||
"rssi": -35,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.11 Build 220812 Rel.153345"
|
||||
}
|
||||
}
|
||||
}
|
||||
59
tests/fixtures/iot/KL430(US)_2.0_1.0.8.json
vendored
Normal file
59
tests/fixtures/iot/KL430(US)_2.0_1.0.8.json
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 600,
|
||||
"total_wh": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"LEF": 1,
|
||||
"active_mode": "none",
|
||||
"alias": "89 strip",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Kasa Smart Light Strip, Multicolor",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.0",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"latitude_i": 0,
|
||||
"length": 16,
|
||||
"light_state": {
|
||||
"dft_on_state": {
|
||||
"brightness": 50,
|
||||
"color_temp": 0,
|
||||
"hue": 30,
|
||||
"mode": "normal",
|
||||
"saturation": 100
|
||||
},
|
||||
"on_off": 0
|
||||
},
|
||||
"lighting_effect_state": {
|
||||
"brightness": 50,
|
||||
"custom": 0,
|
||||
"enable": 0,
|
||||
"id": "",
|
||||
"name": "station"
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL430(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [],
|
||||
"rssi": -61,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.8 Build 210121 Rel.084339"
|
||||
}
|
||||
}
|
||||
}
|
||||
57
tests/fixtures/iot/KL430(US)_2.0_1.0.9.json
vendored
Normal file
57
tests/fixtures/iot/KL430(US)_2.0_1.0.9.json
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 11150,
|
||||
"total_wh": 18
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"LEF": 1,
|
||||
"active_mode": "none",
|
||||
"alias": "kl430 updated",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Kasa Smart Light Strip, Multicolor",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.0",
|
||||
"is_color": 1,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 1,
|
||||
"latitude_i": 0,
|
||||
"length": 16,
|
||||
"light_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 0,
|
||||
"hue": 194,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 50
|
||||
},
|
||||
"lighting_effect_state": {
|
||||
"brightness": 100,
|
||||
"custom": 0,
|
||||
"enable": 1,
|
||||
"id": "izRhLCQNcDzIKdpMPqSTtBMuAIoreAuT",
|
||||
"name": "Rainbow"
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL430(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [],
|
||||
"rssi": -58,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.9 Build 210915 Rel.170534"
|
||||
}
|
||||
}
|
||||
}
|
||||
90
tests/fixtures/iot/KL50(US)_1.0_1.1.13.json
vendored
Normal file
90
tests/fixtures/iot/KL50(US)_1.0_1.1.13.json
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"current_ma": 0,
|
||||
"err_code": 0,
|
||||
"power_mw": 998,
|
||||
"total_wh": 1,
|
||||
"voltage_mv": 0
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_light_state": {
|
||||
"brightness": 12,
|
||||
"color_temp": 2700,
|
||||
"err_code": 0,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Kl50",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Kasa Smart Edison Bulb, Dimmable",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 0,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 0,
|
||||
"latitude_i": 0,
|
||||
"light_state": {
|
||||
"brightness": 12,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "000000000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL50(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 75,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 2,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 1,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 3,
|
||||
"saturation": 0
|
||||
}
|
||||
],
|
||||
"rssi": -68,
|
||||
"status": "new",
|
||||
"sw_ver": "1.1.13 Build 210524 Rel.082619"
|
||||
}
|
||||
}
|
||||
}
|
||||
102
tests/fixtures/iot/KL60(UN)_1.0_1.1.4.json
vendored
Normal file
102
tests/fixtures/iot/KL60(UN)_1.0_1.1.4.json
vendored
Normal file
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"emeter": {
|
||||
"err_code": -2001,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"current_ma": 0,
|
||||
"err_code": 0,
|
||||
"power_mw": 0,
|
||||
"total_wh": 0,
|
||||
"voltage_mv": 0
|
||||
}
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"err_code": -2001,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_light_state": {
|
||||
"dft_on_state": {
|
||||
"brightness": 95,
|
||||
"color_temp": 2000,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"saturation": 0
|
||||
},
|
||||
"err_code": 0,
|
||||
"on_off": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "TP-LINK_Smart Bulb_9179",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Kasa Smart Edison Bulb, Dimmable",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 0,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 0,
|
||||
"latitude_i": 0,
|
||||
"light_state": {
|
||||
"dft_on_state": {
|
||||
"brightness": 95,
|
||||
"color_temp": 2000,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"saturation": 0
|
||||
},
|
||||
"on_off": 0
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "74DA88C89179",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL60(UN)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 2000,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 75,
|
||||
"color_temp": 2000,
|
||||
"hue": 0,
|
||||
"index": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"color_temp": 2000,
|
||||
"hue": 0,
|
||||
"index": 2,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 1,
|
||||
"color_temp": 2000,
|
||||
"hue": 0,
|
||||
"index": 3,
|
||||
"saturation": 0
|
||||
}
|
||||
],
|
||||
"rssi": -60,
|
||||
"status": "new",
|
||||
"sw_ver": "1.1.4 Build 190618 Rel.085624"
|
||||
}
|
||||
}
|
||||
}
|
||||
90
tests/fixtures/iot/KL60(US)_1.0_1.1.13.json
vendored
Normal file
90
tests/fixtures/iot/KL60(US)_1.0_1.1.13.json
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"current_ma": 0,
|
||||
"err_code": 0,
|
||||
"power_mw": 5200,
|
||||
"total_wh": 0,
|
||||
"voltage_mv": 0
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_light_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 2000,
|
||||
"err_code": 0,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Gold fil",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Kasa Smart Edison Bulb, Dimmable",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 0,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 0,
|
||||
"latitude_i": 0,
|
||||
"light_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 2000,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"on_off": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
"longitude_i": 0,
|
||||
"mic_mac": "000000000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "KL60(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 2000,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 75,
|
||||
"color_temp": 2000,
|
||||
"hue": 0,
|
||||
"index": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"color_temp": 2000,
|
||||
"hue": 0,
|
||||
"index": 2,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 1,
|
||||
"color_temp": 2000,
|
||||
"hue": 0,
|
||||
"index": 3,
|
||||
"saturation": 0
|
||||
}
|
||||
],
|
||||
"rssi": -41,
|
||||
"status": "new",
|
||||
"sw_ver": "1.1.13 Build 210524 Rel.082619"
|
||||
}
|
||||
}
|
||||
}
|
||||
31
tests/fixtures/iot/KP100(US)_3.0_1.0.1.json
vendored
Normal file
31
tests/fixtures/iot/KP100(US)_3.0_1.0.1.json
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Kasa",
|
||||
"dev_name": "Smart Wi-Fi Plug Mini",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "3.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP100(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 523,
|
||||
"relay_state": 1,
|
||||
"rssi": -60,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.1 Build 200831 Rel.142128",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
111
tests/fixtures/iot/KP105(UK)_1.0_1.0.5.json
vendored
Normal file
111
tests/fixtures/iot/KP105(UK)_1.0_1.0.5.json
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
{
|
||||
"cnCloud": {
|
||||
"get_info": {
|
||||
"binded": 1,
|
||||
"cld_connection": 0,
|
||||
"err_code": 0,
|
||||
"fwDlPage": "",
|
||||
"fwNotifyType": -1,
|
||||
"illegalType": 0,
|
||||
"server": "n-devs.tplinkcloud.com",
|
||||
"stopConnect": 0,
|
||||
"tcspInfo": "",
|
||||
"tcspStatus": 1,
|
||||
"username": "#MASKED_NAME#"
|
||||
},
|
||||
"get_intl_fw_list": {
|
||||
"err_code": -7,
|
||||
"err_msg": "unknown error"
|
||||
}
|
||||
},
|
||||
"schedule": {
|
||||
"get_next_action": {
|
||||
"action": 1,
|
||||
"err_code": 0,
|
||||
"id": "0794F4729DB271627D1CF35A9A854030",
|
||||
"schd_time": 68927,
|
||||
"type": 2
|
||||
},
|
||||
"get_rules": {
|
||||
"enable": 1,
|
||||
"err_code": 0,
|
||||
"rule_list": [
|
||||
{
|
||||
"eact": -1,
|
||||
"enable": 1,
|
||||
"id": "8AA75A50A8440B17941D192BD9E01FFA",
|
||||
"name": "name",
|
||||
"repeat": 1,
|
||||
"sact": 1,
|
||||
"smin": 1027,
|
||||
"soffset": 0,
|
||||
"stime_opt": 2,
|
||||
"wday": [
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
{
|
||||
"eact": -1,
|
||||
"enable": 1,
|
||||
"id": "9F62073CF69D8645173412283AD63A2C",
|
||||
"name": "name",
|
||||
"repeat": 1,
|
||||
"sact": 0,
|
||||
"smin": 504,
|
||||
"soffset": 0,
|
||||
"stime_opt": 1,
|
||||
"wday": [
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
}
|
||||
],
|
||||
"version": 2
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "count_down",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"dev_name": "Smart Wi-Fi Plug",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "D8:47:32:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP105(UK)",
|
||||
"next_action": {
|
||||
"action": 1,
|
||||
"id": "0794F4729DB271627D1CF35A9A854030",
|
||||
"schd_sec": 68927,
|
||||
"type": 2
|
||||
},
|
||||
"ntc_state": 0,
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 7138,
|
||||
"relay_state": 1,
|
||||
"rssi": -77,
|
||||
"status": "configured",
|
||||
"sw_ver": "1.0.5 Build 191209 Rel.094735",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
33
tests/fixtures/iot/KP105(UK)_1.0_1.0.7.json
vendored
Normal file
33
tests/fixtures/iot/KP105(UK)_1.0_1.0.7.json
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"dev_name": "Smart Wi-Fi Plug",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "D8:47:32:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP105(UK)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"ntc_state": 0,
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -67,
|
||||
"status": "configured",
|
||||
"sw_ver": "1.0.7 Build 210506 Rel.153510",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
42
tests/fixtures/iot/KP115(EU)_1.0_1.0.16.json
vendored
Normal file
42
tests/fixtures/iot/KP115(EU)_1.0_1.0.16.json
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"current_ma": 296,
|
||||
"err_code": 0,
|
||||
"power_mw": 63499,
|
||||
"total_wh": 12068,
|
||||
"voltage_mv": 230577
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"dev_name": "Smart Wi-Fi Plug Mini",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM:ENE",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 1,
|
||||
"longitude_i": 0,
|
||||
"mac": "C0:06:C3:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP115(EU)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"ntc_state": 0,
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 2078998,
|
||||
"relay_state": 1,
|
||||
"rssi": -49,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.16 Build 210205 Rel.163735",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
42
tests/fixtures/iot/KP115(US)_1.0_1.0.17.json
vendored
Normal file
42
tests/fixtures/iot/KP115(US)_1.0_1.0.17.json
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"current_ma": 0,
|
||||
"err_code": 0,
|
||||
"power_mw": 0,
|
||||
"total_wh": 0,
|
||||
"voltage_mv": 121148
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Test plug",
|
||||
"dev_name": "Smart Wi-Fi Plug Mini",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM:ENE",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP115(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"ntc_state": 0,
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 301,
|
||||
"relay_state": 1,
|
||||
"rssi": -59,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.17 Build 210506 Rel.075231",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
42
tests/fixtures/iot/KP115(US)_1.0_1.0.21.json
vendored
Normal file
42
tests/fixtures/iot/KP115(US)_1.0_1.0.21.json
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"current_ma": 0,
|
||||
"err_code": 0,
|
||||
"power_mw": 0,
|
||||
"total_wh": 0,
|
||||
"voltage_mv": 120652
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"dev_name": "Smart Wi-Fi Plug Mini",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM:ENE",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "54:AF:97:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP115(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"ntc_state": 0,
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -60,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.21 Build 231129 Rel.171238",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
42
tests/fixtures/iot/KP125(US)_1.0_1.0.6.json
vendored
Normal file
42
tests/fixtures/iot/KP125(US)_1.0_1.0.6.json
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"emeter": {
|
||||
"get_realtime": {
|
||||
"current_ma": 978,
|
||||
"err_code": 0,
|
||||
"power_mw": 100277,
|
||||
"total_wh": 12170,
|
||||
"voltage_mv": 119425
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Test plug",
|
||||
"dev_name": "Smart Wi-Fi Plug Mini",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM:ENE",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP125(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"ntc_state": 0,
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 301,
|
||||
"relay_state": 1,
|
||||
"rssi": -41,
|
||||
"status": "configured",
|
||||
"sw_ver": "1.0.6 Build 210928 Rel.185924",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
46
tests/fixtures/iot/KP200(US)_3.0_1.0.3.json
vendored
Normal file
46
tests/fixtures/iot/KP200(US)_3.0_1.0.3.json
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "TP-LINK_Smart Plug_C2D6",
|
||||
"child_num": 2,
|
||||
"children": [
|
||||
{
|
||||
"alias": "One ",
|
||||
"id": "80066788DFFFD572D9F2E4A5A6847669213E039F00",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 43,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "Two ",
|
||||
"id": "80066788DFFFD572D9F2E4A5A6847669213E039F01",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 44,
|
||||
"state": 1
|
||||
}
|
||||
],
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "3.0",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP200(US)",
|
||||
"ntc_state": 0,
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"rssi": -50,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.3 Build 221021 Rel.183354",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
54
tests/fixtures/iot/KP303(UK)_1.0_1.0.3.json
vendored
Normal file
54
tests/fixtures/iot/KP303(UK)_1.0_1.0.3.json
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "Bedroom Power Strip",
|
||||
"child_num": 3,
|
||||
"children": [
|
||||
{
|
||||
"alias": "Plug 1",
|
||||
"id": "8006E9854025B67C3F9D99BA1E66223D1C9A8A7700",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 79701,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "Plug 2",
|
||||
"id": "8006E9854025B67C3F9D99BA1E66223D1C9A8A7701",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 79700,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Plug 3",
|
||||
"id": "8006E9854025B67C3F9D99BA1E66223D1C9A8A7702",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 1484408,
|
||||
"state": 0
|
||||
}
|
||||
],
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"latitude_i": 0,
|
||||
"led_off": 1,
|
||||
"longitude_i": 0,
|
||||
"mac": "1C:3B:F3:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP303(UK)",
|
||||
"ntc_state": 0,
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"rssi": -68,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.3 Build 191105 Rel.113122",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
54
tests/fixtures/iot/KP303(US)_2.0_1.0.3.json
vendored
Normal file
54
tests/fixtures/iot/KP303(US)_2.0_1.0.3.json
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "TP-LINK_Power Strip_BDF6",
|
||||
"child_num": 3,
|
||||
"children": [
|
||||
{
|
||||
"alias": "Plug 1",
|
||||
"id": "800681855E0E9AEF096F4891B3DC88C71E59F42E00",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Plug 2",
|
||||
"id": "800681855E0E9AEF096F4891B3DC88C71E59F42E01",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Plug 3",
|
||||
"id": "800681855E0E9AEF096F4891B3DC88C71E59F42E02",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
}
|
||||
],
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.0",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP303(US)",
|
||||
"ntc_state": 0,
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"rssi": -56,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.3 Build 201015 Rel.173920",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
55
tests/fixtures/iot/KP303(US)_2.0_1.0.9.json
vendored
Normal file
55
tests/fixtures/iot/KP303(US)_2.0_1.0.9.json
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "#MASKED_NAME#",
|
||||
"child_num": 3,
|
||||
"children": [
|
||||
{
|
||||
"alias": "#MASKED_NAME#",
|
||||
"id": "800639AA097730E58235162FCDA301CE1F038F9101",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 1461030,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "#MASKED_NAME#",
|
||||
"id": "800639AA097730E58235162FCDA301CE1F038F9102",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "#MASKED_NAME#",
|
||||
"id": "800639AA097730E58235162FCDA301CE1F038F9100",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
}
|
||||
],
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.0",
|
||||
"latitude_i": 0,
|
||||
"led_off": 1,
|
||||
"longitude_i": 0,
|
||||
"mac": "B0:A7:B9:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP303(US)",
|
||||
"ntc_state": 0,
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"rssi": -58,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.9 Build 240131 Rel.141407",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
63
tests/fixtures/iot/KP400(US)_1.0_1.0.10.json
vendored
Normal file
63
tests/fixtures/iot/KP400(US)_1.0_1.0.10.json
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.common.emeter": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"err_code": -1,
|
||||
"err_msg": "module not support"
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "TP-LINK_Smart Plug_2ECE",
|
||||
"child_num": 2,
|
||||
"children": [
|
||||
{
|
||||
"alias": "Rope",
|
||||
"id": "00",
|
||||
"next_action": {
|
||||
"action": 1,
|
||||
"schd_sec": 69240,
|
||||
"type": 1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "Plug 2",
|
||||
"id": "01",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
}
|
||||
],
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP400(US)",
|
||||
"ntc_state": 0,
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"rssi": -78,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.10 Build 190716 Rel.095026",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
45
tests/fixtures/iot/KP400(US)_2.0_1.0.6.json
vendored
Normal file
45
tests/fixtures/iot/KP400(US)_2.0_1.0.6.json
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "TP-LINK_Smart Plug_DC2A",
|
||||
"child_num": 2,
|
||||
"children": [
|
||||
{
|
||||
"alias": "Anc ",
|
||||
"id": "8006B8E953CC4149E2B13AA27E0D18EF1DCFBF3400",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 313,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "Plug 2",
|
||||
"id": "8006B8E953CC4149E2B13AA27E0D18EF1DCFBF3401",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 313,
|
||||
"state": 1
|
||||
}
|
||||
],
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "2.0",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP400(US)",
|
||||
"ntc_state": 0,
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"rssi": -46,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.6 Build 200821 Rel.090909",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
45
tests/fixtures/iot/KP400(US)_3.0_1.0.3.json
vendored
Normal file
45
tests/fixtures/iot/KP400(US)_3.0_1.0.3.json
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "#MASKED_NAME#",
|
||||
"child_num": 2,
|
||||
"children": [
|
||||
{
|
||||
"alias": "#MASKED_NAME#",
|
||||
"id": "8006521377E30159055A751347B5A5E321A8D0A100",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 4024,
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "#MASKED_NAME#",
|
||||
"id": "8006521377E30159055A751347B5A5E321A8D0A101",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 4024,
|
||||
"state": 1
|
||||
}
|
||||
],
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "3.0",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "3C:52:A1:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP400(US)",
|
||||
"ntc_state": 0,
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"rssi": -75,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.3 Build 220803 Rel.172301",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
46
tests/fixtures/iot/KP400(US)_3.0_1.0.4.json
vendored
Normal file
46
tests/fixtures/iot/KP400(US)_3.0_1.0.4.json
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "#MASKED_NAME#",
|
||||
"child_num": 2,
|
||||
"children": [
|
||||
{
|
||||
"alias": "#MASKED_NAME#",
|
||||
"id": "8006521377E30159055A751347B5A5E321A8D0A100",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
},
|
||||
{
|
||||
"alias": "#MASKED_NAME#",
|
||||
"id": "8006521377E30159055A751347B5A5E321A8D0A101",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"on_time": 0,
|
||||
"state": 0
|
||||
}
|
||||
],
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "3.0",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "3C:52:A1:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP400(US)",
|
||||
"ntc_state": 0,
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"rssi": -69,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.4 Build 240305 Rel.111944",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
32
tests/fixtures/iot/KP401(US)_1.0_1.0.0.json
vendored
Normal file
32
tests/fixtures/iot/KP401(US)_1.0_1.0.0.json
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Kp401",
|
||||
"dev_name": "Smart Outdoor Plug",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP401(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"ntc_state": 0,
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 127,
|
||||
"relay_state": 1,
|
||||
"rssi": -56,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.0 Build 201221 Rel.090515",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
65
tests/fixtures/iot/KP405(US)_1.0_1.0.5.json
vendored
Normal file
65
tests/fixtures/iot/KP405(US)_1.0_1.0.5.json
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"smartlife.iot.dimmer": {
|
||||
"get_dimmer_parameters": {
|
||||
"bulb_type": 1,
|
||||
"calibration_type": 0,
|
||||
"err_code": 0,
|
||||
"fadeOffTime": 1000,
|
||||
"fadeOnTime": 1000,
|
||||
"gentleOffTime": 10000,
|
||||
"gentleOnTime": 3000,
|
||||
"minThreshold": 1,
|
||||
"rampRate": 30
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Porch Lights",
|
||||
"brightness": 50,
|
||||
"dev_name": "Kasa Smart Wi-Fi Outdoor Plug-In Dimmer",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 1,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP405(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"ntc_state": 0,
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"brightness": 75,
|
||||
"index": 1
|
||||
},
|
||||
{
|
||||
"brightness": 50,
|
||||
"index": 2
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"index": 3
|
||||
}
|
||||
],
|
||||
"relay_state": 0,
|
||||
"rssi": -64,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.5 Build 221108 Rel.181739",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
65
tests/fixtures/iot/KP405(US)_1.0_1.0.6.json
vendored
Normal file
65
tests/fixtures/iot/KP405(US)_1.0_1.0.6.json
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"smartlife.iot.dimmer": {
|
||||
"get_dimmer_parameters": {
|
||||
"bulb_type": 1,
|
||||
"calibration_type": 0,
|
||||
"err_code": 0,
|
||||
"fadeOffTime": 1000,
|
||||
"fadeOnTime": 1000,
|
||||
"gentleOffTime": 10000,
|
||||
"gentleOnTime": 3000,
|
||||
"minThreshold": 1,
|
||||
"rampRate": 30
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"brightness": 100,
|
||||
"dev_name": "Kasa Smart Wi-Fi Outdoor Plug-In Dimmer",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "50:91:E3:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KP405(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"ntc_state": 0,
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"brightness": 75,
|
||||
"index": 1
|
||||
},
|
||||
{
|
||||
"brightness": 50,
|
||||
"index": 2
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"index": 3
|
||||
}
|
||||
],
|
||||
"relay_state": 0,
|
||||
"rssi": -66,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.6 Build 240229 Rel.174151",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
155
tests/fixtures/iot/KS200M(US)_1.0_1.0.10.json
vendored
Normal file
155
tests/fixtures/iot/KS200M(US)_1.0_1.0.10.json
vendored
Normal file
@@ -0,0 +1,155 @@
|
||||
{
|
||||
"cnCloud": {
|
||||
"get_info": {
|
||||
"binded": 1,
|
||||
"cld_connection": 1,
|
||||
"err_code": 0,
|
||||
"fwDlPage": "",
|
||||
"fwNotifyType": -1,
|
||||
"illegalType": 0,
|
||||
"server": "n-devs.tplinkcloud.com",
|
||||
"stopConnect": 0,
|
||||
"tcspInfo": "",
|
||||
"tcspStatus": 1,
|
||||
"username": "#MASKED_NAME#"
|
||||
},
|
||||
"get_intl_fw_list": {
|
||||
"err_code": 0,
|
||||
"fw_list": [
|
||||
{
|
||||
"fwLocation": 0,
|
||||
"fwReleaseDate": "2024-06-19",
|
||||
"fwReleaseLog": "Modifications and Bug Fixes:\n1. Added \"Hold on\" feature, now you can quickly double-click the switch to keep it on without being affected by the Smart Control rules.\n2. Fixed a bug where Motion & Dark rules could still be triggered under bright light conditions.\n3. Fixed some minor bugs.",
|
||||
"fwReleaseLogUrl": "undefined yet",
|
||||
"fwTitle": "Hi, a new firmware with bug fixes and performance improvement is available for your KS200M.",
|
||||
"fwType": 2,
|
||||
"fwUrl": "http://download.tplinkcloud.com/firmware/KS200M_FCC_1.0.12_Build_240507_Rel.143458_2024-05-07_14.37.42_1718767325443.bin",
|
||||
"fwVer": "1.0.12 Build 240507 Rel.143458"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"schedule": {
|
||||
"get_next_action": {
|
||||
"err_code": 0,
|
||||
"type": -1
|
||||
},
|
||||
"get_rules": {
|
||||
"enable": 1,
|
||||
"err_code": 0,
|
||||
"rule_list": [],
|
||||
"version": 2
|
||||
}
|
||||
},
|
||||
"smartlife.iot.LAS": {
|
||||
"get_adc_value": {
|
||||
"err_code": 0,
|
||||
"type": 2,
|
||||
"value": 0
|
||||
},
|
||||
"get_config": {
|
||||
"devs": [
|
||||
{
|
||||
"dark_index": 0,
|
||||
"enable": 1,
|
||||
"hw_id": 0,
|
||||
"level_array": [
|
||||
{
|
||||
"adc": 390,
|
||||
"name": "cloudy",
|
||||
"value": 15
|
||||
},
|
||||
{
|
||||
"adc": 300,
|
||||
"name": "overcast",
|
||||
"value": 12
|
||||
},
|
||||
{
|
||||
"adc": 222,
|
||||
"name": "dawn",
|
||||
"value": 9
|
||||
},
|
||||
{
|
||||
"adc": 222,
|
||||
"name": "twilight",
|
||||
"value": 9
|
||||
},
|
||||
{
|
||||
"adc": 111,
|
||||
"name": "total darkness",
|
||||
"value": 4
|
||||
},
|
||||
{
|
||||
"adc": 2400,
|
||||
"name": "custom",
|
||||
"value": 97
|
||||
}
|
||||
],
|
||||
"max_adc": 2450,
|
||||
"min_adc": 0
|
||||
}
|
||||
],
|
||||
"err_code": 0,
|
||||
"ver": "1.0"
|
||||
},
|
||||
"get_current_brt": {
|
||||
"err_code": 0,
|
||||
"value": 0
|
||||
},
|
||||
"get_dark_status": {
|
||||
"bDark": 1,
|
||||
"err_code": 0
|
||||
}
|
||||
},
|
||||
"smartlife.iot.PIR": {
|
||||
"get_adc_value": {
|
||||
"err_code": 0,
|
||||
"value": 2025
|
||||
},
|
||||
"get_config": {
|
||||
"array": [
|
||||
80,
|
||||
50,
|
||||
20,
|
||||
0
|
||||
],
|
||||
"cold_time": 15000,
|
||||
"enable": 1,
|
||||
"err_code": 0,
|
||||
"max_adc": 4095,
|
||||
"min_adc": 0,
|
||||
"trigger_index": 2,
|
||||
"version": "1.0"
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"dev_name": "Smart Light Switch with PIR",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "54:AF:97:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KS200M(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -38,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.10 Build 221019 Rel.194527",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
96
tests/fixtures/iot/KS200M(US)_1.0_1.0.11.json
vendored
Normal file
96
tests/fixtures/iot/KS200M(US)_1.0_1.0.11.json
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"smartlife.iot.LAS": {
|
||||
"get_config": {
|
||||
"devs": [
|
||||
{
|
||||
"dark_index": 0,
|
||||
"enable": 0,
|
||||
"hw_id": 0,
|
||||
"level_array": [
|
||||
{
|
||||
"adc": 390,
|
||||
"name": "cloudy",
|
||||
"value": 15
|
||||
},
|
||||
{
|
||||
"adc": 300,
|
||||
"name": "overcast",
|
||||
"value": 12
|
||||
},
|
||||
{
|
||||
"adc": 222,
|
||||
"name": "dawn",
|
||||
"value": 9
|
||||
},
|
||||
{
|
||||
"adc": 222,
|
||||
"name": "twilight",
|
||||
"value": 9
|
||||
},
|
||||
{
|
||||
"adc": 111,
|
||||
"name": "total darkness",
|
||||
"value": 4
|
||||
},
|
||||
{
|
||||
"adc": 2400,
|
||||
"name": "custom",
|
||||
"value": 97
|
||||
}
|
||||
],
|
||||
"max_adc": 2450,
|
||||
"min_adc": 0
|
||||
}
|
||||
],
|
||||
"err_code": 0,
|
||||
"ver": "1.0"
|
||||
}
|
||||
},
|
||||
"smartlife.iot.PIR": {
|
||||
"get_config": {
|
||||
"array": [
|
||||
80,
|
||||
50,
|
||||
20,
|
||||
0
|
||||
],
|
||||
"cold_time": 60000,
|
||||
"enable": 0,
|
||||
"err_code": 0,
|
||||
"max_adc": 4095,
|
||||
"min_adc": 0,
|
||||
"trigger_index": 1,
|
||||
"version": "1.0"
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"dev_name": "Smart Light Switch with PIR",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "3C:52:A1:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KS200M(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -40,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.11 Build 230113 Rel.151038",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
96
tests/fixtures/iot/KS200M(US)_1.0_1.0.12.json
vendored
Normal file
96
tests/fixtures/iot/KS200M(US)_1.0_1.0.12.json
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"smartlife.iot.LAS": {
|
||||
"get_config": {
|
||||
"devs": [
|
||||
{
|
||||
"dark_index": 0,
|
||||
"enable": 1,
|
||||
"hw_id": 0,
|
||||
"level_array": [
|
||||
{
|
||||
"adc": 390,
|
||||
"name": "cloudy",
|
||||
"value": 15
|
||||
},
|
||||
{
|
||||
"adc": 300,
|
||||
"name": "overcast",
|
||||
"value": 11
|
||||
},
|
||||
{
|
||||
"adc": 222,
|
||||
"name": "dawn",
|
||||
"value": 8
|
||||
},
|
||||
{
|
||||
"adc": 222,
|
||||
"name": "twilight",
|
||||
"value": 8
|
||||
},
|
||||
{
|
||||
"adc": 111,
|
||||
"name": "total darkness",
|
||||
"value": 4
|
||||
},
|
||||
{
|
||||
"adc": 2400,
|
||||
"name": "custom",
|
||||
"value": 94
|
||||
}
|
||||
],
|
||||
"max_adc": 2550,
|
||||
"min_adc": 0
|
||||
}
|
||||
],
|
||||
"err_code": 0,
|
||||
"ver": "1.0"
|
||||
}
|
||||
},
|
||||
"smartlife.iot.PIR": {
|
||||
"get_config": {
|
||||
"array": [
|
||||
80,
|
||||
50,
|
||||
20,
|
||||
0
|
||||
],
|
||||
"cold_time": 600000,
|
||||
"enable": 1,
|
||||
"err_code": 0,
|
||||
"max_adc": 4095,
|
||||
"min_adc": 0,
|
||||
"trigger_index": 1,
|
||||
"version": "1.0"
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"dev_name": "Smart Light Switch with PIR",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "98:25:4A:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KS200M(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"obd_src": "tplink",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -55,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.12 Build 240507 Rel.143458",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
95
tests/fixtures/iot/KS200M(US)_1.0_1.0.8.json
vendored
Normal file
95
tests/fixtures/iot/KS200M(US)_1.0_1.0.8.json
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"smartlife.iot.LAS": {
|
||||
"get_config": {
|
||||
"devs": [
|
||||
{
|
||||
"dark_index": 4,
|
||||
"enable": 1,
|
||||
"hw_id": 0,
|
||||
"level_array": [
|
||||
{
|
||||
"adc": 390,
|
||||
"name": "cloudy",
|
||||
"value": 15
|
||||
},
|
||||
{
|
||||
"adc": 300,
|
||||
"name": "overcast",
|
||||
"value": 12
|
||||
},
|
||||
{
|
||||
"adc": 222,
|
||||
"name": "dawn",
|
||||
"value": 9
|
||||
},
|
||||
{
|
||||
"adc": 220,
|
||||
"name": "twilight",
|
||||
"value": 8
|
||||
},
|
||||
{
|
||||
"adc": 98,
|
||||
"name": "total darkness",
|
||||
"value": 4
|
||||
},
|
||||
{
|
||||
"adc": 2400,
|
||||
"name": "custom",
|
||||
"value": 97
|
||||
}
|
||||
],
|
||||
"max_adc": 2450,
|
||||
"min_adc": 0
|
||||
}
|
||||
],
|
||||
"err_code": 0,
|
||||
"ver": "1.0"
|
||||
}
|
||||
},
|
||||
"smartlife.iot.PIR": {
|
||||
"get_config": {
|
||||
"array": [
|
||||
80,
|
||||
50,
|
||||
20,
|
||||
0
|
||||
],
|
||||
"cold_time": 600000,
|
||||
"enable": 1,
|
||||
"err_code": 0,
|
||||
"max_adc": 4095,
|
||||
"min_adc": 0,
|
||||
"trigger_index": 1,
|
||||
"version": "1.0"
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Test KS200M",
|
||||
"dev_name": "Smart Light Switch with PIR",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KS200M(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"relay_state": 0,
|
||||
"rssi": -66,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.8 Build 211201 Rel.125056",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
111
tests/fixtures/iot/KS220(US)_1.0_1.0.13.json
vendored
Normal file
111
tests/fixtures/iot/KS220(US)_1.0_1.0.13.json
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
{
|
||||
"cnCloud": {
|
||||
"get_info": {
|
||||
"binded": 1,
|
||||
"cld_connection": 1,
|
||||
"err_code": 0,
|
||||
"fwDlPage": "",
|
||||
"fwNotifyType": -1,
|
||||
"illegalType": 0,
|
||||
"server": "n-devs.tplinkcloud.com",
|
||||
"stopConnect": 0,
|
||||
"tcspInfo": "",
|
||||
"tcspStatus": 1,
|
||||
"username": "#MASKED_NAME#"
|
||||
},
|
||||
"get_intl_fw_list": {
|
||||
"err_code": 0,
|
||||
"fw_list": []
|
||||
}
|
||||
},
|
||||
"schedule": {
|
||||
"get_next_action": {
|
||||
"err_code": 0,
|
||||
"type": -1
|
||||
},
|
||||
"get_rules": {
|
||||
"enable": 0,
|
||||
"err_code": 0,
|
||||
"rule_list": [],
|
||||
"version": 2
|
||||
}
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"get_default_behavior": {
|
||||
"double_click": {
|
||||
"mode": "gentle_on_off"
|
||||
},
|
||||
"err_code": 0,
|
||||
"hard_on": {
|
||||
"mode": "last_status"
|
||||
},
|
||||
"long_press": {
|
||||
"mode": "instant_on_off"
|
||||
},
|
||||
"soft_on": {
|
||||
"mode": "last_status"
|
||||
}
|
||||
},
|
||||
"get_dimmer_parameters": {
|
||||
"bulb_type": 1,
|
||||
"calibration_type": 1,
|
||||
"err_code": 0,
|
||||
"fadeOffTime": 1000,
|
||||
"fadeOnTime": 1000,
|
||||
"gentleOffTime": 10000,
|
||||
"gentleOnTime": 3000,
|
||||
"minThreshold": 9,
|
||||
"rampRate": 30
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"brightness": 100,
|
||||
"dev_name": "Smart Wi-Fi Dimmer Switch",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "30:DE:4B:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KS220(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"ntc_state": 0,
|
||||
"obd_src": "apple",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"brightness": 75,
|
||||
"index": 1
|
||||
},
|
||||
{
|
||||
"brightness": 50,
|
||||
"index": 2
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"index": 3
|
||||
}
|
||||
],
|
||||
"relay_state": 0,
|
||||
"rssi": -50,
|
||||
"status": "configured",
|
||||
"sw_ver": "1.0.13 Build 240424 Rel.102214",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
126
tests/fixtures/iot/KS220M(US)_1.0_1.0.4.json
vendored
Normal file
126
tests/fixtures/iot/KS220M(US)_1.0_1.0.4.json
vendored
Normal file
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"smartlife.iot.LAS": {
|
||||
"get_config": {
|
||||
"devs": [
|
||||
{
|
||||
"dark_index": 0,
|
||||
"enable": 1,
|
||||
"hw_id": 0,
|
||||
"level_array": [
|
||||
{
|
||||
"adc": 490,
|
||||
"name": "cloudy",
|
||||
"value": 20
|
||||
},
|
||||
{
|
||||
"adc": 294,
|
||||
"name": "overcast",
|
||||
"value": 12
|
||||
},
|
||||
{
|
||||
"adc": 222,
|
||||
"name": "dawn",
|
||||
"value": 9
|
||||
},
|
||||
{
|
||||
"adc": 222,
|
||||
"name": "twilight",
|
||||
"value": 9
|
||||
},
|
||||
{
|
||||
"adc": 111,
|
||||
"name": "total darkness",
|
||||
"value": 4
|
||||
},
|
||||
{
|
||||
"adc": 2400,
|
||||
"name": "custom",
|
||||
"value": 97
|
||||
}
|
||||
],
|
||||
"max_adc": 2450,
|
||||
"min_adc": 0
|
||||
}
|
||||
],
|
||||
"err_code": 0,
|
||||
"ver": "1.0"
|
||||
}
|
||||
},
|
||||
"smartlife.iot.PIR": {
|
||||
"get_config": {
|
||||
"array": [
|
||||
80,
|
||||
50,
|
||||
20,
|
||||
61
|
||||
],
|
||||
"cold_time": 60000,
|
||||
"enable": 1,
|
||||
"err_code": 0,
|
||||
"max_adc": 4095,
|
||||
"min_adc": 0,
|
||||
"trigger_index": 2,
|
||||
"version": "1.0"
|
||||
}
|
||||
},
|
||||
"smartlife.iot.dimmer": {
|
||||
"get_dimmer_parameters": {
|
||||
"bulb_type": 1,
|
||||
"err_code": 0,
|
||||
"fadeOffTime": 0,
|
||||
"fadeOnTime": 0,
|
||||
"gentleOffTime": 10000,
|
||||
"gentleOnTime": 3000,
|
||||
"minThreshold": 1,
|
||||
"rampRate": 30
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Garage Entryway Lights",
|
||||
"brightness": 100,
|
||||
"dev_name": "Wi-Fi Smart Dimmer with sensor",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KS220M(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"brightness": 75,
|
||||
"index": 1
|
||||
},
|
||||
{
|
||||
"brightness": 50,
|
||||
"index": 2
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"index": 3
|
||||
}
|
||||
],
|
||||
"relay_state": 0,
|
||||
"rssi": -42,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.4 Build 210616 Rel.193517",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
64
tests/fixtures/iot/KS230(US)_1.0_1.0.14.json
vendored
Normal file
64
tests/fixtures/iot/KS230(US)_1.0_1.0.14.json
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"smartlife.iot.dimmer": {
|
||||
"get_dimmer_parameters": {
|
||||
"bulb_type": 1,
|
||||
"err_code": 0,
|
||||
"fadeOffTime": 1000,
|
||||
"fadeOnTime": 1000,
|
||||
"gentleOffTime": 10000,
|
||||
"gentleOnTime": 3000,
|
||||
"minThreshold": 11,
|
||||
"rampRate": 30
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "Test KS230",
|
||||
"brightness": 60,
|
||||
"dc_state": 0,
|
||||
"dev_name": "Wi-Fi Smart 3-Way Dimmer",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"err_code": 0,
|
||||
"feature": "TIM",
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"icon_hash": "",
|
||||
"latitude_i": 0,
|
||||
"led_off": 0,
|
||||
"longitude_i": 0,
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"mic_type": "IOT.SMARTPLUGSWITCH",
|
||||
"model": "KS230(US)",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
"ntc_state": 0,
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"on_time": 0,
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"brightness": 75,
|
||||
"index": 1
|
||||
},
|
||||
{
|
||||
"brightness": 50,
|
||||
"index": 2
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"index": 3
|
||||
}
|
||||
],
|
||||
"relay_state": 0,
|
||||
"rssi": -52,
|
||||
"status": "new",
|
||||
"sw_ver": "1.0.14 Build 220127 Rel.124555",
|
||||
"updating": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
89
tests/fixtures/iot/LB110(US)_1.0_1.8.11.json
vendored
Normal file
89
tests/fixtures/iot/LB110(US)_1.0_1.8.11.json
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"smartlife.iot.common.emeter": {
|
||||
"get_realtime": {
|
||||
"err_code": 0,
|
||||
"power_mw": 0
|
||||
}
|
||||
},
|
||||
"smartlife.iot.smartbulb.lightingservice": {
|
||||
"get_light_state": {
|
||||
"dft_on_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"saturation": 0
|
||||
},
|
||||
"err_code": 0,
|
||||
"on_off": 0
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"active_mode": "none",
|
||||
"alias": "TP-LINK_Smart Bulb_43EC",
|
||||
"ctrl_protocols": {
|
||||
"name": "Linkie",
|
||||
"version": "1.0"
|
||||
},
|
||||
"description": "Smart Wi-Fi LED Bulb with Dimmable Light",
|
||||
"dev_state": "normal",
|
||||
"deviceId": "0000000000000000000000000000000000000000",
|
||||
"disco_ver": "1.0",
|
||||
"err_code": 0,
|
||||
"heapsize": 290048,
|
||||
"hwId": "00000000000000000000000000000000",
|
||||
"hw_ver": "1.0",
|
||||
"is_color": 0,
|
||||
"is_dimmable": 1,
|
||||
"is_factory": false,
|
||||
"is_variable_color_temp": 0,
|
||||
"light_state": {
|
||||
"dft_on_state": {
|
||||
"brightness": 100,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"mode": "normal",
|
||||
"saturation": 0
|
||||
},
|
||||
"on_off": 0
|
||||
},
|
||||
"mic_mac": "000000000000",
|
||||
"mic_type": "IOT.SMARTBULB",
|
||||
"model": "LB110(US)",
|
||||
"oemId": "00000000000000000000000000000000",
|
||||
"preferred_state": [
|
||||
{
|
||||
"brightness": 100,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 0,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 75,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 1,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 25,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 2,
|
||||
"saturation": 0
|
||||
},
|
||||
{
|
||||
"brightness": 1,
|
||||
"color_temp": 2700,
|
||||
"hue": 0,
|
||||
"index": 3,
|
||||
"saturation": 0
|
||||
}
|
||||
],
|
||||
"rssi": -59,
|
||||
"sw_ver": "1.8.11 Build 191113 Rel.105336"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user