Skip to content

Commit aa72b76

Browse files
authored
Add cooktop fixture to SmartThings (home-assistant#157842)
1 parent e009898 commit aa72b76

File tree

6 files changed

+646
-0
lines changed

6 files changed

+646
-0
lines changed

tests/components/smartthings/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ def mock_smartthings() -> Generator[AsyncMock]:
143143
"da_rvc_normal_000001",
144144
"da_rvc_map_01011",
145145
"da_ks_microwave_0101x",
146+
"da_ks_cooktop_000001",
146147
"da_ks_cooktop_31001",
147148
"da_ks_range_0101x",
148149
"da_ks_oven_01061",
Lines changed: 308 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,308 @@
1+
{
2+
"components": {
3+
"main": {
4+
"refresh": {},
5+
"execute": {
6+
"data": {
7+
"value": null
8+
}
9+
},
10+
"samsungce.deviceIdentification": {
11+
"micomAssayCode": {
12+
"value": "40442241",
13+
"timestamp": "2025-12-02T09:19:03.381Z"
14+
},
15+
"modelName": {
16+
"value": null
17+
},
18+
"serialNumber": {
19+
"value": null
20+
},
21+
"serialNumberExtra": {
22+
"value": null
23+
},
24+
"modelClassificationCode": {
25+
"value": "50000204001011000100000000000000",
26+
"timestamp": "2025-12-02T09:19:03.381Z"
27+
},
28+
"description": {
29+
"value": "NV9300K-/AA3",
30+
"timestamp": "2025-12-02T09:19:03.381Z"
31+
},
32+
"releaseYear": {
33+
"value": 16,
34+
"timestamp": "2025-06-13T19:06:42.910Z"
35+
},
36+
"binaryId": {
37+
"value": "TP2X_DA-KS-COOKTOP-000001",
38+
"timestamp": "2025-12-02T09:19:03.380Z"
39+
}
40+
},
41+
"switch": {
42+
"switch": {
43+
"value": "off",
44+
"timestamp": "2025-12-02T09:19:03.377Z"
45+
}
46+
},
47+
"samsungce.softwareVersion": {
48+
"versions": {
49+
"value": [
50+
{
51+
"id": "0",
52+
"swType": "Software",
53+
"versionNumber": "230515",
54+
"description": "Version"
55+
},
56+
{
57+
"id": "1",
58+
"swType": "Firmware",
59+
"versionNumber": "DE92-04422A_22112100",
60+
"description": "Version"
61+
}
62+
],
63+
"timestamp": "2025-12-02T09:19:03.381Z"
64+
}
65+
},
66+
"ocf": {
67+
"st": {
68+
"value": null
69+
},
70+
"mndt": {
71+
"value": null
72+
},
73+
"mnfv": {
74+
"value": "AKS-WW-TP2X-20-COOKTOP_40230515",
75+
"timestamp": "2025-06-18T19:50:19.130Z"
76+
},
77+
"mnhw": {
78+
"value": "MediaTek",
79+
"timestamp": "2025-06-18T19:50:19.130Z"
80+
},
81+
"di": {
82+
"value": "5c202ad1-d112-d746-50b8-bd76a554b362",
83+
"timestamp": "2025-06-18T19:50:19.130Z"
84+
},
85+
"mnsl": {
86+
"value": "http://www.samsung.com",
87+
"timestamp": "2025-06-18T19:50:19.130Z"
88+
},
89+
"dmv": {
90+
"value": "res.1.1.0,sh.1.1.0",
91+
"timestamp": "2025-06-18T19:50:19.130Z"
92+
},
93+
"n": {
94+
"value": "Samsung Cooktop",
95+
"timestamp": "2025-06-18T19:50:19.130Z"
96+
},
97+
"mnmo": {
98+
"value": "TP2X_DA-KS-COOKTOP-000001|40442241|50000204001011000100000000000000",
99+
"timestamp": "2025-06-18T19:50:19.130Z"
100+
},
101+
"vid": {
102+
"value": "DA-KS-COOKTOP-000001",
103+
"timestamp": "2025-06-18T19:50:19.130Z"
104+
},
105+
"mnmn": {
106+
"value": "Samsung Electronics",
107+
"timestamp": "2025-06-18T19:50:19.130Z"
108+
},
109+
"mnml": {
110+
"value": "http://www.samsung.com",
111+
"timestamp": "2025-06-18T19:50:19.130Z"
112+
},
113+
"mnpv": {
114+
"value": "DAWIT 3.0",
115+
"timestamp": "2025-06-18T19:50:19.130Z"
116+
},
117+
"mnos": {
118+
"value": "TizenRT 2.0 + IPv6",
119+
"timestamp": "2025-06-18T19:50:19.130Z"
120+
},
121+
"pi": {
122+
"value": "5c202ad1-d112-d746-50b8-bd76a554b362",
123+
"timestamp": "2025-06-18T19:50:19.130Z"
124+
},
125+
"icv": {
126+
"value": "core.1.1.0",
127+
"timestamp": "2025-06-18T19:50:19.130Z"
128+
}
129+
},
130+
"samsungce.kitchenDeviceIdentification": {
131+
"regionCode": {
132+
"value": "US",
133+
"timestamp": "2025-12-02T09:19:03.381Z"
134+
},
135+
"modelCode": {
136+
"value": "NV9300K-/AA3",
137+
"timestamp": "2025-12-02T09:19:03.381Z"
138+
},
139+
"fuel": {
140+
"value": null
141+
},
142+
"type": {
143+
"value": "cooktop",
144+
"timestamp": "2025-06-18T19:50:18.927Z"
145+
},
146+
"representativeComponent": {
147+
"value": null
148+
}
149+
},
150+
"custom.cooktopOperatingState": {
151+
"supportedCooktopOperatingState": {
152+
"value": ["ready", "run"],
153+
"timestamp": "2025-12-02T09:19:03.381Z"
154+
},
155+
"cooktopOperatingState": {
156+
"value": "ready",
157+
"timestamp": "2025-12-02T09:19:03.381Z"
158+
}
159+
},
160+
"custom.disabledCapabilities": {
161+
"disabledCapabilities": {
162+
"value": ["samsungce.kidsLockControl"],
163+
"timestamp": "2025-03-27T22:25:08.123Z"
164+
}
165+
},
166+
"samsungce.driverVersion": {
167+
"versionNumber": {
168+
"value": 25040101,
169+
"timestamp": "2025-06-13T19:06:42.910Z"
170+
}
171+
},
172+
"samsungce.softwareUpdate": {
173+
"targetModule": {
174+
"value": {},
175+
"timestamp": "2025-12-02T02:42:41.363Z"
176+
},
177+
"otnDUID": {
178+
"value": "ZPCPH4AI7CHPC",
179+
"timestamp": "2025-12-02T09:19:03.381Z"
180+
},
181+
"lastUpdatedDate": {
182+
"value": null
183+
},
184+
"availableModules": {
185+
"value": [],
186+
"timestamp": "2025-03-27T22:25:08.123Z"
187+
},
188+
"newVersionAvailable": {
189+
"value": false,
190+
"timestamp": "2025-12-02T09:19:03.381Z"
191+
},
192+
"operatingState": {
193+
"value": null
194+
},
195+
"progress": {
196+
"value": null
197+
}
198+
},
199+
"sec.diagnosticsInformation": {
200+
"logType": {
201+
"value": ["errCode", "dump"],
202+
"timestamp": "2025-12-02T09:19:03.381Z"
203+
},
204+
"endpoint": {
205+
"value": "SSM",
206+
"timestamp": "2025-12-02T09:19:03.381Z"
207+
},
208+
"minVersion": {
209+
"value": "1.0",
210+
"timestamp": "2025-12-02T09:19:03.381Z"
211+
},
212+
"signinPermission": {
213+
"value": null
214+
},
215+
"setupId": {
216+
"value": "800",
217+
"timestamp": "2025-12-02T09:19:03.381Z"
218+
},
219+
"protocolType": {
220+
"value": "wifi_https",
221+
"timestamp": "2025-12-02T09:19:03.381Z"
222+
},
223+
"tsId": {
224+
"value": null
225+
},
226+
"mnId": {
227+
"value": "0AJT",
228+
"timestamp": "2025-12-02T09:19:03.381Z"
229+
},
230+
"dumpType": {
231+
"value": "file",
232+
"timestamp": "2025-12-02T09:19:03.381Z"
233+
}
234+
},
235+
"samsungce.kidsLockControl": {
236+
"lockState": {
237+
"value": "unlocked",
238+
"timestamp": "2025-12-02T09:19:03.381Z"
239+
}
240+
},
241+
"samsungce.kidsLock": {
242+
"lockState": {
243+
"value": "unlocked",
244+
"timestamp": "2025-12-02T09:19:03.381Z"
245+
}
246+
}
247+
},
248+
"hood": {
249+
"samsungce.connectionState": {
250+
"connectionState": {
251+
"value": "disconnected",
252+
"timestamp": "2025-12-02T09:19:03.381Z"
253+
}
254+
},
255+
"custom.disabledCapabilities": {
256+
"disabledCapabilities": {
257+
"value": ["samsungce.lamp", "samsungce.hoodFanSpeed"],
258+
"timestamp": "2025-03-27T22:25:07.975Z"
259+
}
260+
},
261+
"samsungce.hoodFanSpeed": {
262+
"settableMaxFanSpeed": {
263+
"value": 5,
264+
"timestamp": "2025-06-13T19:06:42.910Z"
265+
},
266+
"hoodFanSpeed": {
267+
"value": 0,
268+
"timestamp": "2025-12-02T09:19:03.381Z"
269+
},
270+
"supportedHoodFanSpeed": {
271+
"value": [0, 1, 2, 3, 4, 5],
272+
"timestamp": "2025-06-13T19:06:42.910Z"
273+
},
274+
"settableMinFanSpeed": {
275+
"value": 0,
276+
"timestamp": "2025-06-13T19:06:42.910Z"
277+
}
278+
},
279+
"samsungce.countDownTimer": {
280+
"startValue": {
281+
"value": null
282+
},
283+
"currentValue": {
284+
"value": null
285+
},
286+
"status": {
287+
"value": null
288+
}
289+
},
290+
"switch": {
291+
"switch": {
292+
"value": "off",
293+
"timestamp": "2025-12-02T09:19:03.377Z"
294+
}
295+
},
296+
"samsungce.lamp": {
297+
"brightnessLevel": {
298+
"value": "off",
299+
"timestamp": "2025-12-02T09:19:03.381Z"
300+
},
301+
"supportedBrightnessLevel": {
302+
"value": ["off", "high"],
303+
"timestamp": "2025-06-13T19:06:42.910Z"
304+
}
305+
}
306+
}
307+
}
308+
}

0 commit comments

Comments
 (0)