8000 Add Additional Fixtures · python-kasa/python-kasa@1df70c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1df70c6

Browse files
committed
Add Additional Fixtures
Added a number of fixtures for new/old firmware versions of already supported devices.
1 parent 4026e8a commit 1df70c6

9 files changed

+1793
-0
lines changed

SUPPORTED.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Some newer Kasa devices require authentication. These are marked with <sup>*</su
4747
- Hardware: 1.0 (US) / Firmware: 1.0.6
4848
- **KP125M**
4949
- Hardware: 1.0 (US) / Firmware: 1.1.3<sup>\*</sup>
50+
- Hardware: 1.0 (US) / Firmware: 1.2.3<sup>\*</sup>
5051
- **KP401**
5152
- Hardware: 1.0 (US) / Firmware: 1.0.0
5253

@@ -66,6 +67,7 @@ Some newer Kasa devices require authentication. These are marked with <sup>*</su
6667
- **KP303**
6768
- Hardware: 1.0 (UK) / Firmware: 1.0.3
6869
- Hardware: 2.0 (US) / Firmware: 1.0.3
70+
- Hardware: 2.0 (US) / Firmware: 1.0.9
6971
- **KP400**
7072
- Hardware: 1.0 (US) / Firmware: 1.0.10
7173
- Hardware: 2.0 (US) / Firmware: 1.0.6
@@ -75,12 +77,16 @@ Some newer Kasa devices require authentication. These are marked with <sup>*</su
7577
### Wall Switches
7678

7779
- **ES20M**
80+
- Hardware: 1.0 (US) / Firmware: 1.0.11
7881
- Hardware: 1.0 (US) / Firmware: 1.0.8
7982
- **HS200**
8083
- Hardware: 2.0 (US) / Firmware: 1.5.7
84+
- Hardware: 3.0 (US) / Firmware: 1.1.5
85+
- Hardware: 5.0 (US) / Firmware: 1.0.11
8186
- Hardware: 5.0 (US) / Firmware: 1.0.2
8287
- **HS210**
8388
- Hardware: 1.0 (US) / Firmware: 1.5.8
89+
- Hardware: 2.0 (US) / Firmware: 1.1.5
8490
- **HS220**
8591
- Hardware: 1.0 (US) / Firmware: 1.5.7
8692
- Hardware: 2.0 (US) / Firmware: 1.0.3
@@ -89,6 +95,7 @@ Some newer Kasa devices require authentication. These are marked with <sup>*</su
8995
- Hardware: 1.0 (US) / Firmware: 1.0.5
9096
- Hardware: 1.0 (US) / Firmware: 1.0.6
9197
- **KS200M**
98+
- Hardware: 1.0 (US) / Firmware: 1.0.10
9299
- Hardware: 1.0 (US) / Firmware: 1.0.11
93100
- Hardware: 1.0 (US) / Firmware: 1.0.12
94101
- Hardware: 1.0 (US) / Firmware: 1.0.8
@@ -105,6 +112,7 @@ Some newer Kasa devices require authentication. These are marked with <sup>*</su
105112
- **KS240**
106113
- Hardware: 1.0 (US) / Firmware: 1.0.4<sup>\*</sup>
107114
- Hardware: 1.0 (US) / Firmware: 1.0.5<sup>\*</sup>
115+
- Hardware: 1.0 (US) / Firmware: 1.0.7<sup>\*</sup>
108116

