hgross / node-red-contrib-tuya-smart

NodeRED nodes to get data from tuya smart devices (like smart plugs, bulbs, ...).
MIT License
43 stars 14 forks source link

Added multiple properties function #7

Closed lkwr closed 5 years ago

lkwr commented 5 years ago

Hello,

I added the functionality to set multiple properties in the same message.

Now payload can also be an array.

Usage: msg.payload = [{set: true, dpsIndex: 1},{set: 255, dpsIndex: 3},{set: "colour", dpsIndex: 2}];

Fearraiser commented 5 years ago

Thanx! It will be very useful for me!