public override async Task OnDeviceSettingsCreating(DeviceSettingBuilder settingBuilder)
 {
     await settingBuilder.RegisterAsync(new DeviceSetting
         {
             UniqueIdentifier = DeviceSettingUids.ShowInLightswitch.ToString(),
             Name = "Show device in LightSwitch",
             Description = "If enabled this device will show in the LightSwitch device tab.",
             ValueType = DataType.BOOL,
             Value = true.ToString()
         }, CancellationToken);
 }
 public override async Task OnDeviceSettingsCreating(DeviceSettingBuilder settingBuilder)
 {
     await settingBuilder.RegisterAsync(new DeviceSetting
         {
             UniqueIdentifier = DeviceSettingUids.ShowInWebapi.ToString(),
             Name = "Show device in Web API",
             Description = "If enabled this device will show in applications that use the Web API",
             ValueType = DataType.BOOL,
             Value = Cache.ShowInWebapiDefaultValue.ToString()
         }, CancellationToken);
 }