| | |
| | | list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A烟雾传感器, RoomId = floorKey + "_ChuFang", DeviceCount = 1 }); |
| | | list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A燃气传感器, RoomId = floorKey + "_ChuFang", DeviceCount = 1 }); |
| | | list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A吸顶燃气传感器, RoomId = floorKey + "_ChuFang", DeviceCount = 1 }); |
| | | list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A国标3路10A继电器小模块, RoomId = floorKey + "_ChuFang", DeviceCount = 1 }); |
| | | |
| | | //走廊 |
| | | list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A4按键面板, RoomId = floorKey + "_ZouLang", DeviceCount = 1 }); |
| | | list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A温湿度传感器, RoomId = floorKey + "_ZouLang", DeviceCount = 1 }); |
| | | } |
| | | return list; |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | public void Zigbee温湿度传感器(int i_DeviceCount, string i_RoomId) |
| | | { |
| | | for (int i = 0; i < i_DeviceCount; i++) |
| | | { |
| | | //湿度 |
| | | var device1 = new TemperatureSensor() { DeviceAddr = "DeviceAddr" + this.DeviceNumber, DeviceEpoint = 1, SensorDiv = 2 }; |
| | | //设置设备的基本信息 |
| | | this.SetBaseDataToDevice(device1, 1308, 1308, "MTH01/M-ZB.10", i_RoomId); |
| | | //温度 |
| | | var device2 = new TemperatureSensor() { DeviceAddr = "DeviceAddr" + this.DeviceNumber, DeviceEpoint = 2, SensorDiv = 1 }; |
| | | //设置设备的基本信息 |
| | | this.SetBaseDataToDevice(device2, 1308, 1308, "MTH01/M-ZB.10", i_RoomId); |
| | | |
| | | this.DeviceNumber++; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设置设备的基本信息 |
| | | /// </summary> |
| | |
| | | A方悦新风小模块 = 26, |
| | | A吸顶燃气传感器 = 27, |
| | | A国标3路10A继电器小模块 = 28, |
| | | A温湿度传感器 = 29, |
| | | } |
| | | |
| | | #endregion |