diff --git a/lib/light_accessory.js b/lib/light_accessory.js index f6b6f115..347161c1 100644 --- a/lib/light_accessory.js +++ b/lib/light_accessory.js @@ -194,9 +194,9 @@ class LightAccessory extends BaseAccessory { for (var statusMap of this.statusArr) { switch (statusMap.code) { case 'bright_value': - if (this.deviceCategorie == 'dj') { + if (this.deviceCategorie == 'dj' || this.deviceCategorie == 'dc') { defaultBrightRange = { 'min': 25, 'max': 255 } - } else if (this.deviceCategorie == 'xdd' || this.deviceCategorie == 'fwd' || this.deviceCategorie == 'tgq' || this.deviceCategorie == 'dd' || this.deviceCategorie == 'dc' || this.deviceCategorie == 'tgkg') { + } else if (this.deviceCategorie == 'xdd' || this.deviceCategorie == 'fwd' || this.deviceCategorie == 'tgq' || this.deviceCategorie == 'dd' || this.deviceCategorie == 'tgkg') { defaultBrightRange = { 'min': 10, 'max': 1000 } } break; @@ -205,9 +205,9 @@ class LightAccessory extends BaseAccessory { defaultBrightRange = { 'min': 10, 'max': 1000 } break; case 'temp_value': - if (this.deviceCategorie == 'dj') { + if (this.deviceCategorie == 'dj' || this.deviceCategorie == 'dc') { defaultTempRange = { 'min': 0, 'max': 255 } - } else if (this.deviceCategorie == 'xdd' || this.deviceCategorie == 'fwd' || this.deviceCategorie == 'dd' || this.deviceCategorie == 'dc') { + } else if (this.deviceCategorie == 'xdd' || this.deviceCategorie == 'fwd' || this.deviceCategorie == 'dd') { defaultTempRange = { 'min': 0, 'max': 1000 } } break; @@ -215,10 +215,10 @@ class LightAccessory extends BaseAccessory { defaultTempRange = { 'min': 0, 'max': 1000 } break; case 'colour_data': - if (this.deviceCategorie == 'dj') { + if (this.deviceCategorie == 'dj' || this.deviceCategorie == 'dc') { defaultSaturationRange = { 'min': 0, 'max': 255 } defaultBrightRange = { 'min': 25, 'max': 255 } - } else if (this.deviceCategorie == 'xdd' || this.deviceCategorie == 'fwd' || this.deviceCategorie == 'dd' || this.deviceCategorie == 'dc') { + } else if (this.deviceCategorie == 'xdd' || this.deviceCategorie == 'fwd' || this.deviceCategorie == 'dd') { defaultSaturationRange = { 'min': 0, 'max': 1000 } defaultBrightRange = { 'min': 10, 'max': 1000 } }