Skip to content

Add some of my device fixtures, KL430 is for #439 #441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions kasa/tests/fixtures/HS100(US)_2.0_1.5.6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"emeter": {
"get_realtime": {
"err_code": -1,
"err_msg": "module not support"
}
},
"system": {
"get_sysinfo": {
"active_mode": "none",
"alias": "Home Development Env HS100",
"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": 315014,
"relay_state": 1,
"rssi": -46,
"sw_ver": "1.5.6 Build 191118 Rel.140307",
"type": "IOT.SMARTPLUGSWITCH",
"updating": 0
}
}
}
37 changes: 37 additions & 0 deletions kasa/tests/fixtures/HS110(US)_1.0_1.2.6.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}
89 changes: 89 additions & 0 deletions kasa/tests/fixtures/HS300(US)_1.0_1.0.21.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}
85 changes: 85 additions & 0 deletions kasa/tests/fixtures/KL120(US)_1.0_1.8.11.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
97 changes: 97 additions & 0 deletions kasa/tests/fixtures/KL430(US)_1.0_1.0.10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"smartlife.iot.common.emeter": {
"get_realtime": {
"current_ma": 0,
"err_code": 0,
"power_mw": 2725,
"total_wh": 1193,
"voltage_mv": 0
}
},
"system": {
"get_sysinfo": {
"active_mode": "schedule",
"alias": "Home Master Bed 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": "1.0",
"is_color": 1,
"is_dimmable": 1,
"is_factory": false,
"is_variable_color_temp": 1,
"latitude_i": 0,
"length": 14,
"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": "000000000000",
"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"
}
}
}