More RGBTW tweaks

This commit is contained in:
tsightler
2020-10-05 02:05:34 -04:00
parent 3705efaaed
commit 4ff6fc221e
2 changed files with 33 additions and 19 deletions

View File

@@ -26,7 +26,7 @@ class RGBTWLight extends TuyaDevice {
white_value_state: {
key: this.config.dpsWhiteValue,
type: 'int',
min: (this.config.whiteValueScale = 1000) ? 10 : 1,
min: (this.config.whiteValueScale == 1000) ? 10 : 1,
max: this.config.whiteValueScale,
scale: this.config.whiteValueScale
},
@@ -40,6 +40,11 @@ class RGBTWLight extends TuyaDevice {
type: this.config.colorType,
components: 'b'
},
hsb_state: {
key: this.config.dpsColor,
type: this.config.colorType,
components: 'h,s,b'
},
mode_state: {
key: this.config.dpsMode,
type: 'str'