simeonovp / node-red-contrib-tuya-devices

Support for Tuya devices in SmartHome projects using Node-RED. The goal of the project is to allow using local devices supports Tuya in Node-Red
MIT License
8 stars 1 forks source link

Need some help with commands #9

Open andesse opened 1 month ago

andesse commented 1 month ago

I have a Diffuser that used to work with the other Tuya contrib, but i don't get a connection anymore. With this contrib it works, but I am not able to use my previous commands. image

When I use "get status of dps" I get this back image

How do I need to set the commands that it works with this contrib? Can someone give me a hint?

andesse commented 1 month ago

image

simeonovp commented 1 month ago

@andesse You can update to the current version (1.3.1) and try the new feature "Multi Outputs". Open device GUI, select "Datapoint":"All", "Outputs":"Multi outputs". The first output gets control content and raw messages. All other outputs are for the available DPs (holt the mouse over the output to see the tooltip). In addition you can inject messages with topic "dispatchCommands" or "getDataModel" to the device node to get additional infos on the data (first) output. You can also directly attach dashboard nodes (depends oto the DP data type) to the outputs and to the input of the device node. The topic in the dashboard node must be the code of the DP (see its model)

andesse commented 1 month ago

Thanks for the feedback, still not working. The dropdown doesn't show me anything. image Get Data Model gives me an empty payload.

Dispatch gives me this image

I actually just need to know how to format my inject data. Mine as shown on the first pictures is not working and shows the error on the additional picture

I don't care for outputs, I jut need to run the device in different modes

simeonovp commented 1 month ago

Thanks for the feedback, still not working. The dropdown doesn't show me anything. image Get Data Model gives me an empty payload.

Dispatch gives me this image

I actually just need to know how to format my inject data. Mine as shown on the first pictures is not working and shows the error on the additional picture

I don't care for outputs, I jut need to run the device in different modes

It seam so as you not synchronize you local cache with the cloud. The deviceand model informations comes primary from the cloud and will be cached localy for future usage. You must once press the Refresh button in the manager GUI.

andesse commented 1 month ago

Okey, I'll try that. I used my devices locally before with internet access blocked.

andesse commented 1 month ago

Every interaction with the Manager Node Crashs my Node-Red. 😅 My credentials from the Tuya developer site are correct. I will investigate further.