Update 2020-11-13 Tuya-Convert does not work anymore you need to hard flash the chip directly with USB TTL cable (3.3v)
Attach the GPIO0 wire to ground during initial boot to flash.
A 3-pin header bridged together works great with GPIO0, GND and the GND from the USB flasher attached. (TX pin to RX pin and RX pin to TX pin on USB flash adapter). Verify that you are using 3.3volts to flash, NOT 5V! – Update 2021Jan26: If flashing fails: Its been reported that only CP2102 flashers have been known to work directly (also said to require an external power supply). Issue is that the secondary MCU TX is also connected to the ESP RX line. Known method of preventing interference is to cut the trace for this connection (and resolder after flashing). With cutting of the trace usual flashers can work. Its been suggested that perhaps CP2102 flashers overpower the 2nd MCU signal.
The trace to cut is the light green area between lines 3 and 4 in this picture. After flashing, use an exacto knife to expose copper 1mm on either side and solder. chip_wireschip_wires Above information was collected from: See notes below this video: https://www.youtube.com/watch?v=jticF3ZtEo4 And this thread contains the source of the trace cutting process: https://www.reddit.com/r/tasmota/comments/j6gqf4/tuya_dimmers_with_a_bf7612_mcu_in_it/g7yl68a/ — After flash and update to current release tasmota.bin :
- Go to WebUI and then Console
- Enter command
- Set Dimmer Range with
Now Dimmer Command should work from 0-100.
If no dimming occurs try changing the dimming mode:
- Dimming Mode 1:
- Dimming Mode 2:
- Dimming Mode 3:
Dimming mode is reset after every reboot so add a rule at system boot.
Rule1 on system#boot do SerialSend5 55AA00060005040400010114 endon
The main button turns the switch on/off if single-clicked.
If you double-click it, the brightness set point is reset to the stored favorite value (or 50.5% if no value has been stored since reset) - note that this won’t turn the switch on or off, just set the brightness with the switch staying on or off.
If you triple-click it, the current brightness set point will be stored as the new favorite (overwriting the previous saved value).