Safety First
This chapter is short because it has one job: to be impossible to misunderstand.
A large share of the devices Tasmota runs on are wired into, or plug into, mains electricity — 120 or 240 volts, the kind that kills. Replacing firmware means opening the case and connecting wires or a programmer to a bare circuit board. The project's own Getting Started documentation states the rules in capital letters, and this guide repeats them in the same spirit:
- Never flash a device while it is connected to mains power. Not "be careful while" — never. Flashing happens on the bench, powered from a USB serial adapter at 3.3 volts, with the device unplugged from the wall.
- Do not work on a device with its cover open while it is plugged in. If the board is exposed, the plug stays out.
- You can be electrocuted if you do not know what you are doing. If mains wiring is new to you, the honest options are to learn it properly first, to buy devices that need no opening (pre-flashed devices exist), or to have a qualified person do the installation — in many places the law requires exactly that for fixed wiring.
Two further points are easier to overlook:
The programmer is low-voltage; respect the difference. A USB-to-serial adapter supplies 3.3 V to the chip. That side of the bench is safe to handle. The danger is only ever the mains side — which is why the rule is absolute separation: a device is either on the bench being flashed, or in the wall being used, and never both at once.
A flashed device is still a mains device. Tasmota changes software, not physics. A no-name plug rated optimistically by its seller does not become trustworthy because its firmware is now open source. Do not run loads beyond the device's rating, do not defeat covers or strain reliefs, and treat cheap hardware switching heaters and other heavy loads with the suspicion it has earned.
Everything after this chapter assumes these rules. Where a procedure involves opening a device, it is a bench procedure, done unplugged.