| | |
| | | } |
| | | foreach (var deviceKeys in r.ListDevice) |
| | | { |
| | | var device = LocalDevice.Current.GetDevice(deviceKeys); |
| | | var device = HdlDeviceCommonLogic.Current.GetDevice(deviceKeys); |
| | | if (device != null) |
| | | { |
| | | var dev = device.InClusterList.Find(obj => (obj != null) && (obj.InCluster == 6)); |
| | |
| | | } |
| | | foreach (var deviceKeys in r.ListDevice) |
| | | { |
| | | var device = LocalDevice.Current.GetDevice(deviceKeys); |
| | | var device = HdlDeviceCommonLogic.Current.GetDevice(deviceKeys); |
| | | if (device != null) |
| | | { |
| | | var dev = device.InClusterList.Find(obj => (obj != null) && (obj.InCluster == 8)); |
| | |
| | | } |
| | | foreach (var deviceKeys in r.ListDevice) |
| | | { |
| | | var device = LocalDevice.Current.GetDevice(deviceKeys); |
| | | var device = HdlDeviceCommonLogic.Current.GetDevice(deviceKeys); |
| | | if (device != null) |
| | | { |
| | | var dev = device.InClusterList.Find(obj => (obj != null) && (obj.InCluster == 258)); |
| | |
| | | case "AddSwitch": |
| | | foreach (var deviceKeys in curRoom.ListDevice) |
| | | { |
| | | var device = LocalDevice.Current.GetDevice(deviceKeys); |
| | | var device = HdlDeviceCommonLogic.Current.GetDevice(deviceKeys); |
| | | if (device != null) |
| | | { |
| | | var dev = device.InClusterList.Find(obj => (obj != null) && (obj.InCluster == 6)); |
| | |
| | | case "AddDimmer": |
| | | foreach (var deviceKeys in curRoom.ListDevice) |
| | | { |
| | | var device = LocalDevice.Current.GetDevice(deviceKeys); |
| | | var device = HdlDeviceCommonLogic.Current.GetDevice(deviceKeys); |
| | | if (device != null) |
| | | { |
| | | var dev = device.InClusterList.Find(obj => (obj != null) && (obj.InCluster == 8)); |
| | |
| | | case "AddCurtain": |
| | | foreach (var deviceKeys in curRoom.ListDevice) |
| | | { |
| | | var device = LocalDevice.Current.GetDevice(deviceKeys); |
| | | var device = HdlDeviceCommonLogic.Current.GetDevice(deviceKeys); |
| | | if (device != null) |
| | | { |
| | | var dev = device.InClusterList.Find(obj => (obj != null) && (obj.InCluster == 258)); |
| | |
| | | TextColor = Shared.Common.ZigbeeColor.Current.TextBlack, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Tag = device.DeviceEpointName, |
| | | Text = Common.LocalDevice.Current.GetDeviceEpointName(device), |
| | | Text = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device), |
| | | TextSize = 15, |
| | | }; |
| | | rowLayout.AddChidren(btnBindName); |