Giter VIP home page Giter VIP logo

Comments (9)

Biscotte312 avatar Biscotte312 commented on September 28, 2024

from node-red-contrib-tuya-smart-device.

Nazarbayevv avatar Nazarbayevv commented on September 28, 2024

Thaks, but any result;(

image

from node-red-contrib-tuya-smart-device.

2BAD2B007 avatar 2BAD2B007 commented on September 28, 2024

@Nazarbayevv

This worked for me. Make sure that operation is all lowercase.

{"operation":"GET","schema":true};

from node-red-contrib-tuya-smart-device.

Nazarbayevv avatar Nazarbayevv commented on September 28, 2024

@2BAD2B007
Oh, thanks. I receives data from one plug, but oher plug answered with error "json obj data unvalid"
image

And can you help me with dps description? I know that dps 1 - status on|off, but I want to know total consumption.
image

from node-red-contrib-tuya-smart-device.

2BAD2B007 avatar 2BAD2B007 commented on September 28, 2024

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.

Nazarbayevv avatar Nazarbayevv commented on September 28, 2024

@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
image
image

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.

vinodsr avatar vinodsr commented on September 28, 2024

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.

vinodsr avatar vinodsr commented on September 28, 2024

Closing the issue

from node-red-contrib-tuya-smart-device.

Sungtroll avatar Sungtroll commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.