Tinytuya step by step made simple #613
Replies: 3 comments
-
I'm not sure what you mean by "simpler instructions." Tuya devices are complex and v3.4 requires AES-ECB encryption, HMAC-SHA256 digest, and a 3-way handshake at the start of each connection to exchange the session key. |
Beta Was this translation helpful? Give feedback.
-
Ok, without bother you why I am trying to do this, I mean if I can use several (simple) python instructions to connect to tuya devices instead using tinytuya libraries. |
Beta Was this translation helpful? Give feedback.
-
Hi @crsengineering - I think what you are looking for is in the XenonDevice class code: tinytuya/tinytuya/core/XenonDevice.py Line 192 in 3fa3870 But as @uzlonewolf notes, the protocol is complex which is why we built the library to help abstract the complexity. You can see the notes @uzlonewolf put together on the protocol here: #260 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi to all!
I am newbie about Tuya and tinytuya.
How can I replicate tinytuya with simpler instructions? I correctly connect to a v3.4 tuya device but I need to do it with simpler instructions due I need to control it through C.
Is this possible?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions