Tuya generic wifi curtain motor WIP - stodev-com-br/Tasmota GitHub Wiki

Wi-Fi Curtain Motor

Applicable Tuya Serial Protocols Communication can be found here if you wish to explore and implement the entire functionality.

Don't forget to share what you have discovered and tested here in wiki :smiley:

functionId and dpId Setup:

stat/tasmota/RESULT = [{"fnId":11, "dpId":1},{"fnId":12, "dpId":101},{"fnId":13, "dpId":103}]

55aa0007000501010001010f -> auto power mode is on (TBD)
55aa00070005650400010075 -> Curtain motor is opening or opened
55aa000700086602000400000032ac -> Control percentage 50%
55aa00070005670100010074 -> report working state ( opening or closing )
55aa000700086802000400000032ae -> report percentage

dpIds
01 -> Auto power mode on or off ( Can be configured as relay )
0x65 101 -> Curtain mode ( open / close / stop)
0x66 102 -> Curtain open percentage
0x67 103 -> report work state
0x68 104 -> Curtain percentage report only

Commands
SerialSend5 55aa00060005650400010276 Forward
SerialSend5 55aa00060005650400010074 Reverse
SerialSend5 55aa00060005650400010175 Stop

Additional Possible Commands (Untested)
SerialSend5 55aa000600086802000400000032ad Should open curtain to 20%
or
SerialSend5 55aa000600086602000400000032ab should open curtain to 20%

Commands may be necessary to start opening after setting the percentage.
SerialSend5 55aa0006000501010001010e -> Should enable auto close mode
SerialSend5 55aa0006000501010001000d -> should disable auto close mode

If you send the direction changing too fast (from open to close and vice versa), the motor may be blocked by built in failsafes. Consider sending delay (1 sec) before changing direction. For example, these commands work and don't make the motor block:
Backlog delay 10; SerialSend5 55aa00060005650400010276 open
Backlog delay 10; SerialSend5 55aa00060005650400010074 close
Backlog delay 10; SerialSend5 55aa00060005650400010175 stop

And if you use html requests:
http://ip/cm?cmnd=backlog%20delay%205%3B%20SerialSend5%2055aa00060005650400010276 open
http://ip/cm?cmnd=backlog%20delay%205%3B%20SerialSend5%2055aa00060005650400010074 close
http://ip/cm?cmnd=backlog%20delay%205%3B%20SerialSend5%2055aa00060005650400010175 stop

The motor Inside Soldering 1 Soldering2 TYWE3S chip