|
|
@ -483,11 +483,15 @@ namespace IoTNode.DeviceServices.FBee
|
|
|
|
deviceName = "烟雾报警器";
|
|
|
|
deviceName = "烟雾报警器";
|
|
|
|
deviceIcon = "smoke";
|
|
|
|
deviceIcon = "smoke";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (zoneType == 0x000d || zoneType == 0x00ff)
|
|
|
|
else if (zoneType == 0x000d)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
deviceName = "人体感应器";
|
|
|
|
deviceName = "人体感应器";
|
|
|
|
deviceIcon = "infrared";
|
|
|
|
deviceIcon = "infrared";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
deviceName = null;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (deviceId == 0x002)
|
|
|
|
else if (deviceId == 0x002)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -507,6 +511,10 @@ namespace IoTNode.DeviceServices.FBee
|
|
|
|
deviceIcon = "switch3";
|
|
|
|
deviceIcon = "switch3";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(deviceName))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
var productNumber = $"fbee:{deviceType.RawDeviceId.ToString("x4")}:{zoneType.ToString("x2")}";
|
|
|
|
var productNumber = $"fbee:{deviceType.RawDeviceId.ToString("x4")}:{zoneType.ToString("x2")}";
|
|
|
|
var number = deviceType.RawDeviceId;
|
|
|
|
var number = deviceType.RawDeviceId;
|
|
|
|
var categoryRepo = scope.ServiceProvider.GetService<IRepository<Category>>();
|
|
|
|
var categoryRepo = scope.ServiceProvider.GetService<IRepository<Category>>();
|
|
|
|