hello there,
I use a lot of SONOFF and TUYA switches with TASMOTA firmware
The latest TUYA switches are of outstanding quality, one of the best fire resistance and assembly quality on the market. Probably the better choice for quality and safe switches for domestic.
But ... In recent months, all new models related to TUYA components are working through another microcontroller, which prevents the use of TASMOTA or any other firmware that is not original by TUYA. you can easily download tasmota to the ESP, but you still need to communicate with the other microcontroller.




Most components have deleted the component identity, so apart from the Tx/Rx link, the component type cannot be identified.
In another switches, the nuvoton n76e003at20 microcontroller is used, but I suppose identity doesn't help figuring out how to operate the switches either.
Is this the end of using open firmware with TUYA?
It's probably a long shot, but is it possible to control these MCUs using Tasmota?
And another important issue and request, is it possible to add option to the official and excellent versions of TASMOTA, which will control any pair of relays as cover/shutter/curtain?
That is, to use 2 relays for cover(motor), or 4 relays for 2 covers(or one cover and 2 switches)?
Many thanks
Irmi.
@shantur Isnt this the same as the TuyaMCU stuff you have been working on?
As long Tuya protocol is used it does not matter which MCU is used.
You have to look at. Described in wiki https://github.com/arendst/Tasmota/wiki/TuyaMCU
I'm pretty sure TuyaMCU works with that unless its an unstandardized implementation of Tuya's Serial Protocol
@andrethomas : Yes this will work with TuyaMCU
@irmi29 : These are supported in Tasmota, check the link Jason posted above.
Thanks friends for the comment!
Currently I have only used version 6.6.0.10 since this version does not have a dead time of 5 seconds when manually turning the switch when there is no WIFI connection.
In any case, for testing I installed version 7.0.0.1, I set 3 relay switch as TUYAMCU and already had one relay initially works straight out of the box.
Here are the results:
Manually Switching on relay 1
{"TuyaReceived":"Data":"55AA0007000501010001010F","Cmnd":7,"CmndData":"0101000101","DpId":1,"DpIdType":1,"DpIdData":"01"}}
11:47:50 TYA: fnId=11 is set for dpId=1
11:47:50 TYA: RX Relay-1 --> MCU State: On Current State:Off
11:47:50 SRC: Switch
11:47:50 RSL: stat/sonoff/RESULT = {"POWER":"ON"}
11:47:50 RSL: stat/sonoff/POWER = ON
11:47:50 CFG: Saved to flash at FB, Count 134, Bytes 4096
Switching off relay 1
{"TuyaReceived":"Data":"55AA0007000501010001000E","Cmnd":7,"CmndData":"0101000100","DpId":1,"DpIdType":1,"DpIdData":"00"}}
11:49:30 TYA: fnId=11 is set for dpId=1
11:49:30 TYA: RX Relay-1 --> MCU State: Off Current State:On
11:49:30 SRC: Switch
11:49:30 RSL: stat/sonoff/RESULT = {"POWER":"OFF"}
11:49:30 RSL: stat/sonoff/POWER = OFF
11:49:30 CFG: Saved to flash at FA, Count 135, Bytes 4096
Assuming it does not support relay 2 and 3, so the result is different
Switching on relay 2
{"TuyaReceived":"Data":"55AA00070005020100010110","Cmnd":7,"CmndData":"0201000101","DpId":2,"DpIdType":1,"DpIdData":"01"}}
11:51:16 TYA: fnId=0 is set for dpId=2
and switching off relay 2
11:56:58"TuyaReceived":"Data":"55AA0007000502010001000F","Cmnd":7,"CmndData":"0201000100","DpId":2,"DpIdType":1,"DpIdData":"00"}}
11:56:58 TYA: fnId=0 is set for dpId=2
Will the version still in development and in future it will support even more than a single relay?
@irmi29 : Do command backlog TuyaMcu 12,2; TuyaMcu 13,3 in console. Let it reboot and then read
https://github.com/arendst/Tasmota/wiki/tuyamcu-configurations
@shantur , thanks for the quick reply.
I implemented the TUYA protocol on the 3 buttons switch as indicated in the link and it works great.
Now I'm trying to set the switch to curtains. This is 3 buttons switch with 2 relays: opening, stopping, and closing. With the opening percentage of the shutter.
I tried to implement all options as indicated in the link, but nothing affects the switch. When operating the switch manually, the following pairings are consistently received:
open
FnId=11 is set for dpId=1
RX Relay-1 --> MCU State: Off Current State:On
FnId=0 is set for dpId=3
Stop open
FnId=11 is set for dpId=1
RX Relay-1 --> MCU State: On Current State:Off
FnId=0 is set for dpId=3
Close
FnId=11 is set for dpId=1
RX Relay-1 --> MCU State: On Current State:On
FnId=0 is set for dpId=3
Stop close
FnId=11 is set for dpId=1
RX Relay-1 --> MCU State: On Current State:Off
FnId=0 is set for dpId=3
According to the TUYA protocol for shutter/curtains dpld 1 refers to operating mode: opening, stopping, closing. Whereas dpld 3 refers to the opening percentage.
Any idea how to link this to TASMOTA?
@irmi29 : I haven't tried shutters switch with TuyaMCU. It needs to be looked at.
@irmi29 @shantur any new with this module ?
i have the same and cannot handle with it..
Most helpful comment
@irmi29 : Do command
backlog TuyaMcu 12,2; TuyaMcu 13,3in console. Let it reboot and then readhttps://github.com/arendst/Tasmota/wiki/tuyamcu-configurations