Tasmota dashboard on iPhone over MQTT
Updated
Control Tasmota plugs, relays and sensors from a dashboard on your iPhone or iPad. Routix Dash talks to the same MQTT broker as your Tasmota devices: it shows their state and readings and sends commands when you tap.
You need a Tasmota device with MQTT set up (Configuration → Configure MQTT on the device's page) and the address of the broker it uses.
Tasmota topics in short
Every device has a topic name, shown as Topic in its MQTT settings. The examples below use plug1.
| Topic | What it carries |
|---|---|
stat/plug1/POWER |
The relay state, ON or OFF, each time it changes |
cmnd/plug1/POWER |
A command: send ON, OFF or TOGGLE |
tele/plug1/SENSOR |
Sensor and power readings as JSON, every few minutes |
tele/plug1/LWT |
Online or Offline |
1. Connect Routix Dash to the broker
Open the menu → MQTT connections → Add MQTT connection. Enter a Name, the broker's Host and Port, and the user name and password if it needs them. Tap Test, then the save tick.
2. A toggle for the relay
Create a data source: menu → Data sources → Add data source. Set Data source type to MQTT, choose the connection, and set Topic filters (subscribe) to stat/plug1/POWER. Name it Plug 1 state and save.
On a data section, tap Add data piece manually and pick Design your own data piece. Set Plug 1 state as the root data source, then add a Toggle:
- On value —
ON - Off value —
OFF
Under Events → On tap, a new Toggle already has Apply value. It flips 1 and 0, so tap it and change Value to {{ value == "ON" ? "OFF" : "ON" }}: the toggle then flips between ON and OFF.
Then tap Add... below it and choose MQTT send. Pick the connection, set the topic to cmnd/plug1/POWER and leave Payload empty, so the toggle sends ON or OFF.
Save. Tapping the toggle switches the relay, and the toggle follows the relay when it is switched by its button or a timer.
3. Power and sensor readings
A plug with power metering publishes readings like this to tele/plug1/SENSOR:
{"Time": "2026-11-17T10:15:00", "ENERGY": {"Power": 42, "Voltage": 231, "Today": 0.38}}
Create a second MQTT data source with the topic filter tele/plug1/SENSOR. In a data piece that uses it, add a Label or a Dial gauge, turn Inherited off, and add a Simple expression transformer:
- Power:
value?.ENERGY?.Power - Energy used today:
value?.ENERGY?.Today
A temperature sensor appears under its own name, for example value?.AM2301?.Temperature. Open the device's console to see the exact names in its messages.
4. Online or offline
Create an MQTT data source for tele/plug1/LWT and show it on a Label or Badge. Tasmota publishes this message with retain, so the dashboard shows it right after it connects.
Tips
- The toggle is empty after the app starts. Tasmota does not keep the relay state on the broker unless you ask it to. Type
PowerRetain 1in the device's console. The broker then remembers the last state and the toggle shows it at once. - Readings arrive every 5 minutes by default. Type
TelePeriod 60in the console to get them every minute. - Many devices. Subscribe to
stat/+/POWERin one data source to follow all relays.ctx.transport.topictells you which device a message came from. - Several relays on one device use
POWER1,POWER2and so on in the same topics.