First Configuration
The workflow here is documented-only (it needs a real device) and follows the official Getting Started documentation. The facts it leans on — template shape, module system, command names — were verified in this lab against the v16.0.0 source.
The three-minute access point
A freshly flashed Tasmota device knows no
Wi-Fi credentials, so it becomes its own
access point, broadcasting a network named
tasmota_XXXXXX-####. Join it with a
phone or laptop and browse to
http://192.168.4.1 — the device's web
page, served by the device itself. The
documentation is explicit that this Wi-Fi
manager stays available for about three
minutes, so have your real network's name
and password in hand before you start.
Enter them, the device reboots, joins your
network, and from then on lives at its
address on your LAN.
The same first setup can be done over a serial connection instead — useful on a bench — because Tasmota's command language (the next-but-one chapter) works over serial at 115200 baud:
Backlog ssid1 YourNetwork; password1 YourPassword
Telling it what hardware it is
Out of the box, Tasmota does not know which relay, button, LED or sensor is wired to which pin of this device. That knowledge is the device's configuration, and it comes in two forms:
- A module is a built-in device type — a named, pre-defined pin layout for a known product ("this is a Sonoff Basic: relay on this pin, button on that one"). Choosing the module under Configuration → Configure Module is the quick path for supported hardware.
- A template is the general form: a
small JSON object that assigns a function
to every GPIO pin, so any wiring can be
described. The community maintains
templates for thousands of devices — this
lab counted 2,835 entries in the
project's
TEMPLATES.md— and a template looks like this (it is the real shape, read from the project's own files):
json
{"NAME":"Sonoff Basic","GPIO":[1,1,1,1,1,1,0,0,1,1,1,1,1,0],"FLAG":0,"BASE":18}
GPIO is the pin-function list, BASE
names the module the template builds on,
FLAG carries behaviour bits, and an
optional CMND field holds a string of
commands applied when the template is
activated. Templates are applied under
Configuration → Configure Template, or
pasted to the device as a command.
Modules are templates with names; templates are how devices nobody has heard of get supported anyway.
The rest of the first pass
Three more settings earn their keep early,
all reachable from the same Configuration
menu or as commands. Give the device a
name and MQTT topic you will recognise
in a list of thirty. Set the time zone,
or schedules and timestamps will quietly
live in UTC. And if the device misbehaves
after power cuts — some relay boards do —
the documentation's own tip is
SetOption65 1, which disables the
power-cycle factory-reset behaviour. If you
set a web admin password, note the docs'
honest caveat: the web interface is plain
HTTP with the default user admin, so keep
these devices on your local network, never
exposed to the internet.