8000 Add S210 fixture (#1418) · python-kasa/python-kasa@1f45f42 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1f45f42

Browse files
authored
Add S210 fixture (#1418)
1 parent 08639a3 commit 1f45f42

File tree

4 files changed

+182
-2
lines changed

4 files changed

+182
-2
lines changed

README.md

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

199199
- **Plugs**: P100, P110, P110M, P115, P125M, P135, TP15
200200
- **Power Strips**: P210M, P300, P304M, P306, TP25
201-
- **Wall Switches**: S220, S500D, S505, S505D
201+
- **Wall Switches**: S210, S220, S500D, S505, S505D
202202
- **Bulbs**: L510B, L510E, L530E, L630
203203
- **Light Strips**: L900-10, L900-5, L920-5, L930-5
204204
- **Cameras**: C100, C210, C225, C325WB, C520WS, TC65, TC70

SUPPORTED.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ All Tapo devices require authentication.<br>Hub-Connected Devices may work acros
224224

225225
### Wall Switches
226226

227+
- **S210**
228+
- Hardware: 1.0 (EU) / Firmware: 1.9.0
227229
- **S220**
228230
- Hardware: 1.0 (EU) / Firmware: 1.9.0
229231
- **S500D**

tests/device_fixtures.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,17 @@
121121
}
122122

123123
HUBS_SMART = {"H100", "KH100"}
124-
SENSORS_SMART = {"T310", "T315", "T300", "T100", "T110", "S200B", "S200D", "S220"}
124+
SENSORS_SMART = {
125+
"T310",
126+
"T315",
127+
"T300",
128+
"T100",
129+
"T110",
130+
"S200B",
131+
"S200D",
132+
"S210",
133+
"S220",
134+
}
125135
THERMOSTATS_SMART = {"KE100"}
126136

127137
WITH_EMETER_IOT = {"HS110", "HS300", "KP115", "KP125", *BULBS_IOT}
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
{
2+
"component_nego": {
3+
"component_list": [
4+
{
5+
"id": "device",
6+
"ver_code": 2
7+
},
8+
{
9+
"id": "quick_setup",
10+
"ver_code": 3
11+
},
12+
{
13+
"id": "trigger_log",
14+
"ver_code": 1
15+
},
16+
{
17+
"id": "time",
18+
"ver_code": 1
19+
},
20+
{
21+
"id": "device_local_time",
22+
"ver_code": 1
23+
},
24+
{
25+
"id": "schedule",
26+
"ver_code": 2
27+
},
28+
{
29+
"id": "countdown",
30+
"ver_code": 2
31+
},
32+
{
33+
"id": "antitheft",
34+
"ver_code": 1
35+
},
36+
{
37+
"id": "account",
38+
"ver_code": 1
39+
},
40+
{
41+
"id": "synchronize",
42+
"ver_code": 1
43+
},
44+
{
45+
"id": "sunrise_sunset",
46+
"ver_code": 1
47+
},
48+
{
49+
"id": "cloud_connect",
50+
"ver_code": 1
51+
},
52+
{
53+
"id": "iot_cloud",
54+
"ver_code": 1
55+
},
56+
{
57+
"id": "delay_action",
58+
"ver_code": 1
59+
},
60+
{
61+
"id": "battery_detect",
62+
"ver_code": 1
63+
},
64+
{
65+
"id": "firmware",
66+
"ver_code": 1
67+
},
68+
{
69+
"id": "localSmart",
70+
"ver_code": 1
71+
}
72+
]
73+
},
74+
"get_antitheft_rules": {
75+
"antitheft_rule_max_count": 1,
76+
"enable": false,
77+
"rule_list": []
78+
},
79+
"get_connect_cloud_state": {
80+
"status": 0
81+
},
82+
"get_countdown_rules": {
83+
"countdown_rule_max_count": 1,
84+
"enable": false,
85+
"rule_list": []
86+
},
87+
"get_device_info": {
88+
"avatar": "switch_s210",
89+
"battery_percentage": 100,
90+
"bind_count": 2,
91+
"category": "subg.plugswitch.switch",
92+
"device_id": "SCRUBBED_CHILD_DEVICE_ID_2",
93+
"device_on": true,
94+
"fw_ver": "1.9.0 Build 231106 Rel.164425",
95+
"has_set_location_info": true,
96+
"hw_id": "00000000000000000000000000000000",
97+
"hw_ver": "1.0",
98+
"is_low": false,
99+
"jamming_rssi": -111,
100+
"jamming_signal_level": 1,
101+
"lastOnboardingTimestamp": 1733332893,
102+
"latitude": 0,
103+
"led_off": 0,
104+
"longitude": 0,
105+
"mac": "DC6279000000",
106+
"model": "S210",
107+
"nickname": "I01BU0tFRF9OQU1FIw==",
108+
"oem_id": "00000000000000000000000000000000",
109+
"original_device_id": "0000000000000000000000000000000000000000",
110+
"parent_device_id": "0000000000000000000000000000000000000000",
111+
"position": 1,
112+
"region": "Europe/London",
113+
"rssi": -34,
114+
"signal_level": 3,
115+
"slot_number": 1,
116+
"specs": "EU",
117+
"status": "online",
118+
"status_follow_edge": false,
119+
"type": "SMART.TAPOSWITCH"
120+
},
121+
"get_device_usage": {
122+
"time_usage": {
123+
"past30": 12634,
124+
"past7": 4388,
125+
"today": 17
126+
}
127+
},
128+
"get_fw_download_state": {
129+
"cloud_cache_seconds": 1,
130+
"download_progress": 0,
131+
"reboot_time": 5,
132+
"status": 0,
133+
"upgrade_time": 5
134+
},
135+
"get_latest_fw": {
136+
"fw_size": 0,
137+
"fw_ver": "1.9.0 Build 231106 Rel.164425",
138+
"hw_id": "",
139+
"need_to_upgrade": false,
140+
"oem_id": "",
141+
"release_date": "",
142+
"release_note": "",
143+
"type": 0
144+
},
145+
"get_next_event": {},
146+
"get_schedule_rules": {
147+
"enable": false,
148+
"rule_list": [],
149+
"schedule_rule_max_count": 32,
150+
"start_index": 0,
151+
"sum": 0
152+
},
153+
"get_trigger_logs": {
154+
"logs": [
155+
{
156+
"event": "singleClick",
157+
"eventId": "85caedf6-73b1-50a8-5cae-df673b150a85",
158+
"id": 20079,
159+
"params": {
160+
"on_off": false
161+
},
162+
"timestamp": 1735898135
163+
}
164+
],
165+
"start_id": 20079,
166+
"sum": 1
167+
}
168+
}

0 commit comments

Comments
 (0)
0