黄学彪
2020-06-18 2450c12c825ad4d78d1572da2fa421706db2df2f
ZigbeeApp/Shared/Common/Device.cs
@@ -2432,7 +2432,7 @@
        /// <returns></returns>
        public bool IsMiniLight(CommonDevice device)
        {
            return device.DeviceAddr == "3737363534333231";
            return device.DriveCode != 0 && device.Type == DeviceType.ColorTemperatureLight;
        }
        /// <summary>
@@ -2876,6 +2876,7 @@
            else if (deviceType == DeviceType.PMSensor) { device = new PMSensor(); }
            else if (deviceType == DeviceType.FreshAirHumiditySensor) { device = new HumiditySensor(); }
            else if (deviceType == DeviceType.ColorTemperatureLight) { device = new ColorTemperatureLight(); }
            else if (deviceType == DeviceType.Buzzer) { device = new Buzzer(); }
            else if (deviceType == DeviceType.OtaDevice || deviceType == DeviceType.OtaPanelDevice) { device = new OTADevice(); }
            else { return null; }