109117
### Bulbs
110118

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
"smartlife.iot.LAS": {
3+
"get_config": {
4+
"devs": [
5+
{
6+
"dark_index": 0,
7+
"enable": 1,
8+
"hw_id": 0,
9+
"level_array": [
10+
{
11+
"adc": 390,
12+
"name": "cloudy",
13+
"value": 15
14+
},
15+
{
16+
"adc": 300,
17+
"name": "overcast",
18+
"value": 11
19+
},
20+
{
21+
"adc": 222,
22+
"name": "dawn",
23+
"value": 8
24+
},
25+
{
26+
"adc": 222,
27+
"name": "twilight",
28+
"value": 8
29+
},
30+
{
31+
"adc": 111,
32+
"name": "total darkness",
33+
"value": 4
34+
},
35+
{
36+
"adc": 2400,
37+
"name": "custom",
38+
"value": 94
39+
}
40+
],
41+
"max_adc": 2550,
42+
"min_adc": 0
43+
}
44+
],
45+
"err_code": 0,
46+
"ver": "1.0"
47+
}
48+
},
49+
"smartlife.iot.PIR": {
50+
"get_config": {
51+
"array": [
52+
80,
53+
50,
54+
20,
55+
0
56+
],
57+
"cold_time": 120000,
58+
"enable": 0,
59+
"err_code": 0,
60+
"max_adc": 4095,
61+
"min_adc": 0,
62+
"trigger_index": 1,
63+
"version": "1.0"
64+
}
65+
},
66+
"smartlife.iot.dimmer": {
67+
"get_dimmer_parameters": {
68+
"bulb_type": 1,
69+
"err_code": 0,
70+
"fadeOffTime": 0,
71+
"fadeOnTime": 0,
72+
"gentleOffTime": 10000,
73+
"gentleOnTime": 3000,
74+
"minThreshold": 5,
75+
"rampRate": 30
76+
}
77+
},
78+
"system": {
79+
"get_sysinfo": {
80+
"active_mode": "none",
81+
"alias": "#MASKED_NAME#",
82+
"brightness": 100,
83+
"dev_name": "Wi-Fi Smart Dimmer with sensor",
84+
"deviceId": "0000000000000000000000000000000000000000",
85+
"err_code": 0,
86+
&quo 10000 t;feature": "TIM",
87+
"hwId": "00000000000000000000000000000000",
88+
"hw_ver": "1.0",
89+
"icon_hash": "",
90+
"latitude_i": 0,
91+
"led_off": 0,
92+
"longitude_i": 0,
93+
"mac": "28:87:BA:00:00:00",
94+
"mic_type": "IOT.SMARTPLUGSWITCH",
95+
"model": "ES20M(US)",
96+
"next_action": {
97+
"type": -1
98+
},
99+
"obd_src": "tplink",
100+
"oemId": "00000000000000000000000000000000",
101+
"on_time": 0,
102+
"preferred_state": [
103+
{
104+
"brightness": 100,
105+
"index": 0
106+
},
107+
{
108+
"brightness": 75,
109+
"index": 1
110+
},
111+
{
112+
"brightness": 50,
113+
"index": 2
114+
},
115+
{
116+
"brightness": 25,
117+
"index": 3
118+
}
119+
],
120+
"relay_state": 0,
121+
"rssi": -54,
122+
"status": "new",
123+
"sw_ver": "1.0.11 Build 240514 Rel.110351",
124+
"updating": 0
125+
}
126+
}
127+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"system": {
3+
"get_sysinfo": {
4+
"active_mode": "none",
5+
"alias": "#MASKED_NAME#",
6+
"dev_name": "Smart Wi-Fi Light Switch",
7+
"deviceId": "0000000000000000000000000000000000000000",
8+
"err_code": 0,
9+
"feature": "TIM",
10+
"hwId": "00000000000000000000000000000000",
11+
"hw_ver": "3.0",
12+
"icon_hash": "",
13+
"latitude_i": 0,
14+
"led_off": 0,
15+
"longitude_i": 0,
16+
"mac": "D8:07:B6:00:00:00",
17+
"mic_type": "IOT.SMARTPLUGSWITCH",
18+
"model": "HS200(US)",
19+
"next_action": {
20+
"type": -1
21+
},
22+
"oemId": "00000000000000000000000000000000",
23+
"on_time": 0,
24+
"relay_state": 0,
25+
"rssi": -44,
26+
"status": "new",
27+
"sw_ver": "1.1.5 Build 210422 Rel.082129",
28+
"updating": 0
29+
}
30+
}
31+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"system": {
3+
"get_sysinfo": {
4+
"active_mode": "none",
5+
"alias": "#MASKED_NAME#",
6+
"dev_name": "Smart Wi-Fi Light Switch",
7+
"deviceId": "0000000000000000000000000000000000000000",
8+
"err_code": 0,
9+
"feature": "TIM",
10+
"hwId": "00000000000000000000000000000000",
11+
"hw_ver": "5.0",
12+
"icon_hash": "",
13+
"latitude_i": 0,
14+
"led_off": 0,
15+
"longitude_i": 0,
16+
"mac": "28:87:BA:00:00:00",
17+
"mic_type": "IOT.SMARTPLUGSWITCH",
18+
"model": "HS200(US)",
19+
"next_action": {
20+
"type": -1
21+
},
22+
"obd_src": "tplink",
23+
"oemId": "00000000000000000000000000000000",
24+
"on_time": 0,
25+
"relay_state": 0,
26+
"rssi": -41,
27+
"status": "new",
28+
"sw_ver": "1.0.11 Build 230908 Rel.160526",
29+
"updating": 0
30+
}
31+
}
32+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"system": {
3+
"get_sysinfo": {
4+
"active_mode": "none",
5+
"alias": "#MASKED_NAME#",
6+
"dev_name": "Smart Wi-Fi 3-Way Light Switch",
7+
"deviceId": "0000000000000000000000000000000000000000",
8+
"err_code": 0,
9+
"feature": "TIM",
10+
"hwId": "00000000000000000000000000000000",
11+
"hw_ver": "2.0",
12+
"icon_hash": "",
13+
"latitude_i": 0,
14+
"led_off": 0,
15+
"longitude_i": 0,
16+
"mac": "D8:07:B6:00:00:00",
17+
"mic_type": "IOT.SMARTPLUGSWITCH",
18+
"model": "HS210(US)",
19+
"next_action": {
20+
"type": -1
21+
},
22+
"oemId": "00000000000000000000000000000000",
23+
"on_time": 0,
24+
"relay_state": 0,
25+
"rssi": -43,
26+
"status": "new",
27+
"sw_ver": "1.1.5 Build 210422 Rel.113212",
28+
"updating": 0
29+
}
30+
}
31+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"system": {
3+
"get_sysinfo": {
4+
"alias": "#MASKED_NAME#",
5+
"child_num": 3,
6+
"children": [
7+
{
8+
"alias": "#MASKED_NAME#",
9+
"id": "800639AA097730E58235162FCDA301CE1F038F9101",
10+
"next_action": {
11+
"type": -1
12+
},
13+
"on_time": 1461030,
14+
"state": 1
15+
},
16+
{
17+
"alias": "#MASKED_NAME#",
18+
"id": "800639AA097730E58235162FCDA301CE1F038F9102",
19+
"next_action": {
20+
"type": -1
21+
},
22+
"on_time": 0,
23+
"state": 0
24+
},
25+
{
26+
"alias": "#MASKED_NAME#",
27+
"id": "800639AA097730E58235162FCDA301CE1F038F9100",
28+
"next_action": {
29+
"type": -1
30+
},
31+
"on_time": 0,
32+
"state": 0
33+
}
34+
],
35+
"deviceId": "0000000000000000000000000000000000000000",
36+
"err_code": 0,
37+
"feature": "TIM",
38+
"hwId": "00000000000000000000000000000000",
39+
"hw_ver": "2.0",
40+
"latitude_i": 0,
41+
"led_off": 1,
42+
"longitude_i": 0,
43+
"mac": "B0:A7:B9:00:00:00",
44+
"mic_type": "IOT.SMARTPLUGSWITCH",
45+
"model": "KP303(US)",
46+
"ntc_state": 0,
47+
"obd_src": "tplink",
48+
"oemId": "00000000000000000000000000000000",
49+
"rssi": -58,
50+
"status": "new",
51+
"sw_ver": "1.0.9 Build 240131 Rel.141407",
52+
"updating": 0
53+
}
54+
}
55+
}

0 commit comments

Comments
 (0)
0