FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add S500(US)_1.0_1.2.0 fixture (#1569) · python-kasa/python-kasa@08e7ab5 · GitHub

Repository navigation

Commit 08e7ab5

Browse files
authored
Add S500(US)_1.0_1.2.0 fixture (#1569)
1 parent 0cd0434 commit 08e7ab5

4 files changed

Lines changed: 367 additions & 1 deletion

File tree

‎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, TP10, TP15
200200
- **Power Strips**: P210M, P300, P304M, P306, TP25
201-
- **Wall Switches**: S210, S220, S500D, S505, S505D
201+
- **Wall Switches**: S210, S220, S500, S500D, S505, S505D
202202
- **Bulbs**: L510B, L510E, L530B, L530E, L535E, L630
203203
- **Light Strips**: L900-10, L900-5, L920-5, L930-5
204204
- **Cameras**: C100, C110, C210, C220, C225, C325WB, C520WS, C720, TC65, TC70

‎SUPPORTED.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ All Tapo devices require authentication.<br>Hub-Connected Devices may work acros
237237
- Hardware: 1.0 (EU) / Firmware: 1.9.0
238238
- **S220**
239239
- Hardware: 1.0 (EU) / Firmware: 1.9.0
240+
- **S500**
241+
- Hardware: 1.0 (US) / Firmware: 1.2.0
240242
- **S500D**
241243
- Hardware: 1.0 (US) / Firmware: 1.0.5
242244
- **S505**

‎tests/device_fixtures.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
"KS205",
106106
"KS225",
107107
"KS240",
108+
"S500",
108109
"S500D",
109110
"S505",
110111
"S505D",
Lines changed: 363 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,363 @@
1+
{
2+
"component_nego": {
3+
"component_list": [
4+
{
5+
"id": "device",
6+
"ver_code": 2
7+
},
8+
{
9+
"id": "firmware",
10+
"ver_code": 2
11+
},
12+
{
13+
"id": "quick_setup",
14+
"ver_code": 3
15+
},
16+
{
17+
"id": "time",
18+
"ver_code": 1
19+
},
20+
{
21+
"id": "wireless",
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": "led",
50+
"ver_code": 1
51+
},
52+
{
53+
"id": "cloud_connect",
54+
"ver_code": 1
55+
},
56+
{
57+
"id": "iot_cloud",
58+
"ver_code": 1
59+
},
60+
{
61+
"id": "device_local_time",
62+
"ver_code": 1
63+
},
64+
{
65+
"id": "default_states",
66+
"ver_code": 1
67+
},
68+
{
69+
"id": "auto_off",
70+
"ver_code": 2
71+
},
72+
{
73+
"id": "localSmart",
74+
"ver_code": 1
75+
},
76+
{
77+
"id": "delay_action",
78+
"ver_code": 1
79+
}
80+
]
81+
},
82+
"discovery_result": {
83+
"error_code": 0,
84+
"result": {
85+
"device_id": "00000000000000000000000000000000",
86+
"device_model": "S500(US)",
87+
"device_type": "SMART.TAPOSWITCH",
88+
"factory_default": false,
89+
"ip": "127.0.0.123",
90+
"is_support_iot_cloud": true,
91+
"mac": "98-03-8E-00-00-00",
92+
"mgt_encrypt_schm": {
93+
"encrypt_type": "KLAP",
94+
"http_port": 80,
95+
"is_support_https": false,
96+
"lv": 2
97+
},
98+
"obd_src": "tplink",
99+
"owner": "00000000000000000000000000000000"
100+
}
101+
},
102+
"get_antitheft_rules": {
103+
"antitheft_rule_max_count": 1,
104+
"enable": false,
105+
"rule_list": []
106+
},
107+
"get_auto_off_config": {
108+
"delay_min": 120,
109+
"enable": false
110+
},
111+
"get_auto_update_info": {
112+
"enable": true,
113+
"random_range": 120,
114+
"time": 180
115+
},
116+
"get_connect_cloud_state": {
117+
"status": 0
118+
},
119+
"get_countdown_rules": {
120+
"countdown_rule_max_count": 1,
121+
"enable": false,
122+
"rule_list": []
123+
},
124+
"get_device_info": {
125+
"auto_off_remain_time": 0,
126+
"auto_off_status": "off",
127+
"avatar": "switch_s500",
128+
"default_states": {
129+
"state": {
130+
"on": false
131+
},
132+
"type": "custom"
133+
},
134+
"device_id": "0000000000000000000000000000000000000000",
135+
"device_on": false,
136+
"fw_id": "00000000000000000000000000000000",
137+
"fw_ver": "1.2.0 Build 230906 Rel.140001",
138+
"has_set_location_info": true,
139+
"hw_id": "00000000000000000000000000000000",
140+
"hw_ver": "1.0",
141+
"ip": "127.0.0.123",
142+
"lang": "en_US",
143+
"latitude": 0,
144+
"longitude": 0,
145+
"mac": "98-03-8E-00-00-00",
146+
"model": "S500",
147+
"nickname": "I01BU0tFRF9OQU1FIw==",
148+
"oem_id": "00000000000000000000000000000000",
149+
"on_time": 0,
150+
"overheated": false,
151+
"region": "America/New_York",
152+
"rssi": -41,
153+
"signal_level": 3,
154+
"specs": "",
155+
"ssid": "I01BU0tFRF9TU0lEIw==",
156+
"time_diff": -300,
157+
"type": "SMART.TAPOSWITCH"
158+
},
159+
"get_device_time": {
160+
"region": "America/New_York",
161+
"time_diff": -300,
162+
"timestamp": 1755999484
163+
},
164+
"get_device_usage": {
165+
"time_usage": {
166+
"past30": 63,
167+
"past7": 63,
168+
"today": 63
169+
}
170+
},
171+
"get_fw_download_state": {
172+
"auto_upgrade": false,
173+
"download_progress": 0,
174+
"reboot_time": 5,
175+
"status": 0,
176+
"upgrade_time": 5
177+
},
178+
"get_latest_fw": {
179+
"fw_size": 0,
180+
"fw_ver": "1.2.0 Build 230906 Rel.140001",
181+
"hw_id": "",
182+
"need_to_upgrade": false,
183+
"oem_id": "",
184+
"release_date": "",
185+
"release_note": "",
186+
"type": 0
187+
},
188+
"get_led_info": {
189+
"led_rule": "always",
190+
"led_status": true,
191+
"night_mode": {
192+
"end_time": 418,
193+
"night_mode_type": "sunrise_sunset",
194+
"start_time": 1190,
195+
"sunrise_offset": 0,
196+
"sunset_offset": 0
197+
}
198+
},
199+
"get_next_event": {},
200+
"get_schedule_rules": {
201+
"enable": false,
202+
"rule_list": [],
203+
"schedule_rule_max_count": 32,
204+
"start_index": 0,
205+
"sum": 0
206+
},
207+
"get_wireless_scan_info": {
208+
"ap_list": [
209+
{
210+
"bssid": "000000000000",
211+
"channel": 0,
212+
"cipher_type": 2,
213+
"key_type": "wpa2_psk",
214+
"signal_level": 3,
215+
"ssid": "I01BU0tFRF9TU0lEIw=="
216+
},
217+
{
218+
"bssid": "000000000000",
219+
"channel": 0,
220+
"cipher_type": 2,
221+
"key_type": "wpa2_psk",
222+
"signal_level": 2,
223+
"ssid": "I01BU0tFRF9TU0lEIw=="
224+
},
225+
{
226+
"bssid": "000000000000",
227+
"channel": 0,
228+
"cipher_type": 2,
229+
"key_type": "wpa2_psk",
230+
"signal_level": 1,
231+
"ssid": "I01BU0tFRF9TU0lEIw=="
232+
},
233+
{
234+
"bssid": "000000000000",
235+
"channel": 0,
236+
"cipher_type": 2,
237+
"key_type": "wpa2_psk",
238+
"signal_level": 1,
239+
"ssid": "I01BU0tFRF9TU0lEIw=="
240+
},
241+
{
242+
"bssid": "000000000000",
243+
"channel": 0,
244+
"cipher_type": 2,
245+
"key_type": "wpa2_psk",
246+
"signal_level": 1,
247+
"ssid": "I01BU0tFRF9TU0lEIw=="
248+
},
249+
{
250+
"bssid": "000000000000",
251+
"channel": 0,
252+
"cipher_type": 2,
253+
"key_type": "wpa2_psk",
254+
"signal_level": 1,
255+
"ssid": "I01BU0tFRF9TU0lEIw=="
256+
},
257+
{
258+
"bssid": "000000000000",
259+
"channel": 0,
260+
"cipher_type": 2,
261+
"key_type": "wpa2_psk",
262+
"signal_level": 1,
263+
"ssid": "I01BU0tFRF9TU0lEIw=="
264+
},
265+
{
266+
"bssid": "000000000000",
267+
"channel": 0,
268+
"cipher_type": 2,
269+
"key_type": "wpa2_psk",
270+
"signal_level": 1,
271+
"ssid": "I01BU0tFRF9TU0lEIw=="
272+
},
273+
{
274+
"bssid": "000000000000",
275+
"channel": 0,
276+
"cipher_type": 0,
277+
"key_type": "none",
278+
"signal_level": 1,
279+
"ssid": "I01BU0tFRF9TU0lEIw=="
280+
},
281+
{
282+
"bssid": "000000000000",
283+
"channel": 0,
284+
"cipher_type": 2,
285+
"key_type": "wpa2_psk",
286+
"signal_level": 1,
287+
"ssid": "I01BU0tFRF9TU0lEIw=="
288+
},
289+
{
290+
"bssid": "000000000000",
291+
"channel": 0,
292+
"cipher_type": 2,
293+
"key_type": "wpa2_psk",
294+
"signal_level": 1,
295+
"ssid": "I01BU0tFRF9TU0lEIw=="
296+
},
297+
{
298+
"bssid": "000000000000",
299+
"channel": 0,
300+
"cipher_type": 2,
301+
"key_type": "wpa2_psk",
302+
"signal_level": 1,
303+
"ssid": "I01BU0tFRF9TU0lEIw=="
304+
},
305+
{
306+
"bssid": "000000000000",
307+
"channel": 0,
308+
"cipher_type": 2,
309+
"key_type": "wpa2_psk",
310+
"signal_level": 1,
311+
"ssid": "I01BU0tFRF9TU0lEIw=="
312+
},
313+
{
314+
"bssid": "000000000000",
315+
"channel": 0,
316+
"cipher_type": 0,
317+
"key_type": "none",
318+
"signal_level": 1,
319+
"ssid": "I01BU0tFRF9TU0lEIw=="
320+
},
321+
{
322+
"bssid": "000000000000",
323+
"channel": 0,
324+
"cipher_type": 2,
325+
"key_type": "wpa2_psk",
326+
"signal_level": 1,
327+
"ssid": "I01BU0tFRF9TU0lEIw=="
328+
}
329+
],
330+
"start_index": 0,
331+
"sum": 15,
332+
"wep_supported": false
333+
},
334+
"qs_component_nego": {
335+
"component_list": [
336+
{
337+
"id": "quick_setup",
338+
"ver_code": 3
339+
},
340+
{
341+
"id": "sunrise_sunset",
342+
"ver_code": 1
343+
},
344+
{
345+
"id": "iot_cloud",
346+
"ver_code": 1
347+
},
348+
{
349+
"id": "inherit",
350+
"ver_code": 1
351+
},
352+
{
353+
"id": "firmware",
354+
"ver_code": 2
355+
}
356+
],
357+
"extra_info": {
358+
"device_model": "S500",
359+
"device_type": "SMART.TAPOSWITCH",
360+
"is_klap": true
361+
}
362+
}
363+
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL