8000 Add fixture for S505D (#947) · python-kasa/python-kasa@bfba7a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit bfba7a3

Browse files
authored
Add fixture for S505D (#947)
By courtesy of @steveredden: #888 (comment)
1 parent 30e3703 commit bfba7a3

File tree

4 files changed

+266
-1
lines changed

4 files changed

+266
-1
lines changed

README.md

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

210210
- **Plugs**: P100, P110, P125M, P135, TP15
211211
- **Power Strips**: P300, TP25
212-
- **Wall Switches**: S500D, S505
212+
- **Wall Switches**: S500D, S505, S505D
213213
- **Bulbs**: L510B, L510E, L530E
214214
- **Light Strips**: L900-10, L900-5, L920-5, L930-5
215215
- **Hubs**: H100

SUPPORTED.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ All Tapo devices require authentication.<br>Hub-Connected Devices may work acros
177177
- Hardware: 1.0 (US) / Firmware: 1.0.5
178178
- **S505**
179179
- Hardware: 1.0 (US) / Firmware: 1.0.2
180+
- **S505D**
181+
- Hardware: 1.0 (US) / Firmware: 1.1.0
180182

181183
### Bulbs
182184

kasa/tests/device_fixtures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
"KS240",
9696
"S500D",
9797
"S505",
98+
"S505D",
9899
}
99100
SWITCHES = {*SWITCHES_IOT, *SWITCHES_SMART}
100101
STRIPS_IOT = {"HS107", "HS300", "KP303", "KP200", "KP400", "EP40"}
Lines changed: 262 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,262 @@
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": "inherit",
18+
"ver_code": 1
19+
},
20+
{
21+
"id": "time",
22+
"ver_code": 1
23+
},
24+
{
25+
"id": "wireless",
26+
"ver_code": 1
27+
},
28+
{
29+
"id": "schedule",
30+
"ver_code": 2
31+
},
32+
{
33+
"id": "countdown",
34+
"ver_code": 2
35+
},
36+
{
37+
"id": "antitheft",
38+
"ver_code": 1
39+
},
40+
{
41+
"id": "account",
42+
"ver_code": 1
43+
},
44+
{
45+
"id": "synchronize",
46+
"ver_code": 1
47+
},
< A3E2 /code>48+
{
49+
"id": "sunrise_sunset",
50+
"ver_code": 1
51+
},
52+
{
53+
"id": "led",
54+
"ver_code": 1
55+
},
56+
{
57+
"id": "cloud_connect",
58+
"ver_code": 1
59+
},
60+
{
61+
"id": "iot_cloud",
62+
"ver_code": 1
63+
},
64+
{
65+
"id": "device_local_time",
66+
"ver_code": 1
67+
},
68+
{
69+
"id": "default_states",
70+
"ver_code": 1
71+
},
72+
{
73+
"id": "brightness",
74+
"ver_code": 1
75+
},
76+
{
77+
"id": "preset",
78+
"ver_code": 1
79+
},
80+
{
81+
"id": "on_off_gradually",
82+
"ver_code": 2
83+
},
84+
{
85+
"id": "dimmer_calibration",
86+
"ver_code": 1
87+
},
88+
{
89+
"id": "localSmart",
90+
"ver_code": 1
91+
},
92+
{
93+
"id": "overheat_protection",
94+
"ver_code": 1
95+
},
96+
{
97+
"id": "matter",
98+
"ver_code": 2
99+
}
100+
]
101+
},
102+
"discovery_result": {
103+
"device_id": "00000000000000000000000000000000",
104+
"device_model": "S505D(US)",
105+
"device_type": "SMART.TAPOSWITCH",
106+
"factory_default": false,
107+
"ip": "127.0.0.123",
108+
"is_support_iot_cloud": true,
109+
"mac": "48-22-54-00-00-00",
110+
"mgt_encrypt_schm": {
111+
"encrypt_type": "KLAP",
112+
"http_port": 80,
113+
"is_support_https": false,
114+
"lv": 2
115+
},
116+
"obd_src": "matter",
117+
"owner": "00000000000000000000000000000000"
118+
},
119+
"get_antitheft_rules": {
120+
"antitheft_rule_max_count": 1,
121+
"enable": false,
122+
"rule_list": []
123+
},
124+
"get_auto_update_info": {
125+
"enable": true,
126+
"random_range": 120,
127+
"time": 180
128+
},
129+
"get_connect_cloud_state": {
130+
"status": 1
131+
},
132+
"get_countdown_rules": {
133+
"countdown_rule_max_count": 1,
134+
"enable": false,
135+
"rule_list": []
136+
},
137+
"get_device_info": {
138+
"avatar": "switch_s500d",
139+
"brightness": 100,
140+
"default_states": {
141+
"re_power_type": "always_off",
142+
"re_power_type_capability": [
143+
"last_states",
144+
"always_on",
145+
"always_off"
146+
],
147+
"type": "last_states"
148+
},
149+
"device_id": "0000000000000000000000000000000000000000",
150+
"device_on": false,
151+
"fw_id": "00000000000000000000000000000000",
152+
"fw_ver": "1.1.0 Build 231024 Rel.201030",
153+
"has_set_location_info": false,
154+
"hw_id": "00000000000000000000000000000000",
155+
"hw_ver": "1.0",
156+
"ip": "127.0.0.123",
157+
"lang": "en_US",
158+
"latitude": 0,
159+
"longitude": 0,
160+
"mac": "48-22-54-00-00-00",
161+
"model": "S505D",
162+
"nickname": "I01BU0tFRF9OQU1FIw==",
163+
"oem_id": "00000000000000000000000000000000",
164+
"on_time": 0,
165+
"overheat_status": "normal",
166+
"region": "America/Chicago",
167+
"rssi": -39,
168+
"signal_level": 3,
169+
"specs": "",
170+
"ssid": "I01BU0tFRF9TU0lEIw==",
171+
"time_diff": -360,
172+
"type": "SMART.TAPOSWITCH"
173+
},
174+
"get_device_time": {
175+
"region": "America/Chicago",
176+
"time_diff": -360,
177+
"timestamp": 952082825
178+
},
179+
"get_fw_download_state": {
180+
"auto_upgrade": false,
181+
"download_progress": 0,
182+
"reboot_time": 5,
183+
"status": 0,
184+
"upgrade_time": 5
185+
},
186+
"get_inherit_info": null,
187+
"get_led_info": {
188+
"led_rule": "always",
189+
"led_status": true,
190+
"night_mode": {
191+
"end_time": 420,
192+
"night_mode_type": "sunrise_sunset",
193+
"start_time": 1140,
194+
"sunrise_offset": 0,
195+
"sunset_offset": 0
196+
}
197+
},
198+
"get_matter_setup_info": {
199+
"setup_code": "00000000000",
200+
"setup_payload": "00:-00000000000000.000"
201+
},
202+
"get_next_event": {},
203+
"get_preset_rules": {
204+
"brightness": [
205+
100,
206+
75,
207+
50,
208+
25,
209+
1
210+
]
211+
},
212+
"get_schedule_rules": {
213+
"enable": false,
214+
"rule_list": [],
215+
"schedule_rule_max_count": 32,
216+
"start_index": 0,
217+
"sum": 0
218+
},
219+
"get_wireless_scan_info": {
220+
"ap_list": [],
221+
"start_index": 0,
222+
"sum": 0,
223+
"wep_supported": false
224+
},
225+
"qs_component_nego": {
226+
"component_list": [
227+
{
228+
"id": "quick_setup",
229+
"ver_code": 3
230+
},
231+
{
232+
"id": "sunrise_sunset",
233+
"ver_code": 1
234+
},
235+
{
236+
"id": "ble_whole_setup",
237+
"ver_code": 1
238+
},
239+
{
240+
"id": "matter",
241+
"ver_code": 2
242+
},
243+
{
244+
"id": "iot_cloud",
245+
"ver_code": 1
246+
},
247+
{
248+
"id": "inherit",
249+
"ver_code": 1
250+
},
251+
{
252+
"id": "firmware",
253+
"ver_code": 2
254+
}
255+
],
256+
"extra_info": {
257+
"device_model": "S505D",
258+
"device_type": "SMART.TAPOSWITCH",
259+
"is_klap": true
260+
}
261+
}
262+
}

0 commit comments

Comments
 (0)
0