1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
| using System;
| using System.Collections.Generic;
| using System.Linq;
| using System.Text;
|
| namespace HDL_ON
| {
| /// <summary>
| /// 设备模块类型
| /// </summary>
| public enum ModuleType
| {
| UnKown = int.MaxValue,
|
| /// <summary>
| /// 面板设备
| /// </summary>
| YIPanel = 0x0001,
| }
|
| /// <summary>
| /// 场景类型
| /// </summary>
| public enum SceneType
| {
| /// <summary>
| /// 普通场景
| /// </summary>
| OrdinaryScenes = 0x01,
| /// <summary>
| /// 电影changing
| /// </summary>
| MovieScene = 0x02,
| }
|
| /// <summary>
| /// 功能类型
| /// </summary>
| public enum FunctionType
| {
| UnKown = int.MaxValue,
|
|
| /// <summary>
| /// 场景
| /// </summary>
| Scene = 1,
| /// <summary>
| /// 逻辑
| /// </summary>
| Logic = 2,
| /// <summary>
| /// 安防
| /// </summary>
| Security = 3,
| /// <summary>
| /// 灯光
| /// </summary>
| Light = 0x04,
| /// <summary>
| /// 窗帘
| /// </summary>
| Curtain = 0x05,
| /// <summary>
| /// 空调
| /// </summary>
| AC = 0x06,
| /// <summary>
| /// 地热
| /// </summary>
| FloorHeating = 0x07,
| /// <summary>
| /// 新风
| /// </summary>
| FreshAir = 0x08,
| /// <summary>
| /// 按键
| /// </summary>
| Key = 0x09,
| /// <summary>
| /// 音乐
| /// </summary>
| Music = 0x0A,
| /// <summary>
| /// 传感器
| /// </summary>
| Sensor = 0x0B,
| /// <summary>
| /// 门锁
| /// </summary>
| DoorLook = 0x0C,
| /// <summary>
| /// 时间
| /// </summary>
| Timer = 0x0D,
| /// <summary>
| /// 计数器
| /// </summary>
| Counter = 0x0E,
| /// <summary>
| /// 地理围栏
| /// </summary>
| GeographicalFence = 0x0F,
| /// <summary>
| /// 干接点
| /// </summary>
| DryContact = 0x10,
| /// <summary>
| /// 红外
| /// </summary>
| IR = 0x11,
| /// <summary>
| /// DMX
| /// </summary>
| DMX = 0x12,
| /// <summary>
| /// 电器
| /// </summary>
| EelectricAppliance = 0x13,
| /// <summary>
| /// 天气
| /// </summary>
| Weather = 0x14,
|
| }
|
| /// <summary>
| /// 设备类型
| /// </summary>
| public enum DeviceType
| {
| //新加
| SonosMusic = 0x1111,
|
|
| MechanicalSwitch = 0x1200,
| AutomaticSwitch = 0x1201,
| DoorLockID = 0x1202,
|
|
| UnKown = int.MaxValue,
|
| /// <summary>
| /// 窗帘模块
| /// </summary>
| CurtainModel = 0x0202,
| /// <summary>
| /// 开合帘电机
| /// </summary>
| CurtainTrietex = 0x0200,
| /// <summary>
| /// 卷帘
| /// </summary>
| CurtainRoller = 0x0201,
| /// <summary>
| /// 调光灯
| /// </summary>
| LightDimming = 0x0100,
| /// <summary>
| /// 开关灯
| /// </summary>
| LightSwitch = 0x0101,
| LightCCT = 0x0102,
| LightRGB = 0x0103,
| LightRGBW = 0x0104,
| LightRGBandCCT = 0x0105,
| LightDALI = 0x0107,
| LightLogic = 0x0108,
| LightMixDimming = 0x0109,
| LightMixSwitch = 0x010A,
| LightEnergySwitch = 0x010B,//能源开关,带功率的继电器
| LightSwitchSocket = 0x0188,//自定义特殊的继电器,作插座使用
| /// <summary>
| /// 窗帘
| /// </summary>
| //Curtain = 0x0200,
| /// <summary>
| /// The AC device.
| /// </summary>
| ACDevice = 0x07FF,
| /// <summary>
| /// AC模块
| /// </summary>
| HVAC = 0x0700,
| /// <summary>
| /// 通用空调面板
| /// </summary>
| ACPanel = 0x0703,
| /// <summary>
| /// 红外空调
| /// </summary>
| ACInfrared = 0x0702,
| /// <summary>
| /// The AC coolmaster控制模块
| /// </summary>
| ACCoolmaster = 0x0701,
| /// <summary>
| /// 地热
| /// </summary>
| FoolHeat = 0x0800,
| /// <summary>
| /// 常规地热面板
| /// </summary>
| FoolHeatPanel = 0x0801,
| /// <summary>
| /// 新风系统
| /// </summary>
| FreshAir = 0x1300,
|
|
| /// <summary>
| /// 无线网关
| /// </summary>
| OnePortWirelessFR = 0xFE01,
| OnePortBus = 0xFE00,
| RCU = 0xFE04,
| SuperWireless = 0xFE05,
| DMX48 = 0xFD04,
| /// <summary>
| /// 按键面板
| /// </summary>
| ButtonPanel = 0x0401,
|
| /// <summary>
| /// 干接点
| /// </summary>
| DryContact = 0x0400,
|
| /// <summary>
| /// 毛细血管空调
| /// </summary>
| Thermostat = 0x0705,
|
| //WirelessNetManage = 0x1D34,
| MusicModel = 0x0900,
| MusicPanel = 0x0902,
| MusicA31 = 0x0903,
|
| InfraredMode = 0x0300,
| A31MusicModel = 0x0901,
|
| InfraredTV = 0x0305,
| InfraredSTB = 0x0303,
| InfraredProjetor = 0x0301,
|
| /// <summary>
| /// 安防模块
| /// </summary>
| SecurityModule = 0x0A00,
| /// <summary>
| /// 安防面板
| /// </summary>
| SecurityPanel = 0x0A02,
|
| /// <summary>
| /// 风扇模块
| /// </summary>
| FanModule = 0x1000,
|
| /// <summary>
| /// 逻辑控制模块
| /// </summary>
| LogicModule = 0x0C00,
|
| /// <summary>
| /// 通用开关
| /// </summary>
| UniversalDevice = 0x6400,
|
|
| DoorLock = 0x1203,
|
| /// <summary>
| /// The sensor.
| /// </summary>
| Sensor = 0x0500,
| /// <summary>
| /// 移动探测(01)
| /// </summary>
| SensorMobileDetection = 0x0501,
| /// <summary>
| /// 温度
| /// </summary>
| SensorTemperature = 0x0502,
| /// <summary>
| /// 湿度
| /// </summary>
| SensorHumidity = 0x0503,
| /// <summary>
| /// 光照
| /// </summary>
| SensorIllumination =0x0504,
| /// <summary>
| /// VOC(05)
| /// </summary>
| SensorTVOC = 0x0505,
| /// <summary>
| /// The sensor PM 25.
| /// </summary>
| SensorPM25 = 0x0506,
| /// <summary>
| /// The sensor CO2.
| /// </summary>
| SensorCO2 = 0x0507,
| /// <summary>
| /// 液化石油气(LPG)(08)
| /// </summary>
| SensorLPG = 0x0508,
| /// <summary>
| /// 人工煤气(CO,H2)(09)
| /// </summary>
| SensorCOH2 = 0x0509,
| /// <summary>
| /// 天然气(CH4)(10)
| /// </summary>
| SensorCH4 = 0x0510,
| /// <summary>
| /// 烟雾(11)
| /// </summary>
| SensorSmoke = 0x0511,
| /// <summary>
| /// 风速(12)
| /// </summary>
| SensorWindSpeed = 0x0512,
| /// <summary>
| /// 风压(13)
| /// </summary>
| SensorWindPressure = 0x0513,
| /// <summary>
| /// 液体流量(14)
| /// </summary>
| SensorLiquidFlow = 0x0514,
| /// <summary>
| /// 液体压力(15)
| /// </summary>
| SensorLiquidPressure = 0x0515,
| /// <summary>
| /// 液体深度(16)
| /// </summary>
| SensorLiquidDepth = 0x0516,
| /// <summary>
| /// 雨量(17)
| /// </summary>
| SensorRainfall = 0x0517,
| /// <summary>
| /// 重量
| /// </summary>
| SensorWeight = 0x0518,
| /// <summary>
| /// 高度/长度
| /// </summary>
| SensorHeightLength = 0x0519,
| /// <summary>
| /// 物体速度(20)
| /// </summary>
| SensorVelocity = 0x0520,
| /// <summary>
| /// 震动(21)
| /// </summary>
| SensorVibration = 0x0521,
| /// <summary>
| /// 电压
| /// </summary>
| SensorVoltage = 0x0522,
| /// <summary>
| /// 电流
| /// </summary>
| SensorCurrent = 0x0523,
| /// <summary>
| /// 功率
| /// </summary>
| SensorPower = 0x0524,
| /// <summary>
| /// 水浸(25)
| /// </summary>
| SensorWater = 0x0525,
| /// <summary>
| /// 门磁、窗磁(26)
| /// </summary>
| SensorMenciAndwindowMagnetic = 0x0526,
|
| }
|
| public enum InfraredCode_TV
| {
| VolDown = 1,
| ChannelUp,//00002=频道+
| Menu,//00003=菜单
| ChannelDown,//00004=频道-
| VolUp,//00005=音量+
| Power,//00006=电源键
| Mute,//00007=静音
| One,//00008=1
| Two,//00009=2
| Three,//00010=3
| Four,//00011=4
| Five,//00012=5
| Six,//00013=6
| Seven,//00014=7
| Eight,//00015=8
| Nine,//00016=9
| Change,//00017=-/--
| Zero,//00018=0
| AV_TV,//00019=AV/TV
| Back,//00020=返回
| Confrim,//00021=确定
| Up,//00022=上
| Left,//00023=左
| Right,//00024=右
| Down,//00025=下
| }
|
| public enum InfraredCode_STB
| {
| Standby = 1,
| One,
| Two,
| Three,
| Four,
| Five,
| Six,
| Seven,
| Eight,
| Nine,
| //Change,
| HomePage,
| Zero,
| Back,
| Up,
| Left,
| Confrim,
| Right,
| Down,
| VolUp,
| VolDown,
| ChannelUp,
| ChannelDown,
| Menu,
| }
| }
|
|