8000 Add TP10(IT) 1.0 1.2.5 fixture (#1538) · python-kasa/python-kasa@d60dedd · GitHub
[go: up one dir, main page]

Skip to content

Commit d60dedd

Browse files
authored
Add TP10(IT) 1.0 1.2.5 fixture (#1538)
1 parent 579fd5a commit d60dedd

File tree

4 files changed

+350
-1
lines changed

4 files changed

+350
-1
lines changed

README.md

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

197197
### Supported Tapo[^1] devices
198198

199-
- **Plugs**: P100, P110, P110M, P115, P125M, P135, TP15
199+
- **Plugs**: P100, P110, P110M, P115, P125M, P135, TP10, TP15
200200
- **Power Strips**: P210M, P300, P304M, P306, TP25
201201
- **Wall Switches**: S210, S220, S500D, S505, S505D
202202
- **Bulbs**: L510B, L510E, L530B, L530E, L630

SUPPORTED.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ All Tapo devices require authentication.<br>Hub-Connected Devices may work acros
209209
- **P135**
210210
- Hardware: 1.0 (US) / Firmware: 1.0.5
211211
- Hardware: 1.0 (US) / Firmware: 1.2.0
212+
- **TP10**
213+
- Hardware: 1.0 (IT) / Firmware: 1.2.5
212214
- **TP15**
213215
- Hardware: 1.0 (US) / Firmware: 1.0.3
214216

tests/device_fixtures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"KP125M",
8888
"EP25",
8989
"P125M",
90+
"TP10",
9091
"TP15",
9192
}
9293
PLUGS = {
Lines changed: 346 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,346 @@
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+
},
78+
"discovery_result": {
79+
"error_code": 0,
80+
"result": {
81+
"device_id": "00000000000000000000000000000000",
82+
"device_model": "TP10(IT)",
83+
"device_type": "SMART.TAPOPLUG",
84+
"factory_default": false,
85+
"ip": "127.0.0.123",
86+
"is_support_iot_cloud": true,
87+
"mac": "40-AE-30-00-00-00",
88+
"mgt_encrypt_schm": {
89+
"encrypt_type": "KLAP",
90+
"http_port": 80,
91+
"is_support_https": false,
92+
"lv": 2
93+
},
94+
"obd_src": "tplink",
95+
"owner": "00000000000000000000000000000000",
96+
"protocol_version": 1
97+
}
98+
},
99+
"get_antitheft_rules": {
100+
"antitheft_rule_max_count": 1,
101+
"enable": false,
102+
"rule_list": []
103+
},
104+
"get_auto_off_config": {
105+
"delay_min": 120,
106+
"enable": false
107+
},
108+
"get_auto_update_info": {
109+
"enable": true,
110+
"random_range": 120,
111+
"time": 180
112+
},
113+
"get_connect_cloud_state": {
114+
"status": 0
115+
},
116+
"get_countdown_rules": {
117+
"countdown_rule_max_count": 1,
118+
"enable": false,
119+
"rule_list": []
120+
},
121+
"get_device_info": {
122+
"auto_off_remain_time": 0,
123+
"auto_off_status": "off",
124+
"avatar": "plug",
125+
"default_states": {
126+
"state": {},
127+
"type": "last_states"
128+
},
129+
"device_id": "0000000000000000000000000000000000000000",
130+
"device_on": false,
131+
"fw_id": "00000000000000000000000000000000",
132+
"fw_ver": "1.2.5 Build 240411 Rel.143808",
133+
"has_set_location_info": false,
134+
"hw_id": "00000000000000000000000000000000",
135+
"hw_ver": "1.0",
136+
"ip": "127.0.0.123",
137+
"lang": "it_IT",
138+
"latitude": 0,
139+
"longitude": 0,
140+
"mac": "40-AE-30-00-00-00",
141+
"model": "TP10",
142+
"nickname": "I01BU0tFRF9OQU1FIw==",
143+
"oem_id": "00000000000000000000000000000000",
144+
"on_time": 0,
145+
"overheated": false,
146+
"region": "Europe/Rome",
147+
"rssi": -54,
148+
"signal_level": 2,
149+
"specs": "IT",
150+
"ssid": "I01BU0tFRF9TU0lEIw==",
151+
"time_diff": 60,
152+
"type": "SMART.TAPOPLUG"
153+
},
154+
"get_device_time": {
155+
"region": "Europe/Rome",
156+
"time_diff": 60,
157+
"timestamp": 1747840143
158+
},
159+
"get_device_usage": {
160+
"time_usage": {
161+
"past30": 32,
162+
"past7": 32,
163+
"today": 32
164+
}
165+
},
166+
"get_fw_download_state": {
167+
"auto_upgrade": false,
168+
"download_progress": 0,
169+
"reboot_time": 5,
170+
"status": 0,
171+
"upgrade_time": 5
172+
},
173+
"get_latest_fw": {
174+
"fw_size": 0,
175+
"fw_ver": "1.2.5 Build 240411 Rel.143808",
176+
"hw_id": "",
177+
"need_to_upgrade": false,
178+
"oem_id": "",
179+
"release_date": "",
180+
"release_note": "",
181+
"type": 0
182+
},
183+
"get_led_info": {
184+
"led_rule": "always",
185+
"led_status": false,
186+
"night_mode": {
187+
"end_time": 420,
188+
"night_mode_type": "sunrise_sunset",
189+
"start_time": 1140,
190+
"sunrise_offset": 0,
191+
"sunset_offset": 0
192+
}
193+
},
194+
"get_next_event": {},
195+
"get_schedule_rules": {
196+
"enable": false,
197+
"rule_list": [],
198+
"schedule_rule_max_count": 32,
199+
"start_index": 0,
200+
"sum": 0
201+
},
202+
"get_wireless_scan_info": {
203+
"ap_list": [
204+
{
205+
"bssid": "000000000000",
206+
"channel": 0,
207+
"cipher_type": 2,
208+
"key_type": "wpa2_psk",
209+
"signal_level": 2,
210+
"ssid": "I01BU0tFRF9TU0lEIw=="
211+
},
212+
{
213+
"bssid": "000000000000",
214+
"channel": 0,
215+
"cipher_type": 2,
216+
"key_type": "wpa2_psk",
217+
"signal_level": 1,
218+
"ssid": "I01BU0tFRF9TU0lEIw=="
219+
},
220+
{
221+
"bssid": "000000000000",
222+
"channel": 0,
223+
"cipher_type": 2,
224+
"key_type": "wpa2_psk",
225+
"signal_level": 1,
226+
"ssid": "I01BU0tFRF9TU0lEIw=="
227+
},
228+
{
229+
"bssid": "000000000000",
230+
"channel": 0,
231+
"cipher_type": 2,
232+
"key_type": "wpa2_psk",
233+
"signal_level": 1,
234+
"ssid": "I01BU0tFRF9TU0lEIw=="
235+
},
236+
{
237+
"bssid": "000000000000",
238+
"channel": 0,
239+
"cipher_type": 2,
240+
"key_type": "wpa2_psk",
241+
"signal_level": 1,
242+
"ssid": "I01BU0tFRF9TU0lEIw=="
243+
},
244+
{
245+
"bssid": "000000000000",
246+
"channel": 0,
247+
"cipher_type": 2,
248+
"key_type": "wpa2_psk",
249+
"signal_level": 1,
250+
"ssid": "I01BU0tFRF9TU0lEIw=="
251+
},
252+
{
253+
"bssid": "000000000000",
254+
"channel": 0,
255+
"cipher_type": 2,
256+
"key_type": "wpa2_psk",
257+
"signal_level": 1,
258+
"ssid": "I01BU0tFRF9TU0lEIw=="
259+
},
260+
{
261+
"bssid": "000000000000",
262+
"channel": 0,
263+
"cipher_type": 2,
264+
"key_type": "wpa2_psk",
265+
"signal_level": 1,
266+
"ssid": "I01BU0tFRF9TU0lEIw=="
267+
},
268+
{
269+
"bssid": "000000000000",
270+
"channel": 0,
271+
"cipher_type": 2,
272+
"key_type": "wpa2_psk",
273+
"signal_level": 1,
274+
"ssid": "I01BU0tFRF9TU0lEIw=="
275+
},
276+
{
277+
"bssid": "000000000000",
278+
"channel": 0,
279+
"cipher_type": 2,
280+
"key_type": "wpa2_psk",
281+
"signal_level": 1,
282+
"ssid": "I01BU0tFRF9TU0lEIw=="
283+
},
284+
{
285+
"bssid": "000000000000",
286+
"channel": 0,
287+
"cipher_type": 2,
288+
"key_type": "wpa2_psk",
289+
"signal_level": 1,
290+
"ssid": "I01BU0tFRF9TU0lEIw=="
291+
},
292+
{
293+
"bssid": "000000000000",
294+
"channel": 0,
295+
"cipher_type": 2,
296+
"key_type": "wpa2_psk",
297+
"signal_level": 1,
298+
"ssid": "I01BU0tFRF9TU0lEIw=="
299+
},
300+
{
301+
"bssid": "000000000000",
302+
"channel": 0,
303+
"cipher_type": 2,
304+
"key_type": "wpa2_psk",
305+
"signal_level": 1,
306+
"ssid": "I01BU0tFRF9TU0lEIw=="
307+
}
308+
],
309+
"start_index": 0,
310+
"sum": 13,
311+
"wep_supported": false
312+
},
313+
"qs_component_nego": {
314+
"component_list": [
315+
{
316+
"id": "quick_setup",
317+
"ver_code": 3
318+
},
319+
{
320+
"id": "sunrise_sunset",
321+
"ver_code": 1
322+
},
323+
{
324+
"id": "ble_whole_setup",
325+
"ver_code": 1
326+
},
327+
{
328+
"id": "iot_cloud",
329+
"ver_code": 1
330+
},
331+
{
332+
"id": "inherit",
333+
"ver_code": 1
334+
},
335+
{
336+
"id": "firmware",
337+
"ver_code": 2
338+
}
339+
],
340+
"extra_info": {
341+
"device_model": "TP10",
342+
"device_type": "SMART.TAPOPLUG",
343+
"is_klap": true
344+
}
345+
}
346+
}

0 commit comments

Comments
 (0)
0