
Available from:
Amazon.de
Amazon.com
GPIO # | Component |
---|---|
GPIO00 | None |
GPIO01 | Tuya Tx |
GPIO02 | None |
GPIO03 | Tuya Rx |
GPIO04 | None |
GPIO05 | None |
GPIO09 | None |
GPIO10 | None |
GPIO12 | None |
GPIO13 | None |
GPIO14 | None |
GPIO15 | None |
GPIO16 | None |
GPIO17 | None |
Flashing
Flashing via Tuya-Convert (OTA) seems to be no longer possible due to the PSK key issue.
Serial flashing can be done relatively easy without soldering. First, have a look at this guide. The device has a TYWE3S module with a MCU. The TYWE3S mostly takes care of Wi-Fi and software features while the MCU controls the actual hardware (buttons, lights, etc.). The MCU is interfaced to TYWE3S using the serial interface which connects to the Rx and Tx pins.
To flash Tasmota, just disassemble the unit (6 screws), remove the connectors and use some wire to connect TX, RX, GPIO0 and RST directly in the TYWE3S. As you can see in the image, there are headers for VCC and GND in the board. Make sure to ground GPIO0 during boot. To avoid interferences from the MCU, bridge RST to GND on the MCU too.
Functions
dpID 1
device power: 0
= off / 1
= on
dpID 11
light power: 0
= off / 1
= on
dpID 12
error notification: 0
= ok / 1
= error
dpID 13
countdown mode options: 0
= off / 1
= 1hr / 2
= 3hr not needed in Tasmota, use Timer feature instead
dpID 14
countdown status: reports value of 0…360 minutes not needed with Tasmota, use Timer feature instead
dpID 103
mist strength: 0
= low / 1
= high
dpID 108
light color: 14 char value in hex (set with TuyaRGB 3
)
dpID 110
light mode: 0
= rgb_cycle / 1
= color / 2
= white
dpID 111
light dimmer
Configuration
After applying the template and configuring Wi-Fi and MQTT, issue the following commands:
This will:
- map tasmota relay1 with dpID 1 (diffuser on/off)
- map tasmota relay2 with dpID 11 (light on/off)
- map tasmota dimmer with dpID 111 (dimmer)
- map tasmota enum1 with dpID 103 (mist strength)
- map tasmota enum2 with dpID 110 (light mode)
After a restart issue the rest of configurations:
This will:
- define the RGB Hex format used by the MCU
- declare the dimmer range from 0 to 255
- declare the enum1 and enum2 range
- show color in messages as a comma-separated decimal string
Now we will create a few rules. First rule is used to prevent the device going into countdown mode (f.e. using on device controls) and complete MCU status update on restart.
Second rule sends two new MQTT topics: an error topic in case of the device is running out of water and a fanmode topic the mist strength
Third rule will shut down the light after turning on the difusser.
Finally enable the rules:
Label webUI buttons and set friendly names for power outputs:
What you get
Power1
turns the diffuser on or off in stored mist strength mode as device power statusPower2
controls the light as an RGB LightTuyaEnum1
is for mist strength status and control:0
for low /1
for highTuyaEnum2
is for light mode status and control:0
for RGB cycle /1
for solid color /2
for solid white
Long press on device’s power button initiates Tasmota’s Wi-Fi config.
Home Assistant configuration
Home Assistant sends a command_topic every time a color/brightness parameter of a light is changed. This makes the diffuser to start a RGB cycle, losing the color/brightness selected. To avoid this, I have created an automation to skip sending the power on command in case the light is already turned on. A similar approach has been used to change the payload of the effect_command_topic.
Pinout
