Struggling to setup my first Tasmota device and MQTT
-
Looking at the HTTP output for everything from the Tasmota, I see these snippets.
"StatusSTS" - seems to contain the state of the relay e.g. "POWER":"ON"
"StatusSTS":{"Time":"2026-02-16T18:58:25","Uptime":"0T03:32:46","UptimeSec":12766,"Heap":106,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":4,"Objects":50},"POWER":"ON","Wifi":{"AP":1,"SSId":"ASUS_86_2G","BSSId":"04:D9:F5:74:C5:E0","Channel":3,"Mode":"HT40","RSSI":100,"Signal":-19,"LinkCount":1,"Downtime":"0T00:00:04"},"Hostname":"Stairs-Cupboard-Fan-ESP32","IPAddress":"192.168.0.49"}}Where as "StatusSNS" contains the Temp data.
"StatusSNS":{"Time":"2026-02-16T18:58:25","AM2301":{"Temperature":19.8,"Humidity":50.3,"DewPoint":9.1},"TempUnit":"C"},So it seems MSR doesn't know where to find the relay status / state currently? and I am not sure how to fix it.
As a guess I tried adding source "POWER" to the relay section of the yaml but didn't seem to work and bring in the "ON" or "OFF" value.
tasmota_fan_controller_relay: name: "Stairs Cupboard Fan" include: tasmota_generic_relay topic: "fan_controller" source: "POWER" unit: "1"I was poking around the file system to find these Tasmota default templates. I see this folder but its empty.
/home/stuart/reactor/config/mqtt_templatesI do see a file called tasmota.yaml however in this folder.
/home/stuart/reactor/ext/MQTTController/templatesEDIT: I just fixed it by changing unit: "1" to unit: "" in the reactor.yaml.
It now say "false" for power state in the Entites area. I thought I had to put a 1 in unit because in Tasmota somewhere, I saw the Relay was number 1. -
Tasmota has this inconsistency where if there's only one relay configured, it does not include the relay number; if more than one, then it adds it. There's no way for the template to know how many relays are configured, so you found the correct fix.








