-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TuyaMCUv2 multiple issues, Tuyasend6 not working #17190
Comments
This issue has been automatically marked as stale because it hasn't any activity in last few weeks. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue was automatically closed because of being stale. Feel free to open a new one if you still experience this problem. |
suggestions: It will use more storage... TuyaSend6 - please attach any logs, or examples. Building with this may reveal more? br, |
Sorry to ask, what's the difference between TuyaMCUv1 and TuyaMCUv2 (I do see the code for both) and how to select which version to use? I think by default is TuyaMCUv1, right? |
I created the V2 version since the V1 version did not obey the complete Tuya protocol, and crashed my dimmers. (the tuya serial protocol is used between the ESP and a separate microcontroller). V2 runs a state machine based on the public description of the Tuya protocol on thier developer website (at the time), ensuring that all messages are responded to and timeouts obeyed. The issue with Tuya devices is that the microcontrollers are developed by the manufacturers of the items. Some are good, some are bad, some observe the protocol, some do not. At the time I developed V2, I asked for help and testing with other devices for a further 4 months, and apart from those (pleased people) who shared the same or similar dimmer, got no response. Then this issue popped up, and I got no response to the above. I cannot help with making V2 better for other devices, as I don't have other Tuya devices, and am not getting feedback or help relating to them. If you have a device which does not play nice with V1, I AM happy to help where I can with V2 if there is something specific it's not doing. But it was a highly complex and fraught development :(. br, btsimonh |
Hi @btsimonh, I try to use Tuya mcu v2 with my Tuya Thermostat. Basically it works but there are some more commands I want to integrate in your version. The hints from @Jason2866 regarding the length limit of raw data and string type should be default set to supported protocol length limit. Wh did you use a shadow-like implementation for a defined number of datapoints? What happens if the shadow is filled with datapoints? |
ooo.. it's a long while back. |
What was the reason for this buffer/shadow decision? |
"What was the reason for this buffer/shadow decision?" I think basically, the shadow separates the TAS requirements from the actual TUYA sends. hope this helps, it's been a while... |
PROBLEM DESCRIPTION
I've noticed it's reporting this on the new version:
That shouldn't be implemented like that. Type 0 data has spec length 1 to 255 bytes.
Old version didn't have that complain about length
TuyaSend6
is not working at all and since weblog 3 isn't reporting the sent payload it's impossible to debugThere is something missed in the initialisation process, none of the TuyaSend commands work until I do a SerialSend for that dpId. Again not able to debug because no information shown in the log.
After reverting to release 12.2. everything works as expected. Upgrading back to dev gives same issues.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
Receive a message longer than expected 16 with data type 0.
EXPECTED BEHAVIOUR
Same behaviour as in TuyaMCU v1, just output json values
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: