8000 Add KS220 Fixture · python-kasa/python-kasa@28830fa · GitHub
[go: up one dir, main page]

Skip to content

Commit 28830fa

Browse files
committed
Add KS220 Fixture
1 parent 4026e8a commit 28830fa

File tree

4 files changed

+69
-2
lines changed

4 files changed

+69
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ The following devices have been tested and confirmed as working. If your device
184184

185185
- **Plugs**: EP10, EP25<sup>\*</sup>, HS100<sup>\*\*</sup>, HS103, HS105, HS110, KP100, KP105, KP115, KP125, KP125M<sup>\*</sup>, KP401
186186
- **Power Strips**: EP40, HS107, HS300, KP200, KP303, KP400
187-
- **Wall Switches**: ES20M, HS200, HS210, HS220<sup>\*\*</sup>, KP405, KS200M, KS205<sup>\*</sup>, KS220M, KS225<sup>\*</sup>, KS230, KS240<sup>\*</sup>
187+
- **Wall Switches**: ES20M, HS200, HS210, HS220<sup>\*\*</sup>, KP405, KS200M, KS205<sup>\*</sup>, KS220, KS220M, KS225<sup>\*</sup>, KS230, KS240<sup>\*</sup>
188188
- **Bulbs**: KL110, KL120, KL125, KL130, KL135, KL50, KL60, LB110
189189
- **Light Strips**: KL400L5, KL420L5, KL430
190190
- **Hubs**: KH100<sup>\*</sup>

SUPPORTED.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ Some newer Kasa devices require authentication. These are marked with <sup>*</su
9595
- **KS205**
9696
- Hardware: 1.0 (US) / Firmware: 1.0.2<sup>\*</sup>
9797
- Hardware: 1.0 (US) / Firmware: 1.1.0<sup>\*</sup>
98+
- **KS220**
99+
- Hardware: 1.0 (US) / Firmware: 1.0.13
98100
- **KS220M**
99101
- Hardware: 1.0 (US) / Firmware: 1.0.4
100102
- **KS225**

kasa/tests/device_fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
STRIPS_SMART = {"P300", "P304M", "TP25"}
112112
STRIPS = {*STRIPS_IOT, *STRIPS_SMART}
113113

114-
DIMMERS_IOT = {"ES20M", "HS220", "KS220M", "KS230", "KP405"}
114+
DIMMERS_IOT = {"ES20M", "HS220", "KS220", "KS220M", "KS230", "KP405"}
115115
DIMMERS_SMART = {"HS220", "KS225", "S500D", "P135"}
116116
DIMMERS = {
117117
*DIMMERS_IOT,
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"smartlife.iot.dimmer": {
3+
"get_dimmer_parameters": {
4+
"bulb_type": 1,
5+
"calibration_type": 1,
6+
"err_code": 0,
7+
"fadeOffTime": 1000,
8+
"fadeOnTime": 1000,
9+
"gentleOffTime": 10000,
10+
"gentleOnTime": 3000,
11+
"minThreshold": 1,
12+
"rampRate": 30
13+
}
14+
},
15+
"system": {
16+
"get_sysinfo": {
17+
"active_mode": "none",
18+
"alias": "#MASKED_NAME#",
19+
"brightness": 100,
20+
"dev_name": "Smart Wi-Fi Dimmer Switch",
21+
"deviceId": "0000000000000000000000000000000000000000",
22+
"err_code": 0,
23+
"feature": "TIM",
24+
"hwId": "00000000000000000000000000000000",
25+
"hw_ver": "1.0",
26+
"icon_hash": "",
27+
"latitude_i": 0,
28+
"led_off": 0,
29+
"longitude_i": 0,
30+
"mac": "30:DE:4B:00:00:00",
31+
"mic_type": "IOT.SMARTPLUGSWITCH",
32+
"model": "KS220(US)",
33+
"next_action": {
34+
"type": -1
35+
},
36+
"ntc_state": 0,
37+
"obd_src": "apple",
38+
"oemId": "00000000000000000000000000000000",
39+
"on_time": 0,
40+
"preferred_state": [
41+
{
42+
"brightness": 100,
43+
"index": 0
44+
},
45+
{
46+
"brightness": 75,
47+
"index": 1
48+
},
49+
{
50+
"brightness": 50,
51+
"index": 2
52+
},
53+
{
54+
"brightness": 25,
55+
"index": 3
56+
}
57+
],
58+
"relay_state": 0,
59+
"rssi": -47,
60+
"status": "configured",
61+
"sw_ver": "1.0.13 Build 240424 Rel.102214",
62+
"updating": 0
63+
}
64+
}
65+
}

0 commit comments

Comments
 (0)
0