From 5c40dbd74323befd15fee88fbcd711230781703c Mon Sep 17 00:00:00 2001 From: Greefon Date: Thu, 26 Sep 2019 17:32:29 +0300 Subject: [PATCH] Updated Tuya generic wifi curtain motor WIP (markdown) --- Tuya-generic-wifi-curtain-motor-WIP.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Tuya-generic-wifi-curtain-motor-WIP.md b/Tuya-generic-wifi-curtain-motor-WIP.md index e0732c2b..c01bc7c1 100644 --- a/Tuya-generic-wifi-curtain-motor-WIP.md +++ b/Tuya-generic-wifi-curtain-motor-WIP.md @@ -1,4 +1,7 @@ -```55aa0007000501010001010f Says auto power mode is on - Maybe +Setup for the functionId and dpId that was made: +stat/sonoff/RESULT = [{"fnId":11, "dpId":1},{"fnId":12, "dpId":101},{"fnId":13, "dpId":103}] + +55aa0007000501010001010f Says auto power mode is on - Maybe 55aa00070005650400010075 says Curtain motor is opening or opened - Confirmed working 55aa000700086602000400000032ac Control percentage 50% 55aa00070005670100010074 report working state ( opening or closing ) @@ -28,7 +31,7 @@ SerialSend5 55aa000600086602000400000032ab should open curtain to 20% It might be that it needs commands start opening after setting the percentage. SerialSend5 55aa0006000501010001010e -> Should enable auto close mode -SerialSend5 55aa0006000501010001000d -> should disable 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 can be blocked by security reasons. Consider to send delay before changing direction. @@ -36,12 +39,15 @@ For example the commands in console works OK and don't make the motor block: backlog delay 50;SerialSend5 55aa00060005650400010276 open backlog delay 50;SerialSend5 55aa00060005650400010074 close SerialSend5 55aa00060005650400010175; stop + And if you use html requests: http://192.168.1.119/cm?cmnd=backlog%20delay%205%3BSerialSend5%2055aa00060005650400010276 open http://192.168.1.119/cm?cmnd=backlog%20delay%205%3BSerialSend5%2055aa00060005650400010074 close http://192.168.1.119/cm?cmnd=SerialSend5%2055aa00060005650400010175; stop -Or for better reliability put delay before each stop command and stop with delay before each rotate +Or for better reliability put delay before each stop command and stop with delay before each movement http://192.168.1.119/cm?cmnd=backlog%20delay%202%3BSerialSend5%2055aa00060005650400010175%3Bdelay%202%3BSerialSend5%2055aa00060005650400010276 open http://192.168.1.119/cm?cmnd=backlog%20delay%202%3BSerialSend5%2055aa00060005650400010175%3Bdelay%202%3BSerialSend5%2055aa00060005650400010074 close -http://192.168.1.119/cm?cmnd=backlog%20delay%202%3BSerialSend5%2055aa00060005650400010175; stop \ No newline at end of file +http://192.168.1.119/cm?cmnd=backlog%20delay%202%3BSerialSend5%2055aa00060005650400010175; stop + +