mirror of
https://github.com/lehanspb/tuya-mqtt.git
synced 2025-12-16 17:54:36 +00:00
More RGBTW tweaks
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user