vinodsr / node-red-contrib-tuya-smart-device

a node-red module for managing tuya smart devices
https://flows.nodered.org/node/node-red-contrib-tuya-smart-device
MIT License
43 stars 15 forks source link

Howto pass strings to DPS keys ? #71

Closed craigcurtin-dev closed 3 years ago

craigcurtin-dev commented 3 years ago

Guys,

I have a heat pump that is controlled by Tuya. I have successfully extracted the keys and have control of it for basic functions such as ON/OFF

However some of the DPS keys require text to be sent to them DPS 2 for instance supports the following commands

silence turbo smart

I can not for the life of me work out what syntax to use in a node to pass this across to the system

ANy ideas ??

Craig

craigcurtin-dev commented 3 years ago

Anyone else looking for this - the answer is fairly straightforward in the end - put the string in inverted commad in the msg.payload also - e.g.

{"set": "silence", "dps" : 2}