(2 intermediate revisions by the same user not shown) | |||
Line 28: | Line 28: | ||
HumOffset 1.7 | HumOffset 1.7 | ||
[https://tasmota.github.io/docs/Commands/#humidoffset HumOffset] | [https://tasmota.github.io/docs/Commands/#humidoffset HumOffset] | ||
+ | |||
+ | |||
=== Status === | === Status === | ||
status 8 | 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. | 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. | ||
+ | |||
+ | |||
+ | |||
+ | == NTP / Time Server == | ||
+ | NtpServer1 <IP_Address> | ||
+ | NtpServer2 <IP_Address> | ||
+ | |||
+ | === List existing NTP settings === | ||
+ | NtpServer <ENTER> | ||
+ | |||
Line 44: | Line 56: | ||
To set color units to R,G,B,W (0-255): | To set color units to R,G,B,W (0-255): | ||
SetOption17 1 | SetOption17 1 | ||
+ | Enables color status in decimals | ||
+ | |||
To set color red: | To set color red: | ||
color 255,0,0,0 | color 255,0,0,0 | ||
Line 52: | Line 66: | ||
To set color white: | To set color white: | ||
color 0,0,0,255 | 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. | ||
Latest revision as of 05:09, 15 September 2021
Contents
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
Humidity Calibration
HumOffset 1.7
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.
NTP / Time Server
NtpServer1 <IP_Address> NtpServer2 <IP_Address>
List existing NTP settings
NtpServer <ENTER>
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