Replies: 3 comments 13 replies
-
Hello, To add a command, you can add a new function in Commandes.ino or in your main code :
then use |
Beta Was this translation helpful? Give feedback.
-
Thank you. Using your suggestion, adding the device worked well. But I am still stuck. The ESP8266 can find Tuya devices and print their data. I have added a function to read epoch time, I have the local key of the device and the version is 3.4. Can you suggest a way to analyse where the problem lies? |
Beta Was this translation helpful? Give feedback.
-
I compared the results from EspTuya to the log fromTinyTuya. It used exactly the same credentials for both to read data from a 25A Tuya relay. To avoid artefacts I restarted my PC and than ran the EspTuya code followed by tinyTuya. From the logs it appears that in EspTuya the code does manage to create the connection, but establishing the handshake fails at the first hurdle because the device sends a message without a payload back. I tried, for hours but it is too difficult for me to follow the code with all these function calls. Could you please have a look at the logs? The ESP log is not complete because it failed early and it does not make sense to follow it much further. For reference, I have also included the Arduino code. @FrBerger83 Is there a way to revert the hashed code into readable text to compare the logs from TinyTuya and EspTuya? I could not run the two applications at exactly the same time, which means that the hashed code is completely different and not comparable in this form. |
Beta Was this translation helpful? Give feedback.
-
I appreciate your work. I could find my devices and they are connected. But I do not get any data in the payload back. Most likely, I have not integrated my devices correctly.
How do I add new commands?
Beta Was this translation helpful? Give feedback.
All reactions