node-red-contrib-tuya-local icon indicating copy to clipboard operation
node-red-contrib-tuya-local copied to clipboard

JSON Request for Requesting current data from SmartPlug

Open Idefix0496 opened this issue 4 years ago • 3 comments

Hi, I would really like to know how on Earth I can Request the Current Values (Voltage, Current, etc.) from my SmartPlug. In node Red the Plug is configured and working but I'm only getting real time Values if I have the App open. With {"set":true, "dps": 1} and {"set":false, "dps": 1} I can switch the Plug On an Off. So my question is what the JSON Request for Requesting all or just a particular set of Data looks like.

Idefix0496 avatar May 20 '20 11:05 Idefix0496

Not all smart plugs report power usage. If is not coming out on normal usage when is on and on load I think it doesn’t have capability.

subzero79 avatar May 20 '20 12:05 subzero79

Hi, thanks for the fast Reply. The PowerPlug is perfectly capable of Measuring these Values. As I have stated earlier, If I have the App open and the Powermeter of the SmartPlug selected, NodeRed is Displaying all the Data under Payload in the Debug Screen. My Problem is to How to Request these messages manually.

EDIT: I've fidlled around with Commands like "get" and "schema" but I'm always getting a JSON Error in the Injection Node.

Idefix0496 avatar May 20 '20 13:05 Idefix0496

If i am not mistaken just sent a payload with a string "request".

subzero79 avatar May 20 '20 23:05 subzero79