| | |
| | | }
|
| | |
|
| | | //添加房间,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | | UserView.UserPage.Instance.RefreshAllForm = true;
|
| | |
|
| | | HdlRoomLogic.Current.AddRoom(newRoom);
|
| | | this.FinishEditorEvent?.Invoke();
|
| | |
| | | {
|
| | | //获取温度传感器
|
| | | if (device is ZigBee.Device.TemperatureSensor && ((ZigBee.Device.TemperatureSensor)device).SensorDiv == 1)
|
| | | {
|
| | | listDevice.Add(device);
|
| | | }
|
| | | //PM2.5是温度和湿度合在同一个端点
|
| | | else if (device.Type == ZigBee.Device.DeviceType.PMSensor)
|
| | | {
|
| | | listDevice.Add(device);
|
| | | }
|
| | |
| | | {
|
| | | listDevice.Add(device);
|
| | | }
|
| | | //新风
|
| | | else if (device.Type == ZigBee.Device.DeviceType.FreshAirHumiditySensor)
|
| | | {
|
| | | listDevice.Add(device);
|
| | | }
|
| | | //PM2.5是温度和湿度合在同一个端点
|
| | | else if (device.Type == ZigBee.Device.DeviceType.PMSensor)
|
| | | {
|
| | | listDevice.Add(device);
|
| | | }
|
| | | }
|
| | | var listSelect = new List<string>() { newRoom.HumidityDevice };
|
| | | var form = new SelectDeviceForm();
|