| | |
| | | list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A3按键面板, RoomId = floorKey + "_KeTing", DeviceCount = 1 });
|
| | | list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A4按键面板, RoomId = floorKey + "_KeTing", DeviceCount = 2 });
|
| | | list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A空调网关, RoomId = floorKey + "_KeTing", DeviceCount = 1 });
|
| | | //list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A国标3路10A继电器小模块, RoomId = floorKey + "_KeTing", DeviceCount = 1 });
|
| | |
|
| | | //阳台
|
| | | list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A220pir传感器, RoomId = floorKey + "_YangTai", DeviceCount = 1 });
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public void Zigbee国标3路10A继电器小模块(int i_DeviceCount, string i_RoomId)
|
| | | {
|
| | | for (int i = 0; i < i_DeviceCount; i++)
|
| | | {
|
| | | //4个干接点
|
| | | for (int j = 1; j <= 4; j++)
|
| | | {
|
| | | var device = new Panel() { DeviceAddr = "DeviceAddr" + this.DeviceNumber, DeviceEpoint = j };
|
| | | //设置设备的基本信息
|
| | | this.SetBaseDataToDevice(device, 2000, 2000, "MLR0310-ZB.20", i_RoomId);
|
| | | }
|
| | | //3个继电器
|
| | | for (int j = 5; j <= 7; j++)
|
| | | {
|
| | | var device = new ToggleLight() { DeviceAddr = "DeviceAddr" + this.DeviceNumber, DeviceEpoint = j };
|
| | | device.DfunctionType = DeviceFunctionType.A灯光;
|
| | | //设置设备的基本信息
|
| | | this.SetBaseDataToDevice(device, 2000, 2000, "MLR0310-ZB.20", i_RoomId);
|
| | | device.DeviceEpointName = Language.StringByID(R.MyInternationalizationString.uLight) + (j - 4);
|
| | | }
|
| | |
|
| | | this.DeviceNumber++;
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 设置设备的基本信息
|
| | | /// </summary>
|
| | |
| | | A方悦新风面板 = 25,
|
| | | A方悦新风小模块 = 26,
|
| | | A吸顶燃气传感器 = 27,
|
| | | A国标3路10A继电器小模块 = 28,
|
| | | }
|
| | |
|
| | | #endregion
|