Line 47: | Line 47: | ||
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. | 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 | WifiConfig 2 | ||
+ | |||
+ | |||
+ | == I2C Scan == | ||
+ | This command causes Tasmota to scan the I2C bus and display found device ID's. | ||
+ | i2cscan | ||
Revision as of 17:26, 16 May 2020
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)
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
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
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