Describe the bug
When creating device that include hsb type of data tuya-mqtt crash with error:
tuya-mqtt:info Exit code: TypeError: Cannot read properties of undefined (reading 'val')
To Reproduce
Steps to reproduce the behavior:
add generic device in devices.conf with topic type hsb
start tuya-mqtt
first debug level
in tuya-devices.js line 288
state.push((components[i] === 's' && this.dps[this.config.dpsMode].val === 'white') ? 0 : this.color[components[i]])
for generic devices dspMode does not exist since template proerty is used.
but even by commenting this line color is allway set to 0,0,0
Describe the bug When creating device that include hsb type of data tuya-mqtt crash with error:
tuya-mqtt:info Exit code: TypeError: Cannot read properties of undefined (reading 'val')
To Reproduce Steps to reproduce the behavior:
first debug level in tuya-devices.js line 288
state.push((components[i] === 's' && this.dps[this.config.dpsMode].val === 'white') ? 0 : this.color[components[i]])
for generic devices dspMode does not exist since template proerty is used. but even by commenting this line color is allway set to 0,0,0