Comments (9)
from node-red-contrib-tuya-smart-device.
Thaks, but any result;(
from node-red-contrib-tuya-smart-device.
This worked for me. Make sure that operation is all lowercase.
{"operation":"GET","schema":true};
from node-red-contrib-tuya-smart-device.
@2BAD2B007
Oh, thanks. I receives data from one plug, but oher plug answered with error "json obj data unvalid"
And can you help me with dps description? I know that dps 1 - status on|off, but I want to know total consumption.
from node-red-contrib-tuya-smart-device.
I have dps["1"] = on/off, dps["19"] = current power usage, dps["20"] = voltage, and dps["18"]= current. That is all I have mapped out on my plug, and I am not sure if it differs per manufacturer.
Are you still not able to to get data from the other plug? If not maybe you could paste your flow from node-red and I can see if I see the issue.
from node-red-contrib-tuya-smart-device.
@2BAD2B007
Yey, I have problem with one device, and I think that issue with nod operator. When node-red starts (after deploy, for example) tthis device answer with the same error and doesn't has eni info in array, but after
It's a very easy flow;
[{"id":"2d6d9de5.70cf22","type":"tab","label":"Flow 6","disabled":false,"info":""},{"id":"fc9462c7.eb583","type":"tuya-smart-device","z":"2d6d9de5.70cf22","deviceName":"tuya","deviceId":"bf55baca102901bd56ac9e","deviceKey":"988df2558fc7fdc0","x":560,"y":300,"wires":[["8072ac8a.d4d45"]]},{"id":"dcad92e2.92781","type":"inject","z":"2d6d9de5.70cf22","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{"operation":"GET","schema":true}","payloadType":"json","x":340,"y":300,"wires":[["fc9462c7.eb583"]]},{"id":"8072ac8a.d4d45","type":"debug","z":"2d6d9de5.70cf22","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":820,"y":300,"wires":[]}]
from node-red-contrib-tuya-smart-device.
The issue with json data unvalid is a known error with some tuya devices.
You can read more about this #14 (with a workaround. may not work in all cases)
from node-red-contrib-tuya-smart-device.
Closing the issue
from node-red-contrib-tuya-smart-device.
I have used many hours and over a month trying to get the get function to work but never any success until i read this post today. Please add this to the documentation immediately, it is horrible that it is missing from documentation and there is not any examples anywhere! I suggest this get the highest priority, this information does not deserve to be hidden in this closed issue.
However, the injection of {"operation":"GET","dps": 1} does not return only dps:1 but it returns the same as {"operation":"GET","schema": true}
Please also make a working example for the generic node this one i still dont get to work by injecting json {deviceVirtualId":"0453105460019xxxxxx","deviceIp":"","deviceKey":"1ceba1516fxxxxxx","deviceName":"DELTACO SH-P01E","operation":"GET","schema":true} it does not work.
from node-red-contrib-tuya-smart-device.
Related Issues (20)
- An unusual response - 2 HOT 1
- Node does not work in conjunction with Http in node HOT 1
- how to connect to sub-devices that are managed by a tuya gateway? HOT 2
- Bi-Meter disconnects from node red HOT 5
- GET response the same for schema and DPS ID HOT 3
- unreadable 'data' output from node HOT 2
- Device not connected. Can't send the SET commmand HOT 1
- where do i set the api credentials HOT 1
- [announce] nr_Tuya_OpenAPI_2.0, a node_red flow to access Tuya Cloud HOT 1
- Manage all Tuya devices with node-red HOT 1
- Cluttered log file HOT 9
- Problem with Error code "Payload must be a number in range 0-100" HOT 1
- Error in tuyapi
- More finner log info control
- Data refresh very Slow HOT 1
- Node not works if some characters in the key HOT 8
- unreadable 'data' output from node HOT 1
- tuya ir remote control with virtual device id
- Port change HOT 1
- Connecting to device through Gateway not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-contrib-tuya-smart-device.