diff --git a/Commands.md b/Commands.md index cca8e77470..cfd41c7015 100644 --- a/Commands.md +++ b/Commands.md @@ -114,144 +114,144 @@ E.g. in case of command _`Backlog Power1 OFF; Delay 600; Power1 ON`_ the usage o Command|Parameters :---|:--- -Backlog|List of commands to be executed in sequence separated by `;`
See [Using Backlog](#using-backlog) for examples. -BlinkCount|Number of relay toggles ([blinks](#power)) **(does not control the status LED)**
`0` = blink many times before restoring power state
`1..32000` = set number of blinks *(default = `10`)* -BlinkTime|`2..3600` set duration, in 0.1 second increments, to [blink](#power) (i.e., toggle Power) for a relay **(does not control the status LED)** -ButtonDebounce|User control over button debounce timing   »6.2.0
`40..1000` = set button debounce time in milliseconds *(default = `50`)* -Buzzer|`0` = stop active buzzer cycle  »6.6.0.18
`,,,` = [read more...](Buzzer)
`2,3` - Beep twice with 300 milliseconds duration and 100 milliseconds pause
`2,3,4` - Beep twice with 300 milliseconds duration and 400 milliseconds pause
`1,2,3,0xF54` (0000 0000 0000 0000 0000 1111 0101 0100). Each `1` bit beeps for 200 milliseconds and each bounded `0` bit pauses for 300 milliseconds -FanSpeed|Fan speed control *(iFan02/iFan03 only)*  »6.1.0
`0` = turn fan OFF
`1..3` = set fan speed
`+` = increase fan speed
`-` = decrease fan speed
-Interlock|Relay interlock mode and group selection.  »6.5.0
`0` = disable relay interlock for all relays (i.e., each relay is self-locking) *(default)*
`1` = set interlock mode for selected relays +Backlog|List of commands to be executed in sequence separated by `;`
See [Using Backlog](#using-backlog) for examples. +BlinkCount|Number of relay toggles ([blinks](#power)) **(does not control the status LED)**
`0` = blink many times before restoring power state
`1..32000` = set number of blinks *(default = `10`)* +BlinkTime|`2..3600` set duration, in 0.1 second increments, to [blink](#power) (i.e., toggle Power) for a relay **(does not control the status LED)** +ButtonDebounce|User control over button debounce timing   »6.2.0
`40..1000` = set button debounce time in milliseconds *(default = `50`)* +Buzzer|`0` = stop active buzzer cycle  »6.6.0.18
`,,,` = [read more...](Buzzer)
`2,3` - Beep twice with 300 milliseconds duration and 100 milliseconds pause
`2,3,4` - Beep twice with 300 milliseconds duration and 400 milliseconds pause
`1,2,3,0xF54` (0000 0000 0000 0000 0000 1111 0101 0100). Each `1` bit beeps for 200 milliseconds and each bounded `0` bit pauses for 300 milliseconds +FanSpeed|Fan speed control *(iFan02/iFan03 only)*  »6.1.0
`0` = turn fan OFF
`1..3` = set fan speed
`+` = increase fan speed
`-` = decrease fan speed
+Interlock|Relay interlock mode and group selection.  »6.5.0
`0` = disable relay interlock for all relays (i.e., each relay is self-locking) *(default)*
`1` = set interlock mode for selected relays ||Add up to 8 relays in 1 to 4 interlock groups, each separated by a space. For example
`1,2 3,4` = Group Relay1 and Relay2 in group 1 and Relay3 and Relay4 in group 2 (_note the space between the two group declarations_)
`1,2,3` = group Relay1, Relay2 and Relay3 in a single interlock group
`1 3 2,4` = Relay1 is in group 1, Relay3 in group 2, Relay2 and Relay4 in group 3 -LedMask|Set a [bitmask](https://en.wikipedia.org/wiki/Mask_(computing)#Masking_bits_to_1) specifiying which relays control the LED indicator. [Read more...](LedMask)   »6.6.0
`` = [bitwise](https://whatis.techtarget.com/definition/bitwise) value representing each relay. Values may be entered as either hexadecimal or decimal values (e.g., 0xFFFF = 65535).
`0xFFFF` (= 1111 1111 1111 1111) All relays control the power LED _(default)_
*[LedState](#ledstate) must be enabled (i.e., `!= 0`) in order for `LedMask` to take effect.* -LedPower|LED power state as on or off
`0` = turn LED OFF and set `LedState 0`
`1` = turn LED ON and set `LedState 8`
`2` = toggle LED and set `LedState 0`
(Use `Backlog LedPower 0; SetOption31 1` to disable LED even when Wi-Fi or MQTT is not connected) +LedMask|Set a [bitmask](https://en.wikipedia.org/wiki/Mask_(computing)#Masking_bits_to_1) specifiying which relays control the LED indicator. [Read more...](LedMask)   »6.6.0
`` = [bitwise](https://whatis.techtarget.com/definition/bitwise) value representing each relay. Values may be entered as either hexadecimal or decimal values (e.g., 0xFFFF = 65535).
`0xFFFF` (= 1111 1111 1111 1111) All relays control the power LED _(default)_
*[LedState](#ledstate) must be enabled (i.e., `!= 0`) in order for `LedMask` to take effect.* +LedPower|LED power state as on or off
`0` = turn LED OFF and set `LedState 0`
`1` = turn LED ON and set `LedState 8`
`2` = toggle LED and set `LedState 0`
(Use `Backlog LedPower 0; SetOption31 1` to disable LED even when Wi-Fi or MQTT is not connected) LedPower\|LED\ power state control. **Enabled only when LedLink(i) is configured**  »6.6.0
`0` = turn LED OFF and set `LedState 0`
`1` = turn LED ON and set `LedState 0`
`2` = toggle LED and set `LedState 0` -LedState|Manage LED state
`0` = disable use of LED as much as possible
`1` = show power state on LED (LED on when power on) *(default)* *(inverted for Sonoff Touch/T1)*
`2` = show MQTT subscriptions as a LED blink
`3` = show power state and MQTT subscriptions as a LED blink
`4` = show MQTT publications as a LED blink
`5` = show power state and MQTT publications as a LED blink
`6` = show all MQTT messages as a LED blink
`7` = show power state and MQTT messages as a LED blink
`8` = LED on when Wi-Fi and MQTT are connected.
***Cannot** be issued directly and is only activated when `LedPower` is switched from `0` to `1`* +LedState|Manage LED state
`0` = disable use of LED as much as possible
`1` = show power state on LED (LED on when power on) *(default)* *(inverted for Sonoff Touch/T1)*
`2` = show MQTT subscriptions as a LED blink
`3` = show power state and MQTT subscriptions as a LED blink
`4` = show MQTT publications as a LED blink
`5` = show power state and MQTT publications as a LED blink
`6` = show all MQTT messages as a LED blink
`7` = show power state and MQTT messages as a LED blink
`8` = LED on when Wi-Fi and MQTT are connected.
_*Cannot* be issued directly and is only activated when `LedPower` is switched from `0` to `1` due to a software function_ Power0|Control the power state simultaneously for all relays on the device  »6.6.0.9
`0` / `off` = turn OFF
`1` / `on` = turn ON
`2` / `toggle` = if relay is `ON` switch to `OFF` and vice versa -Power\|Control the corresponding Relay (enumerated) power state and also restart PulseTime\
`0` / `off` = turn OFF
`1` / `on` = turn ON
`2` / `toggle` = if relay is `ON` switch to `OFF` and vice versa
`3` / `blink` = toggle power for [BlinkCount](#blinkcount) times each [BlinkTime](#blinktime) duration (at the end of `blink`, relay power is returned to pre-blink state)
`4` / `blinkoff` = stop blink sequence and return relay power to pre-blink state -PowerOnState|Control relay state when the device is _**powered up**_. [More information](PowerOnState-Configuration)
`0` / `OFF` = keep relay(s) OFF after power up
`1` / `ON` = turn relay(s) ON after power up
`2` / `TOGGLE` = toggle relay(s) from last saved state
`3` = switch relay(s) to their last saved state *(default)*
`4` = turn relay(s) ON and disable further relay control
`5` = after a `PulseTime` period turn relay(s) ON (acts as inverted [`PulseTime`](Commands#pulsetime) mode) -PulseTime\|Display the amount of `PulseTime` remaining on the corresponding Relay (enumerated)
`` Set the duration to keep the corresponding Relay `ON` when `Power ON` command is issued. After this amount of time, the relay will be turned `OFF`.
`0` / `OFF` = disable use of PulseTime for the corresponding Relay
`1..111` = set PulseTime for the corresponding Relay in 0.1 second increments
`112..64900` = set PulseTime for the corresponding Relay, offset by 100, in 1 second increments. Add 100 to desired interval in seconds, e.g., `PulseTime 113` = 13 seconds and `PulseTime 460` = 6 minutes (i.e., 360 seconds)
-SwitchDebounce|User control over switch debounce timing   »6.2.0
`40..1000` = set switch debounce time in milliseconds *(default = `50`)* -SwitchMode\|[Switch mode](Buttons-and-Switches#switchmode)
`0` = toggle *(default)*
`1` = follow (0 = off, 1 = on)
`2` = inverted follow (0 = on, 1 = off)
`3` = pushbutton (default 1, 0 = toggle)
`4` = inverted pushbutton (default 0, 1 = toggle)
`5` = pushbutton with hold (default 1, 0 = toggle, Hold = hold)
`6` = inverted pushbutton with hold (default 0, 1 = toggle, hold = hold)
`7` = pushbutton toggle (0 = toggle, 1 = toggle) +Power\|Control the corresponding Relay (enumerated) power state and also restart PulseTime\
`0` / `off` = turn OFF
`1` / `on` = turn ON
`2` / `toggle` = if relay is `ON` switch to `OFF` and vice versa
`3` / `blink` = toggle power for [BlinkCount](#blinkcount) times each [BlinkTime](#blinktime) duration (at the end of `blink`, relay power is returned to pre-blink state)
`4` / `blinkoff` = stop blink sequence and return relay power to pre-blink state +PowerOnState|Control relay state when the device is _**powered up**_. [More information](PowerOnState-Configuration)
`0` / `OFF` = keep relay(s) OFF after power up
`1` / `ON` = turn relay(s) ON after power up
`2` / `TOGGLE` = toggle relay(s) from last saved state
`3` = switch relay(s) to their last saved state *(default)*
`4` = turn relay(s) ON and disable further relay control
`5` = after a `PulseTime` period turn relay(s) ON (acts as inverted [`PulseTime`](Commands#pulsetime) mode) +PulseTime\|Display the amount of `PulseTime` remaining on the corresponding Relay (enumerated)
`` Set the duration to keep the corresponding Relay `ON` when `Power ON` command is issued. After this amount of time, the relay will be turned `OFF`.
`0` / `OFF` = disable use of PulseTime for the corresponding Relay
`1..111` = set PulseTime for the corresponding Relay in 0.1 second increments
`112..64900` = set PulseTime for the corresponding Relay, offset by 100, in 1 second increments. Add 100 to desired interval in seconds, e.g., `PulseTime 113` = 13 seconds and `PulseTime 460` = 6 minutes (i.e., 360 seconds)
+SwitchDebounce|User control over switch debounce timing   »6.2.0
`40..1000` = set switch debounce time in milliseconds *(default = `50`)* +SwitchMode\|[Switch mode](Buttons-and-Switches#switchmode)
`0` = toggle *(default)*
`1` = follow (0 = off, 1 = on)
`2` = inverted follow (0 = on, 1 = off)
`3` = pushbutton (default 1, 0 = toggle)
`4` = inverted pushbutton (default 0, 1 = toggle)
`5` = pushbutton with hold (default 1, 0 = toggle, Hold = hold)
`6` = inverted pushbutton with hold (default 0, 1 = toggle, hold = hold)
`7` = pushbutton toggle (0 = toggle, 1 = toggle) See also|[`SetOption1`](#SetOption1) - Set button multipress mode
[`SetOption11`](#SetOption11) - Swap pushbutton single and double press functionality
[`SetOption13`](#SetOption13) - Allow immediate action on single button press
[`SetOption26`](#SetOption26) - Use indexes even when only one relay is present
[`SetOption31`](#SetOption31) - Disable Wi-Fi LED status blinking
[`SetOption32`](#SetOption32) - Set hold interval before sending `HOLD` action
[`SetOption40`](#SetOption40) - Stop detecting any input change on button GPIO
[`SetOption67`](#SetOption67) - Enable/Disable Buzzer ### Management Command|Parameters :---|:--- -Delay|`2..3600` = set delay between two backlog commands with 0.1 second increment -DeepSleepTime|Time to enter [deep sleep mode](DeepSleep)  »6.6.0.18
`0` = disable deep sleep mode *(default)*
`10..86400` = set deep sleep mode time period in seconds -Emulation|`0` = disable emulation *(default)*
`1` = enable Belkin WeMo emulation for [Alexa](Alexa)
`2` = enable Hue Bridge emulation for [Alexa](Alexa) -FriendlyName\|`1` = Reset friendly name to firmware default
`` = set friendly name (32 char limit) -Gpios|Show list of available [components](Components#components-list) by name and index
`255` / `All` Show list of all [components](Components#components-list) by name and index  »6.6.0.12
-Gpio|Show current [component](Components#components-list) assignments of the Module's configurable GPIO
`255` / `All` Show [component](Components#components-list) assignments for all the devices available GPIO  »6.6.0.17
-Gpio\|[``](Components#components-list) = assign `` to `Gpio`.
_For built-in Modules only. This command does not work for device's configured with a device Template._ +Delay|`2..3600` = set delay between two backlog commands with 0.1 second increment +DeepSleepTime|Time to enter [deep sleep mode](DeepSleep)  »6.6.0.18
`0` = disable deep sleep mode *(default)*
`10..86400` = set deep sleep mode time period in seconds +Emulation|`0` = disable emulation *(default)*
`1` = enable Belkin WeMo emulation for [Alexa](Alexa)
`2` = enable Hue Bridge emulation for [Alexa](Alexa) +FriendlyName\|`1` = Reset friendly name to firmware default
`` = set friendly name (32 char limit) +Gpios|Show list of available [components](Components#components-list) by name and index
`255` / `All` Show list of all [components](Components#components-list) by name and index  »6.6.0.12
+Gpio|Show current [component](Components#components-list) assignments of the Module's configurable GPIO
`255` / `All` Show [component](Components#components-list) assignments for all the devices available GPIO  »6.6.0.17
+Gpio\|[``](Components#components-list) = assign `` to `Gpio`.
_For built-in Modules only. This command does not work for device's configured with a device Template._ I2Cscan|Scan I2C bus and show addresses for found devices I2CDriver|[Enable / Disable I2C bus sensor drivers](https://github.com/arendst/Tasmota/commit/d2e152f91b1d722e1ce41b96c47dded2f5332ac9#commitcomment-35791139)   »7.0.0.3
-LogHost|`1` = reset [syslog](https://www.sigmdel.ca/michel/ha/rpi/syslog_en.html) host to firmware default (`SYS_LOG_HOST`)
`` = set syslog host (32 chars max) -LogPort|`1` = reset [syslog](https://www.sigmdel.ca/michel/ha/rpi/syslog_en.html) port to firmware default (`SYS_LOG_PORT`)
`2..32766` = set syslog port -Modules|Show available modules by name and index -Module|Displays active module by name and index
`` = switch to Module\ and restart
`0` = switch to defined [template](templates) and restart -MqttLog|`0` = disable logging via MQTT *(default)*
`1` = show only error messages
`2` = show error and info messages
`3` = show error, info and debug messages
`4` = show error, info and more debug messsages -NtpServer\|NTP server setup (x= `1..3`)
`0` = clear NtpServer\ settings
`1` = reset NtpServer\ settings to firmware defaults
`` = set NtpServer\ host or IP address (32 char limit) -OtaUrl|Display current OTA URL
`1` = Reset OtaUrl to firmware default
`url` = set address for OTA (100 char limit) -Pwm\|`0..1023` = set PWM value for channel -PwmFrequency|`1` = reset PWM frequency to 880Hz
`100..4000` = set PWM frequency (100Hz to 4kHz) -PwmRange|`1` = reset maximum PWM range to 1023
`255..1023` = set maximum PWM range -Reset|`1` = reset device settings to firmware defaults and restart
`2` = erase flash, reset device settings to firmware defaults and restart
`3` = erase System Parameter Area in flash (Wi-Fi calibration and related data) and restart
`4` = reset device settings to firmware defaults but retain Wi-Fi credentials and restart  »6.3.0
`5` = erase all flash and reset parameters to firmware defaults but keep Wi-Fi settings and restart
`6` = erase all flash and reset parameters to firmware defaults but keep Wi-Fi and MQTT settings and restart
*(Erase of flash can take a few seconds to complete and there is no output during the erase process on the serial or web console)*
`99` = reset device bootcount to zero  »6.6.0.10 -Restart|`1` = restart device
`99` = force restart device without configuration save -SaveData|`0` = save parameter changes only manually
`1` = save parameter changes every second *(default)*
`2..3600` = save parameter changes every x second -SerialLog|Disable hardware serial bridge and
`0` = disable serial logging
`1` = show only error messages
`2` = show error and info messages *(default)*
`3` = show error, info and debug messages
`4` = show error, info and more debug messages
`SerialLog` will be disabled automatically 10 minutes after the device reboots. -Sleep|`0` = turn sleep off
`1..250` = set sleep duration in milliseconds to enable [energy saving](energy-saving) *(default = `50`)* -State|Display current device state and publish to `%prefix%/%topic%/RESULT` topic  »5.12.0 -Status|` ` = show abbreviated [status information](JSON-Status-Responses#basic-response)
`0` = show all status information (1 - 11)
`1` = show device parameters information
`2` = show firmware information
`3` = show logging and telemetry information
`4` = show memory information
`5` = show network information
`6` = show MQTT information
`7` = show time information
`8` = show connected sensor information
`9` = show power thresholds *(only on modules with power monitoring)*
`10` = same as `Status 8` *(retained for backwards compatibility)*
`11` = show information equal to [`TelePeriod`](#teleperiod) state message -SysLog|`0` = disable syslog logging *(default)*
`1` = show only error messages
`2` = show error and info messages
`3` = show error, info and debug messages
`4` = show error, info and more debug messages -Template|Show current [Template](Templates)  »6.5.0
`0` = create template from active module
`x` = create template from a [supported module](modules)
`255` = merge current module and template settings into new template
`{ ... }` = store template in a [JSON payload](Templates#explanation-of-template-properties)
Does not activate the template. To activate use `Module 0`. -Time|`0` = enable NTP *(default)*  »6.6.0.1
`1` = format JSON message timestamp in ISO format  »6.6.0.10
`2` = format JSON message timestamp in both ISO and Epoch format
`3` = format JSON message timestamp in Epoch format
`` = disable NTP and set UTC time as epoch value if greater than `1451602800` (January 1, 2016)  »6.6.0.1 -TimeSTD
TimeDST|Set policies for the beginning of daylight saving time (DST) and return back to standard time (STD)  »5.14.0
`0` = reset parameters to firmware defaults
`H`,`W`,`M`,`D`,`h`,`T`
`H` = hemisphere (`0` = northern hemisphere / `1` = southern hemisphere)
`W` = week (`0` = last week of month, `1..4` = first .. fourth)
`M` = month (`1..12`)
`D` = day of week (`1..7` `1` = sunday `7` = saturday)
`h` = hour (`0..23`)
`T` = timezone (`-780..780`) (offset from UTC in **MINUTES** - 780min / 60min=13hrs)
_Example:_ `TIMEDST 1,1,10,1,2,660` -Timezone|`-13..+13` = set timezone offset from UTC in hours
`-13:00..+13:00` = set timezone offset from UTC in hours and minutes
`99` = use timezone configured with `TimeDST` and `TimeSTD` -TuyaMCU|Used to map functions in TuyaMCU   »6.7.1
`,` = [read more...](TuyaMCU)
`,0` = remove setting for fnId -Upgrade|`1` = download firmware from `OtaUrl` and restart
`` = download firmware from `OtaUrl` if \ is higher than device version -Upload|`1` = download firmware from `OtaUrl` and restart
`` = download firmware from `OtaUrl` if \ is higher than device version -WebLog|`0` = disable web logging
`1` = show only error messages
`2` = show error and info messages *(default)*
`3` = show error, info and debug messages
`4` = show error, info and more debug messages +LogHost|`1` = reset [syslog](https://www.sigmdel.ca/michel/ha/rpi/syslog_en.html) host to firmware default (`SYS_LOG_HOST`)
`` = set syslog host (32 chars max) +LogPort|`1` = reset [syslog](https://www.sigmdel.ca/michel/ha/rpi/syslog_en.html) port to firmware default (`SYS_LOG_PORT`)
`2..32766` = set syslog port +Modules|Show available modules by name and index +Module|Displays active module by name and index
`` = switch to Module\ and restart
`0` = switch to defined [template](templates) and restart +MqttLog|`0` = disable logging via MQTT *(default)*
`1` = show only error messages
`2` = show error and info messages
`3` = show error, info and debug messages
`4` = show error, info and more debug messsages +NtpServer\|NTP server setup (x= `1..3`)
`0` = clear NtpServer\ settings
`1` = reset NtpServer\ settings to firmware defaults
`` = set NtpServer\ host or IP address (32 char limit) +OtaUrl|Display current OTA URL
`1` = Reset OtaUrl to firmware default
`url` = set address for OTA (100 char limit) +Pwm\|`0..1023` = set PWM value for channel +PwmFrequency|`1` = reset PWM frequency to 880Hz
`100..4000` = set PWM frequency (100Hz to 4kHz) +PwmRange|`1` = reset maximum PWM range to 1023
`255..1023` = set maximum PWM range +Reset|`1` = reset device settings to firmware defaults and restart
`2` = erase flash, reset device settings to firmware defaults and restart
`3` = erase System Parameter Area in flash (Wi-Fi calibration and related data) and restart
`4` = reset device settings to firmware defaults but retain Wi-Fi credentials and restart  »6.3.0
`5` = erase all flash and reset parameters to firmware defaults but keep Wi-Fi settings and restart
`6` = erase all flash and reset parameters to firmware defaults but keep Wi-Fi and MQTT settings and restart
*(Erase of flash can take a few seconds to complete and there is no output during the erase process on the serial or web console)*
`99` = reset device bootcount to zero  »6.6.0.10 +Restart|`1` = restart device
`99` = force restart device without configuration save +SaveData|`0` = save parameter changes only manually
`1` = save parameter changes every second *(default)*
`2..3600` = save parameter changes every x second +SerialLog|Disable hardware serial bridge and
`0` = disable serial logging
`1` = show only error messages
`2` = show error and info messages *(default)*
`3` = show error, info and debug messages
`4` = show error, info and more debug messages
`SerialLog` will be disabled automatically 10 minutes after the device reboots. +Sleep|`0` = turn sleep off
`1..250` = set sleep duration in milliseconds to enable [energy saving](energy-saving) *(default = `50`)* +State|Display current device state and publish to `%prefix%/%topic%/RESULT` topic  »5.12.0 +Status|` ` = show abbreviated [status information](JSON-Status-Responses#basic-response)
`0` = show all status information (1 - 11)
`1` = show device parameters information
`2` = show firmware information
`3` = show logging and telemetry information
`4` = show memory information
`5` = show network information
`6` = show MQTT information
`7` = show time information
`8` = show connected sensor information
`9` = show power thresholds *(only on modules with power monitoring)*
`10` = same as `Status 8` *(retained for backwards compatibility)*
`11` = show information equal to [`TelePeriod`](#teleperiod) state message +SysLog|`0` = disable syslog logging *(default)*
`1` = show only error messages
`2` = show error and info messages
`3` = show error, info and debug messages
`4` = show error, info and more debug messages +Template|Show current [Template](Templates)  »6.5.0
`0` = create template from active module
`x` = create template from a [supported module](modules)
`255` = merge current module and template settings into new template
`{ ... }` = store template in a [JSON payload](Templates#explanation-of-template-properties)
Does not activate the template. To activate use `Module 0`. +Time|`0` = enable NTP *(default)*  »6.6.0.1
`1` = format JSON message timestamp in ISO format  »6.6.0.10
`2` = format JSON message timestamp in both ISO and Epoch format
`3` = format JSON message timestamp in Epoch format
`` = disable NTP and set UTC time as epoch value if greater than `1451602800` (January 1, 2016)  »6.6.0.1 +TimeSTD
TimeDST|Set policies for the beginning of daylight saving time (DST) and return back to standard time (STD)  »5.14.0
`0` = reset parameters to firmware defaults
`H`,`W`,`M`,`D`,`h`,`T`
`H` = hemisphere (`0` = northern hemisphere / `1` = southern hemisphere)
`W` = week (`0` = last week of month, `1..4` = first .. fourth)
`M` = month (`1..12`)
`D` = day of week (`1..7` `1` = sunday `7` = saturday)
`h` = hour (`0..23`)
`T` = timezone (`-780..780`) (offset from UTC in **MINUTES** - 780min / 60min=13hrs)
_Example:_ `TIMEDST 1,1,10,1,2,660` +Timezone|`-13..+13` = set timezone offset from UTC in hours
`-13:00..+13:00` = set timezone offset from UTC in hours and minutes
`99` = use timezone configured with `TimeDST` and `TimeSTD` +TuyaMCU|Used to map functions in TuyaMCU   »6.7.1
`,` = [read more...](TuyaMCU)
`,0` = remove setting for fnId +Upgrade|`1` = download firmware from `OtaUrl` and restart
`` = download firmware from `OtaUrl` if \ is higher than device version +Upload|`1` = download firmware from `OtaUrl` and restart
`` = download firmware from `OtaUrl` if \ is higher than device version +WebLog|`0` = disable web logging
`1` = show only error messages
`2` = show error and info messages *(default)*
`3` = show error, info and debug messages
`4` = show error, info and more debug messages See also|[`SetOption68`](#Setoption68) - PWM Channel control
[`SetOption76`](#Setoption76) - DeepSleep disable bootcount incrementing ### Wi-Fi Command|Parameters :---|:--- -AP|`0` = switch to other Wi-Fi Access Point
`1`= select Wi-Fi Access Point 1
`2`= select Wi-Fi Access Point 2 -Hostname|`1` = reset hostname to `MQTT_TOPIC-<4digits>` and restart
`` = set hostname (32 char limit) and restart. If hostname contains `%` it will be reset to the default instead.
**_If using MQTT to issue this command, if it is used with the device `GroupTopic`, the command will not be executed._** -IPAddress\|Set networking IP (`XXX.XXX.XXX.XXX`) addresses
`IPAddress1` = set device IP address
  • `0.0.0.0` = use dynamic IP address (DHCP)
  • `XXX.XXX.XXX.XXX` = set static IP address
  • `IPAddress2` = set gateway IP address
    `IPAddress3` = set subnet mask
    `IPAddress4` = set DNS server IP address

    *follow IPAddress commands with `restart 1` to apply changes* -Password\|`` = `1..2`
    `` = set AP\ Wi-Fi password and restart
    `1` = reset AP\ Wi-Fi password to firmware default (`STA_PASS1` or `STA_PASS2`) and restart
    Passwords are limited to 64 characters. **Do not use special characters or white spaces in the password**.
    **Note that `Password` and `Password1` are equivalent commands.** -Ssid\|`` = `1..2`
    `` = set AP\ Wi-Fi SSID and restart
    `1` = reset AP\ Wi-Fi SSID to firmware default (`STA_SSID1` or `STA_SSID2`) and restart
    SSID are limited to 32 characters. **Do not use special characters or white spaces in the SSID** -WebColor\|Configure Web GUI colors (x = `1..19`)  »6.6.0
    `#RRGGBB` = Set color for `WebColor`
    `1` = Global text (Black)
    `2` = Global background (White)
    `3` = Form background (Greyish)
    `4` = Input text (Black)
    `5` = Input background (White)
    `6` = Console text (Black)
    `7` = Console background (White)
    `8` = Warning text (Red)
    `9` = Success text (Green)
    `10` = Button text (White)
    `11` = Button (Blueish)
    `12` = Button hovered over (Darker blueish)
    `13` = Restart/Reset/Delete button (Redish)
    `14` = Restart/Reset/Delete button hover (Darker reddish)
    `15` = Save button (Greenish)
    `16` = Save button hover (Darker greenish)
    `17` = Config timer tab text (White)
    `18` = Config timer tab background (Light grey)
    `19` = Module title and FriendlyName text (Whiteish)
    [User themes](webui#themes) -WebPassword|Show current web server password
    `0` = disable use of password for web UI
    `1` = reset password to firmware default (`WEB_PASSWORD`)
    `` = set web UI password (32 char limit) for user `WEB_USERNAME` *(Default WEB_USERNAME = `admin`)* -WebRefresh|Web page refresh  »6.3.0
    `1000..10000` = set refresh time in milliseconds *(default = `2345`)* -WebSend|Send a command to Tasmota host over http. If a command starts with a `\` it will be used as a link.  »6.1.0
    `[:,:] `
    `` = hostname or IP address.
    `` = port for the device if not the default `80`
    `` = enter username of the device you're sending the command to
    `` = enter password of the device you're sending the command to
    `` = command and payload
    *example: `[] POWER1 ON` sends `http:///cm?cmnd=POWER1 ON`* -WebSensor\|Control display of sensor telemetry in the web UI  »6.6.0.5
    `0` - Do not display sensor's telemetry
    `1` - Display sensor's telemetry (*default*)
    `` = number corresponding to the sensor - listed in the `sns` section of the [supported sensor spreadsheet](https://docs.google.com/spreadsheets/d/e/2PACX-1vRBFqaP5QAFmT8iIYBxrn-EQp7-SrkxL6tb0OjpqtBxDEsmkiWCFei3sFyA_UXoqlbs3CqtEdOfC6Pa/pubhtml?gid=1029939700&single=true)
    `` = `3` Energy telemetry
    Issue a `Status 4` to obtain a list of sensor types enabled in the firmware loaded on the device. -WebServer|`0` = stop web server
    `1` = start web server in user mode
    `2` = start web server in admin mode -WifiConfig|`0` - disable Wi-Fi Manager and reboot (used with alternate AP)
    `2` = set [Wi-Fi Manager](https://github.com/tzapu/WiFiManager/blob/master/README.md#how-it-works) as the current configuration tool and start Wi-Fi Manager (web server at 192.168.4.1) for 3 minutes, then reboot and try to connect Wi-Fi network
    `4` = disable Wi-Fi Manager but retry other AP without rebooting
    `5` = disable Wi-Fi Manager and alternatively retry AP1 and AP2 until connected without rebooting
    `6` = Wi-Fi parameters can only be entered via commands in the serial console
    `7` = set [Wi-Fi Manager](https://github.com/tzapu/WiFiManager/blob/master/README.md#how-it-works) (web server at 192.168.4.1) as the current configuration tool restricted with the only option to reset settings.   »6.5.0
    _This setting is recommended for devices without an external control/reset button_.
     _No longer supported_ » v6.6.0.21
    `1` = set [SmartConfig](https://community.particle.io/t/smart-config-the-missing-manual-now-available/442) ([Android](https://play.google.com/store/apps/details?id=com.iotmaker&hl=en_US)/iOS) as the current configuration tool, start SmartConfig for 3 minutes and reboot and try to connect to Wi-Fi
    `3` = set [WPS](https://en.wikipedia.org/wiki/Wi-Fi_Protected_Setup) as configuration tool, try WPS for 3 minutes and reboot and try to connect to Wi-Fi -[WifiPower](WifiPower)|set Wi-Fi transmit power level in decibel-milliwatts (dBm) *(default = `17`)* +AP|`0` = switch to other Wi-Fi Access Point
    `1`= select Wi-Fi Access Point 1
    `2`= select Wi-Fi Access Point 2 +Hostname|`1` = reset hostname to `MQTT_TOPIC-<4digits>` and restart
    `` = set hostname (32 char limit) and restart. If hostname contains `%` it will be reset to the default instead.
    **_If using MQTT to issue this command, if it is used with the device `GroupTopic`, the command will not be executed._** +IPAddress\|Set networking IP (`XXX.XXX.XXX.XXX`) addresses
    `IPAddress1` = set device IP address
  • `0.0.0.0` = use dynamic IP address (DHCP)
  • `XXX.XXX.XXX.XXX` = set static IP address
  • `IPAddress2` = set gateway IP address
    `IPAddress3` = set subnet mask
    `IPAddress4` = set DNS server IP address

    *follow IPAddress commands with `restart 1` to apply changes* +Password\|`` = `1..2`
    `` = set AP\ Wi-Fi password and restart
    `1` = reset AP\ Wi-Fi password to firmware default (`STA_PASS1` or `STA_PASS2`) and restart
    Passwords are limited to 64 characters. **Do not use special characters or white spaces in the password**.
    **Note that `Password` and `Password1` are equivalent commands.** +Ssid\|`` = `1..2`
    `` = set AP\ Wi-Fi SSID and restart
    `1` = reset AP\ Wi-Fi SSID to firmware default (`STA_SSID1` or `STA_SSID2`) and restart
    SSID are limited to 32 characters. **Do not use special characters or white spaces in the SSID** +WebColor\|Configure Web GUI colors (x = `1..19`)  »6.6.0
    `#RRGGBB` = Set color for `WebColor`
    `1` = Global text (Black)
    `2` = Global background (White)
    `3` = Form background (Greyish)
    `4` = Input text (Black)
    `5` = Input background (White)
    `6` = Console text (Black)
    `7` = Console background (White)
    `8` = Warning text (Red)
    `9` = Success text (Green)
    `10` = Button text (White)
    `11` = Button (Blueish)
    `12` = Button hovered over (Darker blueish)
    `13` = Restart/Reset/Delete button (Redish)
    `14` = Restart/Reset/Delete button hover (Darker reddish)
    `15` = Save button (Greenish)
    `16` = Save button hover (Darker greenish)
    `17` = Config timer tab text (White)
    `18` = Config timer tab background (Light grey)
    `19` = Module title and FriendlyName text (Whiteish)
    [User themes](webui#themes) +WebPassword|Show current web server password
    `0` = disable use of password for web UI
    `1` = reset password to firmware default (`WEB_PASSWORD`)
    `` = set web UI password (32 char limit) for user `WEB_USERNAME` *(Default WEB_USERNAME = `admin`)* +WebRefresh|Web page refresh  »6.3.0
    `1000..10000` = set refresh time in milliseconds *(default = `2345`)* +WebSend|Send a command to Tasmota host over http. If a command starts with a `\` it will be used as a link.  »6.1.0
    `[:,:] `
    `` = hostname or IP address.
    `` = port for the device if not the default `80`
    `` = enter username of the device you're sending the command to
    `` = enter password of the device you're sending the command to
    `` = command and payload
    *example: `[] POWER1 ON` sends `http:///cm?cmnd=POWER1 ON`* +WebSensor\|Control display of sensor telemetry in the web UI  »6.6.0.5
    `0` - Do not display sensor's telemetry
    `1` - Display sensor's telemetry (*default*)
    `` = number corresponding to the sensor - listed in the `sns` section of the [supported sensor spreadsheet](https://docs.google.com/spreadsheets/d/e/2PACX-1vRBFqaP5QAFmT8iIYBxrn-EQp7-SrkxL6tb0OjpqtBxDEsmkiWCFei3sFyA_UXoqlbs3CqtEdOfC6Pa/pubhtml?gid=1029939700&single=true)
    `` = `3` Energy telemetry
    Issue a `Status 4` to obtain a list of sensor types enabled in the firmware loaded on the device. +WebServer|`0` = stop web server
    `1` = start web server in user mode
    `2` = start web server in admin mode +WifiConfig|`0` - disable Wi-Fi Manager and reboot (used with alternate AP)
    `2` = set [Wi-Fi Manager](https://github.com/tzapu/WiFiManager/blob/master/README.md#how-it-works) as the current configuration tool and start Wi-Fi Manager (web server at 192.168.4.1) for 3 minutes, then reboot and try to connect Wi-Fi network
    `4` = disable Wi-Fi Manager but retry other AP without rebooting
    `5` = disable Wi-Fi Manager and alternatively retry AP1 and AP2 until connected without rebooting
    `6` = Wi-Fi parameters can only be entered via commands in the serial console
    `7` = set [Wi-Fi Manager](https://github.com/tzapu/WiFiManager/blob/master/README.md#how-it-works) (web server at 192.168.4.1) as the current configuration tool restricted with the only option to reset settings.   »6.5.0
    _This setting is recommended for devices without an external control/reset button_.
     _No longer supported_ » v6.6.0.21
    `1` = set [SmartConfig](https://community.particle.io/t/smart-config-the-missing-manual-now-available/442) ([Android](https://play.google.com/store/apps/details?id=com.iotmaker&hl=en_US)/iOS) as the current configuration tool, start SmartConfig for 3 minutes and reboot and try to connect to Wi-Fi
    `3` = set [WPS](https://en.wikipedia.org/wiki/Wi-Fi_Protected_Setup) as configuration tool, try WPS for 3 minutes and reboot and try to connect to Wi-Fi +[WifiPower](WifiPower)|set Wi-Fi transmit power level in decibel-milliwatts (dBm) *(default = `17`)* See also|[`SetOption55`](#Setoption55) - mDNS service control
    [`SetOption56`](#Setoption56) - Wi-Fi network scan to select strongest signal on restart
    [`SetOption57`](#Setoption57) - Wi-Fi network re-scan, alternate AP ### MQTT Command|Parameters :---|:--- -ButtonRetain|`0` = disable use of MQTT retain flag *(default)*
    `1` = enable MQTT retain flag on button press -ButtonTopic|`` = set MQTT button topic (32 chars max)
    `0` = disable use of MQTT button topic
    `1` = set MQTT button topic to device `%topic%`
    `2` = reset MQTT button topic to firmware default (`MQTT_BUTTON_TOPIC`) *(default = `0`)*
    _If using MQTT to issue this command, if it is published to the device `GroupTopic`, the command will not be executed._ -FullTopic|`1` = reset MQTT fulltopic to firmware default (`MQTT_FULLTOPIC`) and restart
    `` = set MQTT fulltopic (100 chars max) and restart. Use of [optional %prefix%, %topic%, %hostname%, and %id% substitution tokens](MQTT#mqtt-topic-definition) is allowed.
    *If using MQTT to issue this command, if it is published to the device `GroupTopic`, _you must ensure uniqueness of the resulting fulltopic on each destination device by using one or more of these substitution tokens._* -GroupTopic|`1` = reset MQTT group topic to firmware default (`MQTT_GRPTOPIC`) and restart
    `` = set MQTT group topic (32 chars max) and restart -MqttClient|`1` = reset MQTT client to firmware config (`MQTT_CLIENT_ID`) and restart
    `` = set MQTT client (32 chars max) and restart.
    You can use the `%06X` substitution token to replace with last six characters of MAC address.
    _If using MQTT to issue this command, if it is used with the device `GroupTopic`, the command will not be executed._ -MqttFingerprint|*TLS needs to be enabled in firmware for this command*  »5.13.1
    `` = set current fingerprint as 20 space separated bytes (59 chars max) -MqttHost|`0` = clear MQTT host field and allow mDNS to find MQTT host
    `1` = reset MQTT host to firmware default (`MQTT_HOST`) and restart
    `` = set MQTT host (32 chars max) and restart (do NOT use `.local`) -MqttPassword|`0` = clear MQTT password
    `1` = reset MQTT password to firmware default (`MQTT_PASS`) and restart
    `` = set MQTT password (32 chars max) and restart -MqttPort|`1` = reset MQTT port to firmware default (`MQTT_PORT`) and restart
    `` = set MQTT port between 2 and 32766 and restart -MqttRetry|`10..32000` = set MQTT connection retry timer in seconds *(default = `10`)* -MqttUser|`0` = clear MQTT user name
    `1` = reset MQTT user name to firmware default (`MQTT_USER`) and restart
    `` = set MQTT user name (32 chars max) and restart -PowerRetain|MQTT [power retain state](PowerOnState-Configuration#side-effects-with-using-mqtt-messages)
    `0` / `off` = disable MQTT power retain on status update *(default)*
    `1` / `on` = enable MQTT power retain on status update
    +ButtonRetain|`0` = disable use of MQTT retain flag *(default)*
    `1` = enable MQTT retain flag on button press +ButtonTopic|`` = set MQTT button topic (32 chars max)
    `0` = disable use of MQTT button topic
    `1` = set MQTT button topic to device `%topic%`
    `2` = reset MQTT button topic to firmware default (`MQTT_BUTTON_TOPIC`) *(default = `0`)*
    _If using MQTT to issue this command, if it is published to the device `GroupTopic`, the command will not be executed._ +FullTopic|`1` = reset MQTT fulltopic to firmware default (`MQTT_FULLTOPIC`) and restart
    `` = set MQTT fulltopic (100 chars max) and restart. Use of [optional %prefix%, %topic%, %hostname%, and %id% substitution tokens](MQTT#mqtt-topic-definition) is allowed.
    *If using MQTT to issue this command, if it is published to the device `GroupTopic`, _you must ensure uniqueness of the resulting fulltopic on each destination device by using one or more of these substitution tokens._* +GroupTopic|`1` = reset MQTT group topic to firmware default (`MQTT_GRPTOPIC`) and restart
    `` = set MQTT group topic (32 chars max) and restart +MqttClient|`1` = reset MQTT client to firmware config (`MQTT_CLIENT_ID`) and restart
    `` = set MQTT client (32 chars max) and restart.
    You can use the `%06X` substitution token to replace with last six characters of MAC address.
    _If using MQTT to issue this command, if it is used with the device `GroupTopic`, the command will not be executed._ +MqttFingerprint|*TLS needs to be enabled in firmware for this command*  »5.13.1
    `` = set current fingerprint as 20 space separated bytes (59 chars max) +MqttHost|`0` = clear MQTT host field and allow mDNS to find MQTT host
    `1` = reset MQTT host to firmware default (`MQTT_HOST`) and restart
    `` = set MQTT host (32 chars max) and restart (do NOT use `.local`) +MqttPassword|`0` = clear MQTT password
    `1` = reset MQTT password to firmware default (`MQTT_PASS`) and restart
    `` = set MQTT password (32 chars max) and restart +MqttPort|`1` = reset MQTT port to firmware default (`MQTT_PORT`) and restart
    `` = set MQTT port between 2 and 32766 and restart +MqttRetry|`10..32000` = set MQTT connection retry timer in seconds *(default = `10`)* +MqttUser|`0` = clear MQTT user name
    `1` = reset MQTT user name to firmware default (`MQTT_USER`) and restart
    `` = set MQTT user name (32 chars max) and restart +PowerRetain|MQTT [power retain state](PowerOnState-Configuration#side-effects-with-using-mqtt-messages)
    `0` / `off` = disable MQTT power retain on status update *(default)*
    `1` / `on` = enable MQTT power retain on status update
    Prefix1|`1` = reset MQTT command subscription prefix to firmware default (`SUB_PREFIX`) and restart
    `` = set MQTT command subscription prefix (10 chars max) and restart Prefix2|`1` = reset MQTT status prefix to firmware default (`PUB_PREFIX`) and restart
    `` = set MQTT status prefix (10 chars max) and restart Prefix3|`1` = Reset MQTT telemetry prefix to firmware default (`PUB_PREFIX2`) and restart
    `` = set MQTT telemetry prefix (10 chars max) and restart -Publish|` ` = MQTT publish any topic and optional payload  »5.13.0 +Publish|` ` = MQTT publish any topic and optional payload  »5.13.0 Publish2|` ` = MQTT publish any topic and optional payload with retain flag  »6.2.0 -SensorRetain|`0` = disable use of sensor MQTT retain flag *(default)*
    `1` = enable MQTT retain flag on message `tele/%topic%/SENSOR` +SensorRetain|`0` = disable use of sensor MQTT retain flag *(default)*
    `1` = enable MQTT retain flag on message `tele/%topic%/SENSOR` StateText1|`` = set `OFF` state text (10 chars max) StateText2|`` = set `ON` state text (10 chars max) StateText3|`` = set `TOGGLE` state text (10 chars max) StateText4|`` = set `HOLD` state text (10 chars max) -SwitchRetain|`0` = disable use of MQTT retain flag *(default)*
    `1` = enable MQTT retain flag on switch press -Subscribe|Subscribes to an MQTT topic and assigns an Event name to it.  »6.5.0
    `, [, ]` = [Read more...](Subscribe-&-Unsubscribe)
    ` ` = list all topics currently subscribed -SwitchTopic|`` = set MQTT switch topic (32 chars max)
    `0` = disable use of MQTT switch topic
    `1` = set MQTT switch topic to device `%topic%`
    `2` = reset MQTT switch topic to firmware default (`MQTT_SWITCH_TOPIC`) *(default = `0`)*
    [Read more](Buttons-and-switches) about this.
    _If using MQTT to issue this command, if it is used with the device `GroupTopic`, the command will not be executed._ -TelePeriod|`0` = disable telemetry messages
    `1` = reset telemetry period to firmware default (`TELE_PERIOD`)
    `10..3600` = set telemetry period in seconds *(default = `300`)* -Topic|`1` = reset MQTT topic to firmware default (`MQTT_TOPIC`) and restart
    `` = set MQTT topic (32 chars max) **and** `ButtonTopic` and restart.
    *If using MQTT to issue this command, if it is used with the device `GroupTopic`, the command will not be executed. (Mqtt Topic can't be equal to Mqtt Client)* -Unsubscribe|Unsubscribe from topics subsribed to with [`Subscribe`](#subscribe)   »6.5.0
    ` ` = unsubscribe all topics
    `` = unsubscribe from a specific MQTT topic +SwitchRetain|`0` = disable use of MQTT retain flag *(default)*
    `1` = enable MQTT retain flag on switch press +Subscribe|Subscribes to an MQTT topic and assigns an Event name to it.  »6.5.0
    `, [, ]` = [Read more...](Subscribe-&-Unsubscribe)
    ` ` = list all topics currently subscribed +SwitchTopic|`` = set MQTT switch topic (32 chars max)
    `0` = disable use of MQTT switch topic
    `1` = set MQTT switch topic to device `%topic%`
    `2` = reset MQTT switch topic to firmware default (`MQTT_SWITCH_TOPIC`) *(default = `0`)*
    [Read more](Buttons-and-switches) about this.
    _If using MQTT to issue this command, if it is used with the device `GroupTopic`, the command will not be executed._ +TelePeriod|`0` = disable telemetry messages
    `1` = reset telemetry period to firmware default (`TELE_PERIOD`)
    `10..3600` = set telemetry period in seconds *(default = `300`)* +Topic|`1` = reset MQTT topic to firmware default (`MQTT_TOPIC`) and restart
    `` = set MQTT topic (32 chars max) **and** `ButtonTopic` and restart.
    *If using MQTT to issue this command, if it is used with the device `GroupTopic`, the command will not be executed. (Mqtt Topic can't be equal to Mqtt Client)* +Unsubscribe|Unsubscribe from topics subsribed to with [`Subscribe`](#subscribe)   »6.5.0
    ` ` = unsubscribe all topics
    `` = unsubscribe from a specific MQTT topic See also|[`SetOption4`](#setoption4) - Return MQTT response as `RESULT` or `%COMMAND%` topic
    [`SetOption10`](#setoption10) - Main topic change behavior ### Rules Command|Parameters :---|:--- -Add\|`` = add value to Var\ ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))  »6.1.0 -CalcRes|Current calculation resolution  »6.4.0
    `0..7` = set number of decimal places to be used in `Add`, `Sub`, `Mult` and `Scale` -Event|Execute an event to trigger a rule as [documented](Rules#trigger)  »5.13.0 -Mem\|Manage up to 5 variables stored on flash (x = `1..5`)  »6.1.0
    `Mem` returns all current values. `Mem` returns the variable's current value.  »6.6.0.2
    `` = store a string value in a variable
    `"` = clear stored value in Mem\ -Mult\|`` = multiply value to Var\ ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))  »6.1.0
    -Rule\|Rules. [Read more...](Rules)  »6.1.0
    `0` = disable Rule\
    `1` = enable Rule\
    `2` = toggle Rule\
    `4` = disable one-shot detection (perform commands as long as trigger is met)
    `5` = enable one-shot (e.g., sometimes used for slow changing sensors like temperature) detection
    `6` = toggle one-shot detection
    `8` = disable stop-on-error after exception restart
    `9` = enable stop-on-error after exception restart
    `10` = toggle stop-on-error after exception restart
    `` = define Rule\
    `+` = append to Rule\
    ` ` = clear Rule\ -RuleTimer\|Up to eight timers to be used as countdown event (x = `1..8`)  »5.13.0
    `0..32766` = set countdown rule timer in seconds -Scale\|Scale value from a low and high limit to another low and high limits and save in Var\ ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))  »6.1.0
    `v` = value: the number to scale
    `fl` = fromLow: the lower bound of the value’s current range
    `fh` = fromHigh: the upper bound of the value’s current range
    `tl` = toLow: the lower bound of the value’s target range
    `th` = toHigh: the upper bound of the value’s target range -Sub\|`` = subtract value to Var\ ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))  »6.1.0 -Var\|Manage up to 5 variables stored in memory (x = `1..5`)  »6.1.0
    `Var` returns all current values. `Var` returns the variable's current value.  »6.6.0.2
    `` = store a string value in a variable
    `"` = clear stored value in Var\ +Add\|`` = add value to Var\ ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))  »6.1.0 +CalcRes|Current calculation resolution  »6.4.0
    `0..7` = set number of decimal places to be used in `Add`, `Sub`, `Mult` and `Scale` +Event|Execute an event to trigger a rule as [documented](Rules#trigger)  »5.13.0 +Mem\|Manage up to 5 variables stored on flash (x = `1..5`)  »6.1.0
    `Mem` returns all current values. `Mem` returns the variable's current value.  »6.6.0.2
    `` = store a string value in a variable
    `"` = clear stored value in Mem\ +Mult\|`` = multiply value to Var\ ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))  »6.1.0
    +Rule\|Rules. [Read more...](Rules)  »6.1.0
    `0` = disable Rule\
    `1` = enable Rule\
    `2` = toggle Rule\
    `4` = disable one-shot detection (perform commands as long as trigger is met)
    `5` = enable one-shot (e.g., sometimes used for slow changing sensors like temperature) detection
    `6` = toggle one-shot detection
    `8` = disable stop-on-error after exception restart
    `9` = enable stop-on-error after exception restart
    `10` = toggle stop-on-error after exception restart
    `` = define Rule\
    `+` = append to Rule\
    ` ` = clear Rule\ +RuleTimer\|Up to eight timers to be used as countdown event (x = `1..8`)  »5.13.0
    `0..32766` = set countdown rule timer in seconds +Scale\|Scale value from a low and high limit to another low and high limits and save in Var\ ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))  »6.1.0
    `v` = value: the number to scale
    `fl` = fromLow: the lower bound of the value’s current range
    `fh` = fromHigh: the upper bound of the value’s current range
    `tl` = toLow: the lower bound of the value’s target range
    `th` = toHigh: the upper bound of the value’s target range +Sub\|`` = subtract value to Var\ ([example](Rule-Cookbook/#arithmetic-commands-to-be-used-with-vars))  »6.1.0 +Var\|Manage up to 5 variables stored in memory (x = `1..5`)  »6.1.0
    `Var` returns all current values. `Var` returns the variable's current value.  »6.6.0.2
    `` = store a string value in a variable
    `"` = clear stored value in Var\ ### Timers » v5.13.1 Command|Parameters :---|:--- -Latitude|`` = set latitude -Longitude|`` = set longitude -Timers|Timers control
    `0` = disable all timers  »6.2.0
    `1` = enable all timers
    `2` = toggle all timers
    -Timer\|Parameters for Timer\ where x = `1..16`
    `0` = clear parameters for Timer\  »6.2.0
    `1..16` = copy Timer\ parameters to Timer\
    `{ "name":value ; .. }` = set all or individual parameters using JSON payload with names and values of data pairs from the [table](https://github.com/arendst/Tasmota/wiki/Timers#json-payload-anatomy) +Latitude|`` = set latitude +Longitude|`` = set longitude +Timers|Timers control
    `0` = disable all timers  »6.2.0
    `1` = enable all timers
    `2` = toggle all timers
    +Timer\|Parameters for Timer\ where x = `1..16`
    `0` = clear parameters for Timer\  »6.2.0
    `1..16` = copy Timer\ parameters to Timer\
    `{ "name":value ; .. }` = set all or individual parameters using JSON payload with names and values of data pairs from the [table](https://github.com/arendst/Tasmota/wiki/Timers#json-payload-anatomy) > [!Note] > Information on sensors documented below is transmitted in the Tasmota telemetry message @@ -259,14 +259,14 @@ Timer\|Parameters for Timer\ where x = `1..16`
    `0` Command|Parameters :---|:--- -AdcParam|ADC0 analog input tuning parameters  »6.6.0
    `, , , `
    ``
  • `2` = Temperature [Steinhart-Hart thermistor equation](https://en.wikipedia.org/wiki/Steinhart%E2%80%93Hart_equation) parameters:
    • `` = NTC Voltage bridge resistor in Ohms *(default = `32000`)*
      `` = NTC Resistance in Ohms *(default = `10000`)*
      `` = NTC Beta Coefficient *(default = `3350`)*
  • `3` = Light [Lux equation](https://www.allaboutcircuits.com/projects/design-a-luxmeter-using-a-light-dependent-resistor/) parameters:
    • `` = LDR Voltage bridge resistor in Ohms *(default = `10000`)*
      `` = LDR Lux Scalar *(default = `12518931`)*
      `` = LDR Lux Exponent *(default = `-1.4050`)* -Altitude|`-30000..30000` - altitude in meters -AmpRes|Current sensor resolution
      `0..3` = maximum number of decimal places -Counter\|`0` = reset Counter\
      `1..64900` = preset Counter\
      `-1..-64900` = decrease Counter\
      `+1..+64900` = increase Counter\
      In order to define and use a Counter, _**you must configure one of the free device GPIO as `Counter`**_ -CounterDebounce|`0` = turn off counter debounce
      `1..3200` = set counter debounce time in milliseconds -CounterType\|`0` = set Counter\ as pulse Counter
      `1` = set Counter\ as pulse Timer -HumRes|Humidity sensor resolution
      `0..3` = maximum number of decimal places -PressRes|Pressure sensor resolution
      `0..3` = maximum number of decimal places +AdcParam|ADC0 analog input tuning parameters  »6.6.0
      `, , , `
      ``
    • `2` = Temperature [Steinhart-Hart thermistor equation](https://en.wikipedia.org/wiki/Steinhart%E2%80%93Hart_equation) parameters:
      • `` = NTC Voltage bridge resistor in Ohms *(default = `32000`)*
        `` = NTC Resistance in Ohms *(default = `10000`)*
        `` = NTC Beta Coefficient *(default = `3350`)*
    • `3` = Light [Lux equation](https://www.allaboutcircuits.com/projects/design-a-luxmeter-using-a-light-dependent-resistor/) parameters:
      • `` = LDR Voltage bridge resistor in Ohms *(default = `10000`)*
        `` = LDR Lux Scalar *(default = `12518931`)*
        `` = LDR Lux Exponent *(default = `-1.4050`)* +Altitude|`-30000..30000` - altitude in meters +AmpRes|Current sensor resolution
        `0..3` = maximum number of decimal places +Counter\|`0` = reset Counter\
        `1..64900` = preset Counter\
        `-1..-64900` = decrease Counter\
        `+1..+64900` = increase Counter\
        In order to define and use a Counter, _**you must configure one of the free device GPIO as `Counter`**_ +CounterDebounce|`0` = turn off counter debounce
        `1..3200` = set counter debounce time in milliseconds +CounterType\|`0` = set Counter\ as pulse Counter
        `1` = set Counter\ as pulse Timer +HumRes|Humidity sensor resolution
        `0..3` = maximum number of decimal places +PressRes|Pressure sensor resolution
        `0..3` = maximum number of decimal places Sensor13|[INA219](http://www.ti.com/product/INA219) low voltage current sensor calibration mode
        `0` = set INA219 calibration to max 32V and 2A
        `1` = set INA219 calibration to max 32V and 1A
        `2` = set INA219 calibration to max 16V and 0.4A Sensor15|[Automatic Baseline Correction](https://github.com/arendst/Tasmota/blob/c97ea4d9176eb7e87abff5f963a0f1c60f0a5e52/sonoff/xsns_15_mhz19.ino#L47) for [MH-Z19B](MH-Z19B) CO2 sensor
        `0` = disabled
        `1` = enabled *(default)*
        `2` = disable and start manual calibration from 400 ppm of CO2
        `9` = reset sensor to factory defaults
        `1000` = sets measurement range to 1000ppm CO2
        `2000` = sets measurement range to 2000ppm CO2
        `3000` = sets measurement range to 3000ppm CO2
        `5000` = sets measurement range to 5000ppm CO2 Sensor20|[Nova Fitness SDS011](SDS011) dust sensor.  »6.5.0.3
        1..255` = number of seconds before TelePeriod to poll the sensor @@ -275,43 +275,43 @@ Sensor29|MCP23008 / MCP23017 I2C GPIO Expander c Sensor34|  »6.6.0
        [HX711 load cell](https://github.com/bogde/HX711) sensor calibration
        `1` = reset display to 0
        `2` = start calibration
        `2` `` = set reference weight in grams and start calibration
        `3` = show reference weight in grams
        `3` `` = set reference weight in grams
        `4` = show calibrated scale value
        `4` `` = set calibrated scale value
        `5` = show max weight in gram
        `5` `` = set max weight in grams
        `6` = show single item weight in grams
        `6` `` = set single item weight in grams. Once the item weight is set, when items are added to the scale, the telemetry message will report `Count` as the number of items on the scale
        `7` = save current weight to be used as start weight on restart
        `8` `0/1`   »6.6.0.13
         `0` = disable JSON message on weight change over 4 grams
         `1` = enable JSON message on weight change over 4 grams Sensor50|[PAJ7620](PAJ7620) gesture sensor
        `0` = sensor muted, no readings in Tasmota
        `1`= gesture mode
        `2` = proximity mode
        `3` = corner mode
        `4` = PIN mode
        `5` = cursor mode Sensor53|[Smart Meter Interface](Smart-Meter-Interface)
        `r` = reset the driver with a new descriptor specified with the Tasmota [Scripting](Scripting-Language) language.
        `c ` = preset counter (x = `1..5`) to `value` when the driver is set to counter mode
        `d` = disable data decoding and dump meter (x = `1..5`) data to the Console. This is used to decipher the meter's data format to define the variable encoding in the meter's descriptor.
        `d0` = disable data dump mode and revert to decoding mode. -TempRes|Temperature sensor resolution
        `0..3` = maximum number of decimal places -TempOffset|`-12.7..12.7` = calibrate temperature sensor telemetry values  »7.0.0.5
        This setting affects **all** temperature sensors on the device. -VoltRes|Voltage sensor resolution
        `0..3` = maximum number of decimal places -WattRes|Power sensor resolution
        `0..3` = maximum number of decimal places -WeightRes|Load cell sensor resolution  »6.3.0
        `0..3` = maximum number of decimal places +TempRes|Temperature sensor resolution
        `0..3` = maximum number of decimal places +TempOffset|`-12.7..12.7` = calibrate temperature sensor telemetry values  »7.0.0.5
        This setting affects **all** temperature sensors on the device. +VoltRes|Voltage sensor resolution
        `0..3` = maximum number of decimal places +WattRes|Power sensor resolution
        `0..3` = maximum number of decimal places +WeightRes|Load cell sensor resolution  »6.3.0
        `0..3` = maximum number of decimal places See also|[`SetOption8`](#SetOption8) - Show temperature in Celsius *(default)* or Fahrenheit
        [`SetOption18`](#SetOption18) - Set status of signal light paired with CO2 sensor
        [`SetOption24`](#SetOption24) - Set pressure units ### Power Monitoring Command|Parameters :---|:--- -AmpRes|Current sensor resolution
        `0..3` = maximum number of decimal places -CurrentCal| `1100..32767` *(default = `3500`)*
        Set calibration offset value for reported `Current` telemetry reading  »6.4.1.6
        Allows finer calibration for HLW8012, HJL01, and BL0937 energy monitoring devices -CurrentHigh|`0` = disable current high threshold *(default)*
        `` = set current high threshold value in milliamps -CurrentLow|`0` = disable current low threshold *(default)*
        `` = set current low threshold value in milliamps -CurrentSet|`` = [calibrate](power-monitoring-calibration) current to target value in mA  »5.12.0 -EnergyRes|Energy sensor resolution
        `0..5` = maximum number of decimal places -EnergyReset\|`0..42500` (for `3`, Total, upper limit is `4250000`) in watt-hours (Wh)
        x = `1..5`
        `1` `` = ((p)re)set values for Today
        `2` `` = ((p)re)set values for Yesterday
        `3` `` = ((p)re)set values for Total
          »6.6.0.13
        `4` ``{,``} = ((p)re)set tariff period values for Totals
        `5` ``{,``} = ((p)re)set tariff period values for Exported -FreqRes|Frequency sensor resolution  »6.2.1.3
        `0..3` = maximum number of decimal places -FrequencySet|`` = [calibrate](power-monitoring-calibration) frequency to a target value in Hz  »6.2.1.6 -MaxPower|`0` - disable use maximum power monitoring
        `` = set maximum allowed power in watts -MaxPowerHold|`1` = set default time to 10 seconds to stay over MaxPower before power off
        `` = set time in seconds to stay over MaxPower before power off -MaxPowerWindow|`1` = set default time to 30 seconds to stay power off before re-applying power up to 5 times
        `` = set time in seconds to stay power off before re-applying power up to 5 times -ModuleAddress|Set the address of a PZEM module  »6.6.0.12
        `1..3` = the last octet of the PZEM-004T serial address
        `
        ` = the last octet of the slave address on MODBUS PZEM energy monitoring modules
        Prior to setting the module address, the PZEM **_must be connected_** to **both** RX and TX, **and** AC voltage.
        Connect one PZEM at a time and issue this command. Repeat for each PZEM to be connected for multi-phase monitoring.
        _The command without an argument cannot be used to read the address of the connected PZEM._ -PowerCal| `4000..32767` *(default = `12530`)*
        Set calibration offset value for reported `Power` telemetry reading  »6.4.1.6
        Allows finer calibration for HLW8012, HJL01, and BL0937 energy monitoring devices -PowerDelta|Set maximum delta for energy monitoring devices to report on active power load change  »5.13.0
        `0` = disable reporting on power change
        `1..100` = set reporting on percentage power change to send an MQTT telemetry message
        `101..32000` = set reporting on absolute power change to send an MQTT telemetry message (offset by 100, e.g., `101`=1W, `207`=107W)   »6.6.0.19 -PowerHigh|`0` = disable power high threshold *(default)*
        `` = set power high threshold value in watts to send an MQTT telemetry message -PowerLow|`0` = disable power low threshold *(default)*
        `` = set power low threshold value in watts to send an MQTT telemetry message -PowerSet|`` = [calibrate](power-monitoring-calibration) power to a target value in watts  »5.12.0 -Status|`8` = show power usage
        `9` = show power thresholds -Tariff\|P1 Smart Meter tariff configuration  »6.6.0.14
        x = `1, 2, 9`
        `1` `STD,DST` Start times for off-peak tariff
        `2` `STD,DST` End times for off-peak tariff
        `9` `0/1`
         `0` = use Start/End times also on weekends.
         `1` = use off-peak tariff all weekend.
        `STD` and `DST` may be specified as:
         `` = `0..23` or
         `