From LedHed's Wiki
Revision as of 16:22, 27 April 2021 by Ledhed (Talk | contribs)

Jump to: navigation, search

Overview

Some useful command line options for devices running Tasmota firmware


Console

Open the device's webpage, and click the 'Console' button. At the console enter your commands. Commands are automatically saved and should survive a reboot.

MQTT

https://github.com/arendst/Tasmota/wiki/Commands#mqtt


Update Interval

To set the update interval / frequency at which the devices sends MQTT messages:

TelePeriod 30

0 = disable telemetry messages
1 = reset telemetry period to firmware default (TELE_PERIOD)
10..3600 = set telemetry period in seconds (default = 300)


Temperature Calibration

TempOffset 1.3

TempOffset


Humidity Calibration

HumOffset 1.7

HumOffset


Status

status 8

This is a handy way to debug an unknown device. Set as many GPIO pins to SwitchX and then run this command, then press+hold a button on the device and run status 8 again to see which one changed.


SetOptions

https://github.com/arendst/Tasmota/wiki/commands#setoption-overview

Temperature Units

To set temperature units to Fahrenheit:

SetOption8 1

Color Values

To set color units to R,G,B,W (0-255):

SetOption17 1

Enables color status in decimals

To set color red:

color 255,0,0,0

To set color green:

color 0,255,0,0

To set color blue:

color 0,0,255,0

To set color white:

color 0,0,0,255


AutoDiscovery

SetOption19 enables/disables MQTT Auto-Discovery

SetOption19 0

This disables MQTT auto-discovery, but also enables auto-discovery in Home Assistant when using the Tasmota Integration.


WiFi Manager

If you have a device that is physically difficult to get to, or difficult to flash (bulbs), you may want to enable the WiFi Manager. This will cause the device to switch to AP mode when it can't find a wireless network to connect to. When in AP mode, you can connect to it from another wireless device like a laptop or smart phone and change the network config.

WifiConfig 2


I2C Scan

This command causes Tasmota to scan the I2C bus and display found device ID's.

i2cscan


Reference

https://github.com/arendst/Tasmota/wiki/commands