add aromatherapy diffuser

blakadder 2019-10-28 19:18:49 +01:00
parent a7c51acd53
commit e2c3f6f55f
1 changed files with 24 additions and 21 deletions

@ -138,7 +138,31 @@ The stock Tuya App communicates with the PIC Micro inside the motor housing at 9
There may first be a reply of 65 02 00 04 <oldvalue.32> <chksum> before the motor engages
### Tasmota
1. `module 54` # TuyaMCU (will reboot)
2. `backlog gpio1 0; gpio3 0; gpio15 107; gpio13 108` # change GPIO assignments. The dongle uses gpio15 for U1TX and gpio13 for U1RX (will reboot)
3. `tuyamcu 21,101` # declare curtain as a dimmer (will reboot)
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%. (won't reboot)
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.
### Aromatherapy Diffuser
Applies to devices using the PCB marked GD-HDFW05-v1.0. ![image](https://user-images.githubusercontent.com/5904370/67526288-c4559500-f6b4-11e9-867f-2b3ae0b82437.png)
This diffuser uses the same dpId scheme as the [example protocol](tuya-protocols#aromatherapy-machine-oil-diffuser)
#### Functions
@ -186,24 +210,3 @@ Color can be changed using `TuyaSend3 108,RRGGBB64646464` (RR, GG and BB are hex
Dimming works using slider and `Dimmer` command but only when in color mode, in rgb_cycle there are no brightness controls.
Long press on device's power button initiates Tasmota's Wi-Fi config
### Tasmota
1. `module 54` # TuyaMCU (will reboot)
2. `backlog gpio1 0; gpio3 0; gpio15 107; gpio13 108` # change GPIO assignments. The dongle uses gpio15 for U1TX and gpio13 for U1RX (will reboot)
3. `tuyamcu 21,101` # declare curtain as a dimmer (will reboot)
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%. (won't reboot)
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.