Added notes on Zemismart curtain motor

Gerard Sharp 2019-09-11 21:18:36 +12:00
parent 2e25ab1412
commit 260b4fb4cb
1 changed files with 44 additions and 1 deletions

@ -237,3 +237,46 @@ TIP: You can configure all in one go using `backlog TuyaMCU 12,2; TuyaMCU 13,3;
#### Configure power metering #### Configure power metering
Power metering configuration is same as for dimmers. Check the power metering section for dimmers. Power metering configuration is same as for dimmers. Check the power metering section for dimmers.
### Setting up Curtain Motor
The Zemismart WiFi curtain motor uses a Tuya TYWE1S inside the little white dongle as a radio modem.
`U1TX` is connected to "USB D+", `U1RX` is connected to "USB D-", and there is a blue LED in the dongle connected to "USB3 R-" controlled by the MCU.
To flash Tasmota, we need `U0RX`, `U0TX`, and `GPIO0`. None of which are broken out on the pcb, so soldering or Tuya-convert are useful.
The stock Tuya App communicates with the PIC Micro inside the motor housing at 9600 8N1.
* `dpId 101` is the "partial open/partial close" command with a 4 byte field of 0-100%.
* `dpId 102` is a "fully open/fully close" command with a 1-byte Boolean field.
* `dpId 103` is unknown.
#### Debugging
```
55 aa 00 06 "deliver dp" 0005 "len=5" 66 04 00 01 <00=close100%,01=open0%> <chksum> is the fully open/close command
07 "report dp" 0005 (len) 66 04 00 01 <00 or 01> <chksum> is the reply.
```
```
55 aa 00 06 "deliver dp" 0008 (len=8) 65 02 00 04 <value.32 <chksum> is the move partial command
55 aa 00 07 "report dp" 0008 (len=8) 65 02 00 04 <value.32> <chksum> is the reply.
there may first be a reply of 65 02 00 04 <oldvalue.32> <chksum> before the motor engages
```
#### Tasmota
1. `module 54` # TuyaMCU
2. \# check or change GPIO assignments (need to double check this bit)
3. `tuyamcu 21,101` # declare curtain as a dimmer
4. \# no idea what a good tuyamcu xx,102 is
5. \# no idea what a good tuyamcu xx,103 is
6. `setoption 69 0` # allow dimmer below 25% or 10%.
With these settings, the `dimmer` command can adjust the curtain from 100% (closed) to 1% (almost fully open, 0% is the motor limit, but 1% is the Tasmota limit?)
#### Things that did not work
```
tuyamcu 1,102 # make 0x66 a button
tuyamcu 1,103 # make 0x67 a button
```
Having 0x66 declared a button caused the motor to oscillate - open part way and then close again. Like Tasmota was sending the "fully open" command and then immediately cancelling it with a "partial close" command.
```
tuyamcu 11,102 # make 0x66 a relay
tuyamcu 11,103 # make 0x67 a relay
```
Does not appear to have any impact on the curtain