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
47 stars 15 forks source link

GET response the same for schema and DPS ID #134

Open lgwapnitsky opened 10 months ago

lgwapnitsky commented 10 months ago

When I try the following code injection, the response is the same as {"operation":"GET","schema":true}:

{"operation":"GET" , "dps": 1}

Output:

{"data":{"devId":"37307038a4e57cae2684","dps":{"1":true,"7":0,"101":"sense","102":"sense","103":"sense","104":"sense","105":"sense","106":"sense","107":"sense","108":"sense","110":"sense","111":"sense","112":"sense","113":"sense"}},"deviceId":"37307038a4e57cae2684","deviceName":"office controller"}

Am I missing something? I've tested on multiple devices with the same results.

msillano commented 10 months ago

Any Tuya device, any DP can have its own behavior. I too have encountered devices with this irregular behavior. Each GET responds as if it were a SCHEMA. e.g.

We need to adapt.

yin583014830 commented 10 months ago

image The above figure is for reference, and all DPS instructions for this device can be obtained

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.