1{ 2 "schema": "https://iotx-tsl.oss-ap-southeast-1.aliyuncs.com/schema.json", 3 "profile": { 4 "version": "1.0", 5 "productKey": "a1DjPKCL3ud" 6 }, 7 "properties": [ 8 { 9 "identifier": "LightSwitch", 10 "name": "主灯开关", 11 "accessMode": "rw", 12 "required": true, 13 "dataType": { 14 "type": "bool", 15 "specs": { 16 "0": "关闭", 17 "1": "开启" 18 } 19 } 20 }, 21 { 22 "identifier": "HaaS100_LED_1", 23 "name": "HaaS100_LED_1", 24 "accessMode": "rw", 25 "required": false, 26 "dataType": { 27 "type": "bool", 28 "specs": { 29 "0": "关闭", 30 "1": "开启" 31 } 32 } 33 }, 34 { 35 "identifier": "HaaS100_LED_2", 36 "name": "HaaS100_LED_2", 37 "accessMode": "rw", 38 "required": false, 39 "dataType": { 40 "type": "bool", 41 "specs": { 42 "0": "关闭", 43 "1": "开启" 44 } 45 } 46 }, 47 { 48 "identifier": "HaaS100_LED_3", 49 "name": "HaaS100_LED_3", 50 "accessMode": "rw", 51 "required": false, 52 "dataType": { 53 "type": "bool", 54 "specs": { 55 "0": "关闭", 56 "1": "开启" 57 } 58 } 59 }, 60 { 61 "identifier": "HaaS100_LED_4", 62 "name": "HaaS100_LED_4", 63 "accessMode": "rw", 64 "required": false, 65 "dataType": { 66 "type": "bool", 67 "specs": { 68 "0": "关闭", 69 "1": "开启" 70 } 71 } 72 }, 73 { 74 "identifier": "HaaS100_LED_5", 75 "name": "HaaS100_LED_5", 76 "accessMode": "rw", 77 "required": false, 78 "dataType": { 79 "type": "bool", 80 "specs": { 81 "0": "关闭", 82 "1": "开启" 83 } 84 } 85 } 86 ], 87 "events": [ 88 { 89 "identifier": "post", 90 "name": "post", 91 "type": "info", 92 "required": true, 93 "desc": "属性上报", 94 "method": "thing.event.property.post", 95 "outputData": [ 96 { 97 "identifier": "LightSwitch", 98 "name": "主灯开关", 99 "dataType": { 100 "type": "bool", 101 "specs": { 102 "0": "关闭", 103 "1": "开启" 104 } 105 } 106 }, 107 { 108 "identifier": "HaaS100_LED_1", 109 "name": "HaaS100_LED_1", 110 "dataType": { 111 "type": "bool", 112 "specs": { 113 "0": "关闭", 114 "1": "开启" 115 } 116 } 117 }, 118 { 119 "identifier": "HaaS100_LED_2", 120 "name": "HaaS100_LED_2", 121 "dataType": { 122 "type": "bool", 123 "specs": { 124 "0": "关闭", 125 "1": "开启" 126 } 127 } 128 }, 129 { 130 "identifier": "HaaS100_LED_3", 131 "name": "HaaS100_LED_3", 132 "dataType": { 133 "type": "bool", 134 "specs": { 135 "0": "关闭", 136 "1": "开启" 137 } 138 } 139 }, 140 { 141 "identifier": "HaaS100_LED_4", 142 "name": "HaaS100_LED_4", 143 "dataType": { 144 "type": "bool", 145 "specs": { 146 "0": "关闭", 147 "1": "开启" 148 } 149 } 150 }, 151 { 152 "identifier": "HaaS100_LED_5", 153 "name": "HaaS100_LED_5", 154 "dataType": { 155 "type": "bool", 156 "specs": { 157 "0": "关闭", 158 "1": "开启" 159 } 160 } 161 } 162 ] 163 }, 164 { 165 "identifier": "Error", 166 "name": "故障上报", 167 "type": "error", 168 "required": true, 169 "method": "thing.event.Error.post", 170 "outputData": [ 171 { 172 "identifier": "ErrorCode", 173 "name": "故障代码", 174 "dataType": { 175 "type": "enum", 176 "specs": { 177 "0": "恢复正常" 178 } 179 } 180 } 181 ] 182 } 183 ], 184 "services": [ 185 { 186 "identifier": "set", 187 "name": "set", 188 "required": true, 189 "callType": "async", 190 "desc": "属性设置", 191 "method": "thing.service.property.set", 192 "inputData": [ 193 { 194 "identifier": "LightSwitch", 195 "name": "主灯开关", 196 "dataType": { 197 "type": "bool", 198 "specs": { 199 "0": "关闭", 200 "1": "开启" 201 } 202 } 203 }, 204 { 205 "identifier": "HaaS100_LED_1", 206 "name": "HaaS100_LED_1", 207 "dataType": { 208 "type": "bool", 209 "specs": { 210 "0": "关闭", 211 "1": "开启" 212 } 213 } 214 }, 215 { 216 "identifier": "HaaS100_LED_2", 217 "name": "HaaS100_LED_2", 218 "dataType": { 219 "type": "bool", 220 "specs": { 221 "0": "关闭", 222 "1": "开启" 223 } 224 } 225 }, 226 { 227 "identifier": "HaaS100_LED_3", 228 "name": "HaaS100_LED_3", 229 "dataType": { 230 "type": "bool", 231 "specs": { 232 "0": "关闭", 233 "1": "开启" 234 } 235 } 236 }, 237 { 238 "identifier": "HaaS100_LED_4", 239 "name": "HaaS100_LED_4", 240 "dataType": { 241 "type": "bool", 242 "specs": { 243 "0": "关闭", 244 "1": "开启" 245 } 246 } 247 }, 248 { 249 "identifier": "HaaS100_LED_5", 250 "name": "HaaS100_LED_5", 251 "dataType": { 252 "type": "bool", 253 "specs": { 254 "0": "关闭", 255 "1": "开启" 256 } 257 } 258 } 259 ], 260 "outputData": [] 261 }, 262 { 263 "identifier": "get", 264 "name": "get", 265 "required": true, 266 "callType": "async", 267 "desc": "属性获取", 268 "method": "thing.service.property.get", 269 "inputData": [ 270 "LightSwitch", 271 "HaaS100_LED_1", 272 "HaaS100_LED_2", 273 "HaaS100_LED_3", 274 "HaaS100_LED_4", 275 "HaaS100_LED_5" 276 ], 277 "outputData": [ 278 { 279 "identifier": "LightSwitch", 280 "name": "主灯开关", 281 "dataType": { 282 "type": "bool", 283 "specs": { 284 "0": "关闭", 285 "1": "开启" 286 } 287 } 288 }, 289 { 290 "identifier": "HaaS100_LED_1", 291 "name": "HaaS100_LED_1", 292 "dataType": { 293 "type": "bool", 294 "specs": { 295 "0": "关闭", 296 "1": "开启" 297 } 298 } 299 }, 300 { 301 "identifier": "HaaS100_LED_2", 302 "name": "HaaS100_LED_2", 303 "dataType": { 304 "type": "bool", 305 "specs": { 306 "0": "关闭", 307 "1": "开启" 308 } 309 } 310 }, 311 { 312 "identifier": "HaaS100_LED_3", 313 "name": "HaaS100_LED_3", 314 "dataType": { 315 "type": "bool", 316 "specs": { 317 "0": "关闭", 318 "1": "开启" 319 } 320 } 321 }, 322 { 323 "identifier": "HaaS100_LED_4", 324 "name": "HaaS100_LED_4", 325 "dataType": { 326 "type": "bool", 327 "specs": { 328 "0": "关闭", 329 "1": "开启" 330 } 331 } 332 }, 333 { 334 "identifier": "HaaS100_LED_5", 335 "name": "HaaS100_LED_5", 336 "dataType": { 337 "type": "bool", 338 "specs": { 339 "0": "关闭", 340 "1": "开启" 341 } 342 } 343 } 344 ] 345 } 346 ] 347}