Skip to content

Commit 6f0de30

Browse files
authored
Add fixture for dual washing machine to SmartThings (home-assistant#156646)
1 parent 87d2597 commit 6f0de30

File tree

7 files changed

+766
-0
lines changed

7 files changed

+766
-0
lines changed

tests/components/smartthings/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def mock_smartthings() -> Generator[AsyncMock]:
131131
"da_wm_wd_000001_1",
132132
"da_wm_wm_01011",
133133
"da_wm_wm_100001",
134+
"da_wm_wm_100002",
134135
"da_wm_wm_000001",
135136
"da_wm_wm_000001_1",
136137
"da_wm_sc_000001",
Lines changed: 261 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,261 @@
1+
{
2+
"components": {
3+
"sub": {
4+
"ocf": {
5+
"st": {
6+
"value": null
7+
},
8+
"mndt": {
9+
"value": null
10+
},
11+
"mnfv": {
12+
"value": null
13+
},
14+
"mnhw": {
15+
"value": null
16+
},
17+
"di": {
18+
"value": null
19+
},
20+
"mnsl": {
21+
"value": null
22+
},
23+
"dmv": {
24+
"value": null
25+
},
26+
"n": {
27+
"value": null
28+
},
29+
"mnmo": {
30+
"value": null
31+
},
32+
"vid": {
33+
"value": null
34+
},
35+
"mnmn": {
36+
"value": null
37+
},
38+
"mnml": {
39+
"value": null
40+
},
41+
"mnpv": {
42+
"value": null
43+
},
44+
"mnos": {
45+
"value": null
46+
},
47+
"pi": {
48+
"value": null
49+
},
50+
"icv": {
51+
"value": null
52+
}
53+
},
54+
"remoteControlStatus": {
55+
"remoteControlEnabled": {
56+
"value": "true",
57+
"timestamp": "2025-11-14T02:38:34.039Z"
58+
}
59+
},
60+
"samsungce.driverVersion": {
61+
"versionNumber": {
62+
"value": null
63+
}
64+
},
65+
"refresh": {},
66+
"samsungce.washerOperatingState": {
67+
"washerJobState": {
68+
"value": "none",
69+
"timestamp": "2025-11-14T02:27:39.046Z"
70+
},
71+
"operatingState": {
72+
"value": "ready",
73+
"timestamp": "2025-11-14T02:27:39.046Z"
74+
},
75+
"supportedOperatingStates": {
76+
"value": ["ready", "running", "paused"],
77+
"timestamp": "2025-11-14T02:27:39.046Z"
78+
},
79+
"scheduledJobs": {
80+
"value": null
81+
},
82+
"scheduledPhases": {
83+
"value": null
84+
},
85+
"progress": {
86+
"value": null
87+
},
88+
"remainingTimeStr": {
89+
"value": "00:43",
90+
"timestamp": "2025-11-14T02:27:39.046Z"
91+
},
92+
"washerJobPhase": {
93+
"value": null
94+
},
95+
"operationTime": {
96+
"value": null
97+
},
98+
"remainingTime": {
99+
"value": 43,
100+
"unit": "min",
101+
"timestamp": "2025-11-14T02:27:39.046Z"
102+
}
103+
},
104+
"washerOperatingState": {
105+
"completionTime": {
106+
"value": "2025-11-14T03:10:39Z",
107+
"timestamp": "2025-11-14T02:27:39.046Z"
108+
},
109+
"machineState": {
110+
"value": "stop",
111+
"timestamp": "2025-11-14T02:27:39.046Z"
112+
},
113+
"washerJobState": {
114+
"value": "none",
115+
"timestamp": "2025-11-14T02:27:39.046Z"
116+
},
117+
"supportedMachineStates": {
118+
"value": null
119+
}
120+
},
121+
"switch": {
122+
"switch": {
123+
"value": null
124+
}
125+
}
126+
},
127+
"main": {
128+
"ocf": {
129+
"st": {
130+
"value": null
131+
},
132+
"mndt": {
133+
"value": null
134+
},
135+
"mnfv": {
136+
"value": null
137+
},
138+
"mnhw": {
139+
"value": null
140+
},
141+
"di": {
142+
"value": "C097276D-C8D4-0000-0000-000000000000",
143+
"timestamp": "2025-11-14T02:27:38.956Z"
144+
},
145+
"mnsl": {
146+
"value": null
147+
},
148+
"dmv": {
149+
"value": "res.1.1.0,sh.1.1.0",
150+
"timestamp": "2025-11-14T02:27:38.956Z"
151+
},
152+
"n": {
153+
"value": "Washer",
154+
"timestamp": "2025-11-14T02:27:38.956Z"
155+
},
156+
"mnmo": {
157+
"value": "TP6X_WV60M9900AV|20198041|20020001001111060100000000000000",
158+
"timestamp": "2025-11-14T02:27:38.956Z"
159+
},
160+
"vid": {
161+
"value": "DA-WM-WM-100002",
162+
"timestamp": "2025-11-14T02:27:38.956Z"
163+
},
164+
"mnmn": {
165+
"value": "Samsung Electronics",
166+
"timestamp": "2025-11-14T02:27:38.956Z"
167+
},
168+
"mnml": {
169+
"value": null
170+
},
171+
"mnpv": {
172+
"value": null
173+
},
174+
"mnos": {
175+
"value": null
176+
},
177+
"pi": {
178+
"value": "shp",
179+
"timestamp": "2025-11-14T02:27:38.956Z"
180+
},
181+
"icv": {
182+
"value": "core.1.1.0",
183+
"timestamp": "2025-11-14T02:27:38.956Z"
184+
}
185+
},
186+
"remoteControlStatus": {
187+
"remoteControlEnabled": {
188+
"value": "true",
189+
"timestamp": "2025-11-14T02:38:36.210Z"
190+
}
191+
},
192+
"samsungce.driverVersion": {
193+
"versionNumber": {
194+
"value": 22100103,
195+
"timestamp": "2025-11-14T02:27:38.980Z"
196+
}
197+
},
198+
"refresh": {},
199+
"samsungce.washerOperatingState": {
200+
"washerJobState": {
201+
"value": "spin",
202+
"timestamp": "2025-11-14T02:27:39.112Z"
203+
},
204+
"operatingState": {
205+
"value": "running",
206+
"timestamp": "2025-11-14T02:27:39.112Z"
207+
},
208+
"supportedOperatingStates": {
209+
"value": ["ready", "running", "paused"],
210+
"timestamp": "2025-11-14T02:27:39.112Z"
211+
},
212+
"scheduledJobs": {
213+
"value": null
214+
},
215+
"scheduledPhases": {
216+
"value": null
217+
},
218+
"progress": {
219+
"value": null
220+
},
221+
"remainingTimeStr": {
222+
"value": "00:05",
223+
"timestamp": "2025-11-14T02:27:39.112Z"
224+
},
225+
"washerJobPhase": {
226+
"value": null
227+
},
228+
"operationTime": {
229+
"value": null
230+
},
231+
"remainingTime": {
232+
"value": 5,
233+
"unit": "min",
234+
"timestamp": "2025-11-14T02:27:39.112Z"
235+
}
236+
},
237+
"washerOperatingState": {
238+
"completionTime": {
239+
"value": "2025-11-14T02:32:39Z",
240+
"timestamp": "2025-11-14T02:27:39.112Z"
241+
},
242+
"machineState": {
243+
"value": "run",
244+
"timestamp": "2025-11-14T02:27:39.112Z"
245+
},
246+
"washerJobState": {
247+
"value": "spin",
248+
"timestamp": "2025-11-14T02:27:39.112Z"
249+
},
250+
"supportedMachineStates": {
251+
"value": null
252+
}
253+
},
254+
"switch": {
255+
"switch": {
256+
"value": null
257+
}
258+
}
259+
}
260+
}
261+
}
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"items": [
3+
{
4+
"deviceId": "C097276D-C8D4-0000-0000-000000000000",
5+
"name": "Washer",
6+
"label": "Washer",
7+
"manufacturerName": "Samsung Electronics",
8+
"presentationId": "DA-WM-WM-100002",
9+
"deviceManufacturerCode": "Samsung Electronics",
10+
"locationId": "600f7b9a-81f4-469a-bd36-b516160bc114",
11+
"ownerId": "506a8ee1-c1cb-d9f2-77fa-e50b13541832",
12+
"roomId": "7af56bf7-532c-45c5-8c51-2ed1cd7ac267",
13+
"deviceTypeName": "Samsung OCF Washer",
14+
"components": [
15+
{
16+
"id": "main",
17+
"label": "main",
18+
"capabilities": [
19+
{
20+
"id": "ocf",
21+
"version": 1
22+
},
23+
{
24+
"id": "refresh",
25+
"version": 1
26+
},
27+
{
28+
"id": "switch",
29+
"version": 1
30+
},
31+
{
32+
"id": "remoteControlStatus",
33+
"version": 1
34+
},
35+
{
36+
"id": "washerOperatingState",
37+
"version": 1
38+
},
39+
{
40+
"id": "samsungce.driverVersion",
41+
"version": 1
42+
},
43+
{
44+
"id": "samsungce.washerOperatingState",
45+
"version": 1
46+
}
47+
],
48+
"categories": [
49+
{
50+
"name": "Washer",
51+
"categoryType": "manufacturer"
52+
}
53+
],
54+
"optional": false
55+
},
56+
{
57+
"id": "sub",
58+
"label": "sub",
59+
"capabilities": [
60+
{
61+
"id": "ocf",
62+
"version": 1
63+
},
64+
{
65+
"id": "refresh",
66+
"version": 1
67+
},
68+
{
69+
"id": "switch",
70+
"version": 1
71+
},
72+
{
73+
"id": "remoteControlStatus",
74+
"version": 1
75+
},
76+
{
77+
"id": "washerOperatingState",
78+
"version": 1
79+
},
80+
{
81+
"id": "samsungce.driverVersion",
82+
"version": 1
83+
},
84+
{
85+
"id": "samsungce.washerOperatingState",
86+
"version": 1
87+
}
88+
],
89+
"categories": [
90+
{
91+
"name": "Other",
92+
"categoryType": "manufacturer"
93+
}
94+
],
95+
"optional": false
96+
}
97+
],
98+
"createTime": "2025-11-14T02:27:38.701Z",
99+
"profile": {
100+
"id": "b238b509-7dac-3117-b872-5e30b1efdd34"
101+
},
102+
"ocf": {
103+
"ocfDeviceType": "oic.d.washer",
104+
"name": "Washer",
105+
"specVersion": "core.1.1.0",
106+
"verticalDomainSpecVersion": "res.1.1.0,sh.1.1.0",
107+
"manufacturerName": "Samsung Electronics",
108+
"modelNumber": "TP6X_WV60M9900AV|20198041|20020001001111060100000000000000",
109+
"vendorId": "DA-WM-WM-100002",
110+
"lastSignupTime": "2025-11-14T02:27:38.459592109Z",
111+
"transferCandidate": false,
112+
"additionalAuthCodeRequired": false
113+
},
114+
"type": "OCF",
115+
"restrictionTier": 0,
116+
"allowed": null,
117+
"executionContext": "CLOUD",
118+
"relationships": []
119+
}
120+
],
121+
"_links": {}
122+
}

0 commit comments

Comments
 (0)