Skip to content

Commit 92e9798

Browse files
fix(ws558): switch control downlink
1 parent 3aa4290 commit 92e9798

File tree

2 files changed

+20
-24
lines changed

2 files changed

+20
-24
lines changed

vendors/milesight-iot/ws-series/ws558/ws558-codec.json

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,14 @@
153153
"name": "Switch 1",
154154
"value": "1",
155155
"unit": "",
156-
"access_mode": "R",
156+
"access_mode": "RW",
157157
"data_type": "BOOL",
158158
"value_type": "UINT8",
159159
"values": [
160160
{ "value": 0, "name": "off" },
161161
{ "value": 1, "name": "on" }
162162
],
163-
"bacnet_type": "binary_input_object",
163+
"bacnet_type": "binary_value_object",
164164
"bacnet_unit_type_id": 95,
165165
"bacnet_unit_type": "UNITS_NO_UNITS"
166166
},
@@ -169,14 +169,14 @@
169169
"name": "Switch 2",
170170
"value": "0",
171171
"unit": "",
172-
"access_mode": "R",
172+
"access_mode": "RW",
173173
"data_type": "BOOL",
174174
"value_type": "UINT8",
175175
"values": [
176176
{ "value": 0, "name": "off" },
177177
{ "value": 1, "name": "on" }
178178
],
179-
"bacnet_type": "binary_input_object",
179+
"bacnet_type": "binary_value_object",
180180
"bacnet_unit_type_id": 95,
181181
"bacnet_unit_type": "UNITS_NO_UNITS"
182182
},
@@ -185,14 +185,14 @@
185185
"name": "Switch 3",
186186
"value": "0",
187187
"unit": "",
188-
"access_mode": "R",
188+
"access_mode": "RW",
189189
"data_type": "BOOL",
190190
"value_type": "UINT8",
191191
"values": [
192192
{ "value": 0, "name": "off" },
193193
{ "value": 1, "name": "on" }
194194
],
195-
"bacnet_type": "binary_input_object",
195+
"bacnet_type": "binary_value_object",
196196
"bacnet_unit_type_id": 95,
197197
"bacnet_unit_type": "UNITS_NO_UNITS"
198198
},
@@ -201,14 +201,14 @@
201201
"name": "Switch 4",
202202
"value": "0",
203203
"unit": "",
204-
"access_mode": "R",
204+
"access_mode": "RW",
205205
"data_type": "BOOL",
206206
"value_type": "UINT8",
207207
"values": [
208208
{ "value": 0, "name": "off" },
209209
{ "value": 1, "name": "on" }
210210
],
211-
"bacnet_type": "binary_input_object",
211+
"bacnet_type": "binary_value_object",
212212
"bacnet_unit_type_id": 95,
213213
"bacnet_unit_type": "UNITS_NO_UNITS"
214214
},
@@ -217,14 +217,14 @@
217217
"name": "Switch 5",
218218
"value": "0",
219219
"unit": "",
220-
"access_mode": "R",
220+
"access_mode": "RW",
221221
"data_type": "BOOL",
222222
"value_type": "UINT8",
223223
"values": [
224224
{ "value": 0, "name": "off" },
225225
{ "value": 1, "name": "on" }
226226
],
227-
"bacnet_type": "binary_input_object",
227+
"bacnet_type": "binary_value_object",
228228
"bacnet_unit_type_id": 95,
229229
"bacnet_unit_type": "UNITS_NO_UNITS"
230230
},
@@ -233,14 +233,14 @@
233233
"name": "Switch 6",
234234
"value": "0",
235235
"unit": "",
236-
"access_mode": "R",
236+
"access_mode": "RW",
237237
"data_type": "BOOL",
238238
"value_type": "UINT8",
239239
"values": [
240240
{ "value": 0, "name": "off" },
241241
{ "value": 1, "name": "on" }
242242
],
243-
"bacnet_type": "binary_input_object",
243+
"bacnet_type": "binary_value_object",
244244
"bacnet_unit_type_id": 95,
245245
"bacnet_unit_type": "UNITS_NO_UNITS"
246246
},
@@ -249,14 +249,14 @@
249249
"name": "Switch 7",
250250
"value": "0",
251251
"unit": "",
252-
"access_mode": "R",
252+
"access_mode": "RW",
253253
"data_type": "BOOL",
254254
"value_type": "UINT8",
255255
"values": [
256256
{ "value": 0, "name": "off" },
257257
{ "value": 1, "name": "on" }
258258
],
259-
"bacnet_type": "binary_input_object",
259+
"bacnet_type": "binary_value_object",
260260
"bacnet_unit_type_id": 95,
261261
"bacnet_unit_type": "UNITS_NO_UNITS"
262262
},
@@ -265,14 +265,14 @@
265265
"name": "Switch 8",
266266
"value": "0",
267267
"unit": "",
268-
"access_mode": "R",
268+
"access_mode": "RW",
269269
"data_type": "BOOL",
270270
"value_type": "UINT8",
271271
"values": [
272272
{ "value": 0, "name": "off" },
273273
{ "value": 1, "name": "on" }
274274
],
275-
"bacnet_type": "binary_input_object",
275+
"bacnet_type": "binary_value_object",
276276
"bacnet_unit_type_id": 95,
277277
"bacnet_unit_type": "UNITS_NO_UNITS"
278278
},
@@ -488,13 +488,9 @@
488488
"value": "",
489489
"unit": "",
490490
"access_mode": "W",
491-
"data_type": "BOOL",
491+
"data_type": "NUMBER",
492492
"value_type": "UINT8",
493-
"values": [
494-
{ "value": 0, "name": "no" },
495-
{ "value": 1, "name": "yes" }
496-
],
497-
"bacnet_type": "binary_output_object",
493+
"bacnet_type": "analog_output_object",
498494
"bacnet_unit_type_id": 95,
499495
"bacnet_unit_type": "UNITS_NO_UNITS"
500496
},

version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"date": "2025-09-18",
3-
"version": "1.5.10",
2+
"date": "2025-09-23",
3+
"version": "1.5.11",
44
"vendors": "vendors.json",
55
"link": "https://github.com/Milesight-IoT/codec/archive/refs/heads/release.zip"
66
}

0 commit comments

Comments
 (0)