After flashing Tasmota, apply the template and then use the *Firmware upgrade - File upload* menu to flash the **required** STM32 firmware (provided at [shelly-dimmer-stm32 releases page](https://github.com/jamesturton/shelly-dimmer-stm32/releases)) to the MCU. The template must be set before flashing the STM32 firmware. Note that you may have to load the STM32 firmware a second time before it works.
After the firmware upgrade for the STM32 firmware you should execute some commands: 1. switchmode 11 -> pushbutton with dimmer mode 2. use "SetOption32" to set the time for dim up/down start (10 = 1 sec) 3. If you want to use the dimmer with one button mode, you can check here: [https://tasmota.github.io/docs/Rules/#control-a-dimmer-with-one-switch](https://tasmota.github.io/docs/Rules/#control-a-dimmer-with-one-switch) (be sure to change the MQTT topics to the right ones your device is using) 4. Ledtable 0 -> Disable gamma control 5. ShdLeadingEdge ->