From e2c3f6f55fb25cb35d4965df93e09f8ddc5b2d53 Mon Sep 17 00:00:00 2001 From: blakadder Date: Mon, 28 Oct 2019 19:18:49 +0100 Subject: [PATCH] add aromatherapy diffuser --- TuyaMCU-Configurations.md | 45 +++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/TuyaMCU-Configurations.md b/TuyaMCU-Configurations.md index 0846c372..3a916cea 100644 --- a/TuyaMCU-Configurations.md +++ b/TuyaMCU-Configurations.md @@ -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 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.