8000 Add Additional Firmware Test Fixures by ryenitcher · Pull Request #1234 · python-kasa/python-kasa · GitHub
[go: up one dir, main page]

Skip to content

Add Additional Firmware Test Fixures #1234

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

Merged
merged 2 commits into from
Nov 9, 2024
Merged
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
8 changes: 8 additions & 0 deletions SUPPORTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Some newer Kasa devices require authentication. These are marked with <sup>*</su
- Hardware: 1.0 (US) / Firmware: 1.0.6
- **KP125M**
- Hardware: 1.0 (US) / Firmware: 1.1.3<sup>\*</sup>
- Hardware: 1.0 (US) / Firmware: 1.2.3<sup>\*</sup>
- **KP401**
- Hardware: 1.0 (US) / Firmware: 1.0.0

Expand All @@ -68,6 +69,7 @@ Some newer Kasa devices require authentication. These are marked with <sup>*</su
- **KP303**
- Hardware: 1.0 (UK) / Firmware: 1.0.3
- Hardware: 2.0 (US) / Firmware: 1.0.3
- Hardware: 2.0 (US) / Firmware: 1.0.9
- **KP400**
- Hardware: 1.0 (US) / Firmware: 1.0.10
- Hardware: 2.0 (US) / Firmware: 1.0.6
Expand All @@ -77,12 +79,16 @@ Some newer Kasa devices require authentication. These are marked with <sup>*</su
### Wall Switches

- **ES20M**
- Hardware: 1.0 (US) / Firmware: 1.0.11
- Hardware: 1.0 (US) / Firmware: 1.0.8
- **HS200**
- Hardware: 2.0 (US) / Firmware: 1.5.7
- Hardware: 3.0 (US) / Firmware: 1.1.5
- Hardware: 5.0 (US) / Firmware: 1.0.11
- Hardware: 5.0 (US) / Firmware: 1.0.2
- **HS210**
- Hardware: 1.0 (US) / Firmware: 1.5.8
- Hardware: 2.0 (US) / Firmware: 1.1.5
- **HS220**
- Hardware: 1.0 (US) / Firmware: 1.5.7
- Hardware: 2.0 (US) / Firmware: 1.0.3
Expand All @@ -91,6 +97,7 @@ Some newer Kasa devices require authentication. These are marked with <sup>*</su
- Hardware: 1.0 (US) / Firmware: 1.0.5
- Hardware: 1.0 (US) / Firmware: 1.0.6
- **KS200M**
- Hardware: 1.0 (US) / Firmware: 1.0.10
- Hardware: 1.0 (US) / Firmware: 1.0.11
- Hardware: 1.0 (US) / Firmware: 1.0.12
- Hardware: 1.0 (US) / Firmware: 1.0.8
Expand All @@ -109,6 +116,7 @@ Some newer Kasa devices require authentication. These are marked with <sup>*</su
- **KS240**
- Hardware: 1.0 (US) / Firmware: 1.0.4<sup>\*</sup>
- Hardware: 1.0 (US) / Firmware: 1.0.5<sup>\*</sup>
- Hardware: 1.0 (US) / Firmware: 1.0.7<sup>\*</sup>

### Bulbs

Expand Down
127 changes: 127 additions & 0 deletions kasa/tests/fixtures/ES20M(US)_1.0_1.0.11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
"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": 120000,
"enable": 0,
"err_code": 0,
"max_adc": 4095,
"min_adc": 0,
"trigger_index": 1,
"version": "1.0"
}
},
"smartlife.iot.dimmer": {
"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": -54,
"status": "new",
"sw_ver": "1.0.11 Build 240514 Rel.110351",
"updating": 0
}
}
}
31 changes: 31 additions & 0 deletions kasa/tests/fixtures/HS200(US)_3.0_1.1.5.json
Original file line number Diff line number Diff line change
@@ -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 changes: 32 additions & 0 deletions kasa/tests/fixtures/HS200(US)_5.0_1.0.11.json
Original file line number Diff line number Diff line change
@@ -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 changes: 31 additions & 0 deletions kasa/tests/fixtures/HS210(US)_2.0_1.1.5.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}
55 changes: 55 additions & 0 deletions kasa/tests/fixtures/KP303(US)_2.0_1.0.9.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}
Loading
Loading
0