Using node-red-contrib-tuya-smart-device how to do a GET query?

I am using the following nodes...
https://github.com/vinodsr/node-red-contrib-tuya-smart-device

And I can't seem to get a 'GET' query to work, the way I read the TUYA API the following should work...

msg.payload={
    get: {}
    dps:1
}

The following works for a 'SET' command...

msg.payload={
    set: true
    dps:1
}

Since the nodes available can't see to query the state of the Smart IoT device, but 'GET' command is referenced, with no example of GET use at all unfortunately, just a link to the TUYA API, which just says a GET query with empty options '{}' should return all the information available for the device in question.

msg.payload = {operation: 'GET', dps: 1}

Thanks! I finally figured out what I was reading into it... I was trying to transpose TUYA API javascript to NR.... not good. LOL!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.