diff --git a/tuya-mqtt.js b/tuya-mqtt.js index 5bb8afa..dea628f 100644 --- a/tuya-mqtt.js +++ b/tuya-mqtt.js @@ -31,7 +31,6 @@ async function processExit(exitCode) { } // Get new deivce based on configured type -// For Tuya Gateway use GenericDevice function getDevice(configDevice, mqttClient) { const deviceInfo = { configDevice: configDevice, @@ -166,6 +165,11 @@ const main = async() => { const dpsKey = splitTopic[topicLength-2] device.processDpsKeyCommand(message, dpsKey) break; + case 6: + const subDevDpsKey = splitTopic[topicLength-2] + const cidName = splitTopic[topicLength-4] + device.processDpsKeyWcidNameCommand(message, subDevDpsKey, cidName) + break; } } } catch (e) {