# Commands
Here is the latest, up to date command list.
This file was autogenerated by running 'node scripts/getcommands.js' in the repository.
All descriptions were taken from code.<br><br>
Please remember that some commands might require starting a related driver first, so, for example, you must first do 'startDriver DoorSensor' and then 'DSEdge 1'.
Also remember that commands can be put in autoexec.bat to run at startup (see Web Application->LittleFS tab).
<br><br>
Do not add anything here, as it will overwritten with next rebuild.
| Command        | Arguments          | Description  |
|:------------- |:------------- |:----- |
| <b>AB_Map</b> | [int] | Sets margines for ADC button codes. For given N margins, there are N+1 possible ADC button values (one should be reserved for 'no button').<br/><br/>See also [AB_Map on forum](https://www.elektroda.com/rtvforum/find.php?q=AB_Map). |
| <b>ACMode</b> | [Mode] | Sets the climate mode (off, cool, dry, fan_only, heat, heatcool, auto).<br/><br/>See also [ACMode on forum](https://www.elektroda.com/rtvforum/find.php?q=ACMode). |
| <b>ADCSmoother</b> | [Pindex] [TotalSamples] [SampleIntervalMS] [TargetChannelADCValue] [MarginValue] [TargetChannel0or1] | Starts the ADC smoother with given configuration.<br/><br/>See also [ADCSmoother on forum](https://www.elektroda.com/rtvforum/find.php?q=ADCSmoother). |
| <b>AddChangeHandler</b> | [Variable][Relation][Constant][Command] | Trigger based on change in channel value (for example channel 0 becoming 100), or for a voltage/current/power/frequency change for BL0942/BL0937. This supports multiple relations, like ==, !=, >=, < etc. The Variable name for channel is Channel0, Channel2, etc, for BL0XXX it can be 'Power', 'Current', 'Voltage' or 'Frequency'.<br/><br/>Example: Values are compared as integers.  This affects Current (*1000) and Frequency (*100). Example handler where Current is greather than 2Amps:<br/> `AddChangeHandler Current > 2000 SetChannel 1 0`<br/><br/>See also [AddChangeHandler on forum](https://www.elektroda.com/rtvforum/find.php?q=AddChangeHandler). |
| <b>AddChannel</b> | [ChannelIndex][ValueToAdd][ClampMin][ClampMax][bWrapInsteadOfClamp] | Adds a given value to the channel. Can be used to change PWM brightness. Clamp min and max arguments are optional.<br/><br/>See also [AddChannel on forum](https://www.elektroda.com/rtvforum/find.php?q=AddChannel). |
| <b>addClockEvent</b> | [TimerSeconds or Time or sunrise or sunset] [WeekDayFlags] [UniqueIDForRemoval][Command] | Schedule command to run on given time in given day of week. CLOCK must be running. TimerSeconds is seconds from midnight, Time is a time like HH:mm or HH:mm:ss, WeekDayFlag is a bitflag on which day to run, 0xff mean all days, 0x01 means sunday, 0x02 monday, 0x03 sunday and monday, etc, id is an unique id so event can be removed later. (NOTE: Use of sunrise/sunset requires compiling with ENABLE_TIME_SUNRISE_SUNSET set which adds about 11k of code).<br/><br/>See also [addClockEvent on forum](https://www.elektroda.com/rtvforum/find.php?q=addClockEvent). |
| <b>AddEventHandler</b> | [EventName][EventArgument][CommandToRun] | This can be used to trigger an action on a button click, long press, etc.<br/><br/>See also [AddEventHandler on forum](https://www.elektroda.com/rtvforum/find.php?q=AddEventHandler). |
| <b>addI2CDevice_ADS1115</b> |  | <br/><br/>See also [addI2CDevice_ADS1115 on forum](https://www.elektroda.com/rtvforum/find.php?q=addI2CDevice_ADS1115). |
| <b>addI2CDevice_LCD_PCF8574</b> |  | Adds a new I2C device - PCF8574.<br/><br/>See also [addI2CDevice_LCD_PCF8574 on forum](https://www.elektroda.com/rtvforum/find.php?q=addI2CDevice_LCD_PCF8574). |
| <b>addI2CDevice_LCM1602</b> |  | Adds a new I2C device - LCM1602.<br/><br/>See also [addI2CDevice_LCM1602 on forum](https://www.elektroda.com/rtvforum/find.php?q=addI2CDevice_LCM1602). |
| <b>addI2CDevice_MCP23017</b> |  | Adds a new I2C device - MCP23017.<br/><br/>See also [addI2CDevice_MCP23017 on forum](https://www.elektroda.com/rtvforum/find.php?q=addI2CDevice_MCP23017). |
| <b>addI2CDevice_TC74</b> |  | Adds a new I2C device - TC74.<br/><br/>See also [addI2CDevice_TC74 on forum](https://www.elektroda.com/rtvforum/find.php?q=addI2CDevice_TC74). |
| <b>addRepeatingEvent</b> | [IntervalSeconds][RepeatsOr-1][CommandToRun] | Starts a timer/interval command. Use 'backlog' to fit multiple commands in a single string.<br/><br/>See also [addRepeatingEvent on forum](https://www.elektroda.com/rtvforum/find.php?q=addRepeatingEvent). |
| <b>addRepeatingEventID</b> | [IntervalSeconds][RepeatsOr-1][UserID][CommandToRun] | As addRepeatingEvent, but with a given ID. You can later cancel it with cancelRepeatingEvent.<br/><br/>Example: addRepeatingEventID 2 -1 123 Power0 Toggle<br/><br/>See also [addRepeatingEventID on forum](https://www.elektroda.com/rtvforum/find.php?q=addRepeatingEventID). |
| <b>addRepeatingEventUID</b> | [IntervalSeconds][RepeatsOr-1][UserID][CommandToRun] | As addRepeatingEventID, but also automatically cancels previous events with same ID.<br/><br/>Example: addRepeatingEventUID 2 -1 123 Power0 Toggle<br/><br/>See also [addRepeatingEventUID on forum](https://www.elektroda.com/rtvforum/find.php?q=addRepeatingEventUID). |
| <b>add_dimmer</b> | [Value][AddMode] | Adds a given value to current LED dimmer. AddMode 0 just adds a value (with a clamp to [0,100]), AddMode 1 will wrap around values (going under 0 goes to 100, going over 100 goes to 0), AddMode 2 will ping-pong value (going to 100 starts going back from 100 to 0, and again, going to 0 starts going up).<br/><br/>See also [add_dimmer on forum](https://www.elektroda.com/rtvforum/find.php?q=add_dimmer). |
| <b>add_temperature</b> | [DeltaValue][bWrapAroundInsteadOfHold] | Adds a given value to current LED temperature. Function can wrap or clamp if max/min is exceeded.<br/><br/>See also [add_temperature on forum](https://www.elektroda.com/rtvforum/find.php?q=add_temperature). |
| <b>AHT2X_Calibrate</b> | [DeltaTemp][DeltaHumidity] | Calibrate the AHT2X Sensor as Tolerance is +/-2 degrees C.<br/><br/>Example: AHT2X_Calibrate -4 10 <br /> meaning -4 on current temp reading and +10 on current humidity reading<br/><br/>See also [AHT2X_Calibrate on forum](https://www.elektroda.com/rtvforum/find.php?q=AHT2X_Calibrate). |
| <b>AHT2X_Cycle</b> | [IntervalSeconds] | This is the interval between measurements in seconds, by default 1. Max is 255.<br/><br/>Example: AHT2X_Cycle 60 <br /> measurement is taken every 60 seconds<br/><br/>See also [AHT2X_Cycle on forum](https://www.elektroda.com/rtvforum/find.php?q=AHT2X_Cycle). |
| <b>AHT2X_Measure</b> |  | Retrieve OneShot measurement.<br/><br/>Example: AHT2X_Measure<br/><br/>See also [AHT2X_Measure on forum](https://www.elektroda.com/rtvforum/find.php?q=AHT2X_Measure). |
| <b>AHT2X_Reinit</b> |  | Reinitialize sensor.<br/><br/>Example: AHT2X_Reinit<br/><br/>See also [AHT2X_Reinit on forum](https://www.elektroda.com/rtvforum/find.php?q=AHT2X_Reinit). |
| <b>alias</b> | [Alias][Command with spaces] | Add an aliased command, so a command with spaces can be called with a short, nospaced alias.<br/><br/>See also [alias on forum](https://www.elektroda.com/rtvforum/find.php?q=alias). |
| <b>aliasMem</b> |  | Internal usage only. See docs for 'alias' command.<br/><br/>See also [aliasMem on forum](https://www.elektroda.com/rtvforum/find.php?q=aliasMem). |
| <b>Anim</b> | [AnimationIndex] | Starts given WS2812 animation by index.<br/><br/>See also [Anim on forum](https://www.elektroda.com/rtvforum/find.php?q=Anim). |
| <b>AnimSpeed</b> | [Interval] | Sets WS2812 animation speed.<br/><br/>See also [AnimSpeed on forum](https://www.elektroda.com/rtvforum/find.php?q=AnimSpeed). |
| <b>backlog</b> | [string of commands separated with ;] | Run a sequence of ; separated commands.<br/><br/>See also [backlog on forum](https://www.elektroda.com/rtvforum/find.php?q=backlog). |
| <b>Battery_cycle</b> | [int] | Change cycle of measurement by default every 10 seconds.<br/><br/>Example: Battery_cycle 60<br/><br/>See also [Battery_cycle on forum](https://www.elektroda.com/rtvforum/find.php?q=Battery_cycle). |
| <b>Battery_Setup</b> | [minbatt][maxbatt][V_divider][Vref][AD Bits] | Measure battery based on ADC. <br />req. args: minbatt in mv, maxbatt in mv. <br />optional: V_divider(2), Vref(default 2400), ADC bits(4096).<br/><br/>Example: Battery_Setup 1500 3000 2 2400 4096<br/><br/>See also [Battery_Setup on forum](https://www.elektroda.com/rtvforum/find.php?q=Battery_Setup). |
| <b>berry</b> | [Berry code] | Execute Berry code.<br/><br/>Example: berry 1+2<br/><br/>See also [berry on forum](https://www.elektroda.com/rtvforum/find.php?q=berry). |
| <b>BL0942opts</b> | opts | BL0942opts 0= default mode (as set in config Flag 26), 3= two BL0942 on both UARTs (bit0 BL0942 on UART1, bit1 BL0942 on UART2).<br/><br/>See also [BL0942opts on forum](https://www.elektroda.com/rtvforum/find.php?q=BL0942opts). |
| <b>BMPI2C_Calibrate</b> | [DeltaTemp][DeltaPressure][DeltaHumidity] | Calibrate the BMPI2C Sensor.<br/><br/>Example: BMPI2C_Calibrate -4 0 10 <br /> meaning -4 on current temp reading, 0 on current pressure reading and +10 on current humidity reading<br/><br/>See also [BMPI2C_Calibrate on forum](https://www.elektroda.com/rtvforum/find.php?q=BMPI2C_Calibrate). |
| <b>BMPI2C_Configure</b> | [Mode][TempSampling][PressureSampling][HumSampling][IIRFilter][StandbyTime] | Manual sensor configuration. Modes: 0 - normal, 1 - forced, 2 - sleep. Overampling range: -1 - skipped, 2^0 to 2^4. Default is X1. IIRFilter range: 0 - off, 2^1 to 2^4 for most, up to 2^7 for BME68X, StandbyTime: 1 for 0.5ms, 63 for 62.5ms, 125, 250, 500, 1000, 2000, 4000. Mode and StandbyTime are not needed on BME68X, All values will be rounded down to closest available (like sampling 10 will choose 8x).<br/><br/>Example: BMPI2C_Configure 0 8 2 4 16 125 <br /><br/><br/>See also [BMPI2C_Configure on forum](https://www.elektroda.com/rtvforum/find.php?q=BMPI2C_Configure). |
| <b>BMPI2C_Cycle</b> | [IntervalSeconds] | This is the interval between measurements in seconds, by default 1. Max is 255.<br/><br/>Example: BMPI2C_Cycle 60 <br /> measurement is taken every 60 seconds<br/><br/>See also [BMPI2C_Cycle on forum](https://www.elektroda.com/rtvforum/find.php?q=BMPI2C_Cycle). |
| <b>BP1658CJ_Current</b> | [MaxCurrentRGB][MaxCurrentCW] | Sets the maximum current limit for BP1658CJ driver.<br/><br/>See also [BP1658CJ_Current on forum](https://www.elektroda.com/rtvforum/find.php?q=BP1658CJ_Current). |
| <b>BP1658CJ_Map</b> | [Ch0][Ch1][Ch2][Ch3][Ch4] | Maps the RGBCW values to given indices of BP1658CJ channels. This is because BP5758D channels order is not the same for some devices. Some devices are using RGBCW order and some are using GBRCW, etc, etc. Example usage: BP1658CJ_Map 0 1 2 3 4.<br/><br/>See also [BP1658CJ_Map on forum](https://www.elektroda.com/rtvforum/find.php?q=BP1658CJ_Map). |
| <b>BP1658CJ_RGBCW</b> | [HexColor] | Don't use it. It's for direct access of BP1658CJ driver. You don't need it because LED driver automatically calls it, so just use led_basecolor_rgb.<br/><br/>See also [BP1658CJ_RGBCW on forum](https://www.elektroda.com/rtvforum/find.php?q=BP1658CJ_RGBCW). |
| <b>BP5758D_Current</b> | [MaxCurrentRGB][MaxCurrentCW] | Sets the maximum current limit for BP5758D driver, first value is for rgb and second for cw.<br/><br/>See also [BP5758D_Current on forum](https://www.elektroda.com/rtvforum/find.php?q=BP5758D_Current). |
| <b>BP5758D_Map</b> | [Ch0][Ch1][Ch2][Ch3][Ch4] | Maps the RGBCW values to given indices of BP5758D channels. This is because BP5758D channels order is not the same for some devices. Some devices are using RGBCW order and some are using GBRCW, etc, etc. Example usage: BP5758D_Map 0 1 2 3 4.<br/><br/>See also [BP5758D_Map on forum](https://www.elektroda.com/rtvforum/find.php?q=BP5758D_Map). |
| <b>BP5758D_RGBCW</b> | [HexColor] | Don't use it. It's for direct access of BP5758D driver. You don't need it because LED driver automatically calls it, so just use led_basecolor_rgb.<br/><br/>See also [BP5758D_RGBCW on forum](https://www.elektroda.com/rtvforum/find.php?q=BP5758D_RGBCW). |
| <b>BridgePulseLength</b> | [FloatValue] | Setup value for bridge pulse len.<br/><br/>See also [BridgePulseLength on forum](https://www.elektroda.com/rtvforum/find.php?q=BridgePulseLength). |
| <b>Buzzer</b> | CMD_Buzzer | <br/><br/>See also [Buzzer on forum](https://www.elektroda.com/rtvforum/find.php?q=Buzzer). |
| <b>CAM_Show_Timestamp</b><span style="font-size:0.8em;"><br/>with <i>NTP</span> | CMD_ShowTimestamp | <br/><br/>Example: CAM_Show_Timestamp 1<br/><br/>See also [CAM_Show_Timestamp on forum](https://www.elektroda.com/rtvforum/find.php?q=CAM_Show_Timestamp). |
| <b>cancelRepeatingEvent</b> | [UserIDInteger] | Stops a given repeating event with a specified ID.<br/><br/>See also [cancelRepeatingEvent on forum](https://www.elektroda.com/rtvforum/find.php?q=cancelRepeatingEvent). |
| <b>Ch</b> | [InputValue] | An alternate command to access channels. It returns all used channels in JSON format. The syntax is ChINDEX value, there is no space between Ch and channel index. It can be sent without value to poll channel values.<br/><br/>See also [Ch on forum](https://www.elektroda.com/rtvforum/find.php?q=Ch). |
| <b>chart_add</b> | [ntp_time][val1][val2]...[valN] | Adds data to the chart with specified variables at a specific NTP time. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).<br/><br/>See also [chart_add on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_add). |
| <b>chart_addNow</b> | [val1][val2]...[valN] | Adds data to the chart using the current NTP time. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).<br/><br/>See also [chart_addNow on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_addNow). |
| <b>chart_create</b> | [max_samples][num_vars][num_axes] | Creates a chart with a specified number of samples, variables, and axes. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).<br/><br/>See also [chart_create on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_create). |
| <b>chart_setAxis</b> | [axis_index][name][flags][label] | Sets up an axis with a name, flags, and label. Currently flags can be 0 (left axis) or 1 (right axis). See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).<br/><br/>See also [chart_setAxis on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_setAxis). |
| <b>chart_setVar</b> | [var_index][title][axis] | Associates a variable with a specific axis. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).<br/><br/>See also [chart_setVar on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_setVar). |
| <b>Choice</b> | [IndexToExecute][Option0][Option1][Option2][OptionN][etc] | This will choose a given argument by index and execute it as a command. Index to execute can be a variable like $CH1.<br/><br/>See also [Choice on forum](https://www.elektroda.com/rtvforum/find.php?q=Choice). |
| <b>chSetupLimit</b> | [limitChannelIndex] [maxAllowedLimitChannelDelta] [timeoutOr-1] [commandToRun] | After executing this command, chargingLimit driver will watch channel for changes and count down timer. When a timer runs our or channel change (from the initial state) is larger than given margin, given command is run.<br/><br/>See also [chSetupLimit on forum](https://www.elektroda.com/rtvforum/find.php?q=chSetupLimit). |
| <b>CHT_Alert</b> | [TempDiff][HumDiff][Freq][FQ] | Enable alert pin. TempDif (temperature difference is any float higher than 0.05°C) = set detected difference in temperature required for device to wake. HumDiff (humidity difference is any float higher than 0.1%). Freq (time per measurement in s) = 1, 5, 10, 60, 120 (default if wrong = 1). FQ (fault queue number) = 1, 2, 4, 6 (default if wrong = 1).<br/><br/>Example: CHT_Alert 0.5 0 5 2 <br /> alert pin will trigger when temperature deviates by more than 0.5°C. Humidity will be ignored. Sensor measures every 5s with fault queue number 2.<br/><br/>See also [CHT_Alert on forum](https://www.elektroda.com/rtvforum/find.php?q=CHT_Alert). |
| <b>CHT_Calibrate</b> | [DeltaTemp][DeltaHumidity] | Calibrate the CHT Sensor as Tolerance is +/-2 degrees C.<br/><br/>Example: CHT_Calibrate -4 10 <br /> meaning -4 on current temp reading and +10 on current humidity reading<br/><br/>See also [CHT_Calibrate on forum](https://www.elektroda.com/rtvforum/find.php?q=CHT_Calibrate). |
| <b>CHT_Cycle</b> | [IntervalSeconds] | This is the interval between measurements in seconds, by default 1. Max is 255.<br/><br/>Example: CHT_Cycle 60 <br /> measurement is taken every 60 seconds<br/><br/>See also [CHT_Cycle on forum](https://www.elektroda.com/rtvforum/find.php?q=CHT_Cycle). |
| <b>ClampChannel</b> | [ChannelIndex][Min][Max] | Clamps given channel value to a range.<br/><br/>See also [ClampChannel on forum](https://www.elektroda.com/rtvforum/find.php?q=ClampChannel). |
| <b>clearAll</b> |  | Clears config and all remaining features, like runtime scripts, events, etc.<br/><br/>See also [clearAll on forum](https://www.elektroda.com/rtvforum/find.php?q=clearAll). |
| <b>clearAllHandlers</b> |  | This clears all added event handlers.<br/><br/>See also [clearAllHandlers on forum](https://www.elektroda.com/rtvforum/find.php?q=clearAllHandlers). |
| <b>clearClockEvents</b> |  | Removes all set clock events.<br/><br/>See also [clearClockEvents on forum](https://www.elektroda.com/rtvforum/find.php?q=clearClockEvents). |
| <b>clearConfig</b> |  | Clears all config, including WiFi data.<br/><br/>See also [clearConfig on forum](https://www.elektroda.com/rtvforum/find.php?q=clearConfig). |
| <b>clearIO</b> |  | Clears all pins setting, channels settings.<br/><br/>See also [clearIO on forum](https://www.elektroda.com/rtvforum/find.php?q=clearIO). |
| <b>ClearNoPingTime</b> |  | Command for ping watchdog; it sets the 'time since last ping reply' to 0 again.<br/><br/>See also [ClearNoPingTime on forum](https://www.elektroda.com/rtvforum/find.php?q=ClearNoPingTime). |
| <b>clearRepeatingEvents</b> |  | Clears all repeating events.<br/><br/>See also [clearRepeatingEvents on forum](https://www.elektroda.com/rtvforum/find.php?q=clearRepeatingEvents). |
| <b>clear_energy</b> | TODO | <br/><br/>See also [clear_energy on forum](https://www.elektroda.com/rtvforum/find.php?q=clear_energy). |
| <b>clock_calcDST</b> |  Depreciated! Only for backward compatibility! Please use 'TIME_setDST' in the future! | Sets DST settings.<br/><br/>Example: CLOCK_calcDST 0 10 1 3 0 3 1 2 1 <br/>     -- DST-End: last_week(0) October(10) sunday(1) 3_o_clock(3) <br/>     -- DST-Start: last_week(0) March(3) sunday(1) 2_o_clock(2) 1_hour_DST_offset<br/><br/>See also [clock_calcDST on forum](https://www.elektroda.com/rtvforum/find.php?q=clock_calcDST). |
| <b>Color</b> | [HexValue] | Puts the LED driver in RGB mode and sets given color.<br/><br/>See also [Color on forum](https://www.elektroda.com/rtvforum/find.php?q=Color). |
| <b>ConsumptionThreshold</b> | [FloatValue] | Setup value for automatic save of consumption data [1..100].<br/><br/>See also [ConsumptionThreshold on forum](https://www.elektroda.com/rtvforum/find.php?q=ConsumptionThreshold). |
| <b>crashNull</b> |  | Causes a crash.<br/><br/>See also [crashNull on forum](https://www.elektroda.com/rtvforum/find.php?q=crashNull). |
| <b>CT</b> | [TempValue] | Sets the LED temperature. Same as led_temperature but with Tasmota syntax.<br/><br/>See also [CT on forum](https://www.elektroda.com/rtvforum/find.php?q=CT). |
| <b>CTRange</b> | [MinRange][MaxRange] | This sets the temperature range for display. Default is 154-500.<br/><br/>See also [CTRange on forum](https://www.elektroda.com/rtvforum/find.php?q=CTRange). |
| <b>CurrentSet</b> | Current | Measure the real Current with an external, reliable power meter and enter this Current via this command to calibrate. The calibration is automatically saved in the flash memory.<br/><br/>See also [CurrentSet on forum](https://www.elektroda.com/rtvforum/find.php?q=CurrentSet). |
| <b>DDP_Send</b> | IP host pixelsize delay pData | <br/><br/>See also [DDP_Send on forum](https://www.elektroda.com/rtvforum/find.php?q=DDP_Send). |
| <b>DeepSleep</b> | [Seconds] | Starts deep sleep for given amount of seconds. Please remember that there is also a separate command, called PinDeepSleep, which is not using a timer, but a GPIO to wake up device.<br/><br/>See also [DeepSleep on forum](https://www.elektroda.com/rtvforum/find.php?q=DeepSleep). |
| <b>delay_ms</b> | [ValueMS] | Script-only command. Pauses current script thread for given amount of ms.<br/><br/>See also [delay_ms on forum](https://www.elektroda.com/rtvforum/find.php?q=delay_ms). |
| <b>delay_s</b> | [ValueSeconds] | Script-only command. Pauses current script thread for given amount of seconds. Argument can be a floating point, so 0.1 etc will work.<br/><br/>See also [delay_s on forum](https://www.elektroda.com/rtvforum/find.php?q=delay_s). |
| <b>DGR_SendBrightness</b> | [GroupName][Brightness] | Sends a Brightness message to given Tasmota Device Group with no reliability. Requires no prior setup and can control any group, but won't retransmit.<br/><br/>See also [DGR_SendBrightness on forum](https://www.elektroda.com/rtvforum/find.php?q=DGR_SendBrightness). |
| <b>DGR_SendFixedColor</b> | [GroupName][TasColorIndex] | Sends a FixedColor message to given Tasmota Device Group with no reliability. Requires no prior setup and can control any group, but won't retransmit.<br/><br/>See also [DGR_SendFixedColor on forum](https://www.elektroda.com/rtvforum/find.php?q=DGR_SendFixedColor). |
| <b>DGR_SendPower</b> | [GroupName][ChannelValues][ChannelsCount] | Sends a POWER message to given Tasmota Device Group with no reliability. Requires no prior setup and can control any group, but won't retransmit.<br/><br/>See also [DGR_SendPower on forum](https://www.elektroda.com/rtvforum/find.php?q=DGR_SendPower). |
| <b>DGR_SendRGBCW</b> | [GroupName][HexRGBCW] | Sends a RGBCW message to given Tasmota Device Group with no reliability. Requires no prior setup and can control any group, but won't retransmit. You can use this command in two ways, first is like DGR_SendRGBCW GroupName 255 255 0, etc, second is DGR_SendRGBCW GroupName FF00FF00 etc etc.<br/><br/>See also [DGR_SendRGBCW on forum](https://www.elektroda.com/rtvforum/find.php?q=DGR_SendRGBCW). |
| <b>Dimmer</b> | [Value] | Alias for led_dimmer, added for Tasmota.<br/><br/>See also [Dimmer on forum](https://www.elektroda.com/rtvforum/find.php?q=Dimmer). |
| <b>DimmerDelta</b> | [DeltaValue] | This sets the delta value for SmartDimmer/SmartButtonForLEDs hold event. This determines the amount of change of dimmer per hold event.<br/><br/>See also [DimmerDelta on forum](https://www.elektroda.com/rtvforum/find.php?q=DimmerDelta). |
| <b>Display</b> | CMD_Display | <br/><br/>See also [Display on forum](https://www.elektroda.com/rtvforum/find.php?q=Display). |
| <b>DS1820_FULL_scansensors</b> | - | (Re-)Scan all GPIOs defined for DS1820 for sensors.<br/><br/>Example: DS1820_FULL_scansensors<br/><br/>See also [DS1820_FULL_scansensors on forum](https://www.elektroda.com/rtvforum/find.php?q=DS1820_FULL_scansensors). |
| <b>DS1820_FULL_SetResolution</b> | [int] | Sets resolution for connected DS1820 sensor (9/10/11/12 bits).<br/><br/>See also [DS1820_FULL_SetResolution on forum](https://www.elektroda.com/rtvforum/find.php?q=DS1820_FULL_SetResolution). |
| <b>DS1820_FULL_setsensor</b> | DS18B20-Addr name [channel] | Sets a name [and optional channel] to a DS18B20 sensor by sensors address.<br/><br/>Example: DS1820_FULL_setsensor "0x28 0x01 0x02 0x03 0x04 0x05 0x06 0x07" "kitchen" 2<br/><br/>See also [DS1820_FULL_setsensor on forum](https://www.elektroda.com/rtvforum/find.php?q=DS1820_FULL_setsensor). |
| <b>DS1820_SetResolution</b> | [int] | Sets resolution for connected DS1820 sensor (9/10/11/12 bits).<br/><br/>See also [DS1820_SetResolution on forum](https://www.elektroda.com/rtvforum/find.php?q=DS1820_SetResolution). |
| <b>DS3231_GetEpoch</b> | - | Gets time from RTC.<br/><br/>See also [DS3231_GetEpoch on forum](https://www.elektroda.com/rtvforum/find.php?q=DS3231_GetEpoch). |
| <b>DS3231_GetTime</b> | - | Gets time from RTC.<br/><br/>See also [DS3231_GetTime on forum](https://www.elektroda.com/rtvforum/find.php?q=DS3231_GetTime). |
| <b>DS3231_SetEpoch</b> | <epoch> | Sets RTC time (to epoch).<br/><br/>Example: DS3231_SetTime 3269879540<br/><br/>See also [DS3231_SetEpoch on forum](https://www.elektroda.com/rtvforum/find.php?q=DS3231_SetEpoch). |
| <b>DS3231_SetTime</b> | <hours> <minutes> <seconds> <day> <month> <year> | Sets RTC time.<br/><br/>Example: DS3231_SetTime 19 50 01 13 8 25<br/><br/>See also [DS3231_SetTime on forum](https://www.elektroda.com/rtvforum/find.php?q=DS3231_SetTime). |
| <b>DSEdge</b> | [edgeCode][optionalPinIndex] | DeepSleep (PinDeepSleep) wake configuration command. 0 means always wake up on rising edge, 1 means on falling, 2 means if state is high, use falling edge, if low, use rising. Default is 2. Second argument is optional and allows to set per-pin DSEdge instead of setting it for all pins.<br/><br/>See also [DSEdge on forum](https://www.elektroda.com/rtvforum/find.php?q=DSEdge). |
| <b>DSTime</b> | [timeSeconds][optionalAutoWakeUpTimeSeconds] | DoorSensor driver configuration command. Time to keep device running before next sleep after last door sensor change. In future we may add also an option to automatically sleep after MQTT confirms door state receival. You can also use this to extend current awake time (at runtime) with syntax: 'DSTime +10', this will make device stay awake 10 seconds longer. You can also restart current value of awake counter by 'DSTime clear', this will make counter go from 0 again.<br/><br/>See also [DSTime on forum](https://www.elektroda.com/rtvforum/find.php?q=DSTime). |
| <b>echo</b> | [Message] | Sends given message back to console. This command expands variables, so writing $CH12 will print value of channel 12, etc. Remember that you can also use special channel indices to access persistant flash variables and to access LED variables like dimmer, etc.<br/><br/>See also [echo on forum](https://www.elektroda.com/rtvforum/find.php?q=echo). |
| <b>EEPROM_Dump</b> | TODO | <br/><br/>See also [EEPROM_Dump on forum](https://www.elektroda.com/rtvforum/find.php?q=EEPROM_Dump). |
| <b>EEPROM_Read</b> | TODO | <br/><br/>See also [EEPROM_Read on forum](https://www.elektroda.com/rtvforum/find.php?q=EEPROM_Read). |
| <b>EEPROM_WriteHex</b> | TODO | <br/><br/>See also [EEPROM_WriteHex on forum](https://www.elektroda.com/rtvforum/find.php?q=EEPROM_WriteHex). |
| <b>EnergyCntReset</b> | [OptionalNewValue][sensorix] | Resets the total Energy Counter, the one that is usually kept after device reboots. After this commands, the counter will start again from 0 (or from the value you specified). sensorix is used in ENABLE_BL_TWIN.<br/><br/>See also [EnergyCntReset on forum](https://www.elektroda.com/rtvforum/find.php?q=EnergyCntReset). |
| <b>exec</b> | [Filename] | Exec <file> - run autoexec.bat or other file from LFS if present.<br/><br/>See also [exec on forum](https://www.elektroda.com/rtvforum/find.php?q=exec). |
| <b>ExitSimulator</b> |  | [SIMULATOR ONLY] Exits the application instance.<br/><br/>See also [ExitSimulator on forum](https://www.elektroda.com/rtvforum/find.php?q=ExitSimulator). |
| <b>fakeTuyaPacket</b> | [HexString] | This simulates packet being sent from TuyaMCU to our OBK device.<br/><br/>See also [fakeTuyaPacket on forum](https://www.elektroda.com/rtvforum/find.php?q=fakeTuyaPacket). |
| <b>FANMode</b> | CMD_FANMode | <br/><br/>See also [FANMode on forum](https://www.elektroda.com/rtvforum/find.php?q=FANMode). |
| <b>flags</b> | [IntegerValue] | Sets the device flags.<br/><br/>See also [flags on forum](https://www.elektroda.com/rtvforum/find.php?q=flags). |
| <b>FriendlyName</b> | [Name] | Sets the full name of the device.<br/><br/>See also [FriendlyName on forum](https://www.elektroda.com/rtvforum/find.php?q=FriendlyName). |
| <b>FullBootTime</b> | [Value] | Sets time in seconds after which boot is marked as valid. This is related to emergency AP mode which is enabled by powering on/off device 5 times quickly.<br/><br/>See also [FullBootTime on forum](https://www.elektroda.com/rtvforum/find.php?q=FullBootTime). |
| <b>Gen</b> | Gen | <br/><br/>See also [Gen on forum](https://www.elektroda.com/rtvforum/find.php?q=Gen). |
| <b>GetChannel</b> | [ChannelIndex] | Prints given channel value to console.<br/><br/>See also [GetChannel on forum](https://www.elektroda.com/rtvforum/find.php?q=GetChannel). |
| <b>getPin</b> | string | Find pin index for a pin alias.<br/><br/>See also [getPin on forum](https://www.elektroda.com/rtvforum/find.php?q=getPin). |
| <b>GetReadings</b> |  | Prints voltage etc readings to console.<br/><br/>See also [GetReadings on forum](https://www.elektroda.com/rtvforum/find.php?q=GetReadings). |
| <b>GirierMCU_setBaudRate</b> | TODO | <br/><br/>See also [GirierMCU_setBaudRate on forum](https://www.elektroda.com/rtvforum/find.php?q=GirierMCU_setBaudRate). |
| <b>goto</b> | [LabelStr] | Script-only command. IF single argument is given, then goes to given label from within current script file. If two arguments are given, then jumps to any other script file by label - first argument is file, second label.<br/><br/>See also [goto on forum](https://www.elektroda.com/rtvforum/find.php?q=goto). |
| <b>HLW8112_a</b> | TODO | <br/><br/>See also [HLW8112_a on forum](https://www.elektroda.com/rtvforum/find.php?q=HLW8112_a). |
| <b>HLW8112_c</b> | TODO | <br/><br/>See also [HLW8112_c on forum](https://www.elektroda.com/rtvforum/find.php?q=HLW8112_c). |
| <b>HLW8112_print_coeff</b> | TODO | <br/><br/>See also [HLW8112_print_coeff on forum](https://www.elektroda.com/rtvforum/find.php?q=HLW8112_print_coeff). |
| <b>HLW8112_read_reg</b> | TODO | <br/><br/>See also [HLW8112_read_reg on forum](https://www.elektroda.com/rtvforum/find.php?q=HLW8112_read_reg). |
| <b>HLW8112_SetClock</b> | TODO | <br/><br/>See also [HLW8112_SetClock on forum](https://www.elektroda.com/rtvforum/find.php?q=HLW8112_SetClock). |
| <b>HLW8112_SetEnergyStat</b> | TODO | <br/><br/>See also [HLW8112_SetEnergyStat on forum](https://www.elektroda.com/rtvforum/find.php?q=HLW8112_SetEnergyStat). |
| <b>HLW8112_SetResistorGain</b> | TODO | <br/><br/>See also [HLW8112_SetResistorGain on forum](https://www.elektroda.com/rtvforum/find.php?q=HLW8112_SetResistorGain). |
| <b>HLW8112_write_reg</b> | TODO | <br/><br/>See also [HLW8112_write_reg on forum](https://www.elektroda.com/rtvforum/find.php?q=HLW8112_write_reg). |
| <b>HSBColor</b> | [H][S][B] | Tasmota-style colour access. Hue in 0-360 range, saturation in 0-100 and brightness in 0-100 range. .<br/><br/>See also [HSBColor on forum](https://www.elektroda.com/rtvforum/find.php?q=HSBColor). |
| <b>HSBColor1</b> | [Hue] | Tasmota-style colour access. Sets hue in 0 to 360 range.<br/><br/>See also [HSBColor1 on forum](https://www.elektroda.com/rtvforum/find.php?q=HSBColor1). |
| <b>HSBColor2</b> | [Saturation] | Tasmota-style colour access. Set saturation in 0 to 100 range.<br/><br/>See also [HSBColor2 on forum](https://www.elektroda.com/rtvforum/find.php?q=HSBColor2). |
| <b>HSBColor3</b> | [Brightness] | Tasmota-style colour access. Sets brightness in 0 to 100 range.<br/><br/>See also [HSBColor3 on forum](https://www.elektroda.com/rtvforum/find.php?q=HSBColor3). |
| <b>HT16K33_Blink</b> | HT16K33_Blink | <br/><br/>See also [HT16K33_Blink on forum](https://www.elektroda.com/rtvforum/find.php?q=HT16K33_Blink). |
| <b>HT16K33_Brightness</b> | HT16K33_Brightness | <br/><br/>See also [HT16K33_Brightness on forum](https://www.elektroda.com/rtvforum/find.php?q=HT16K33_Brightness). |
| <b>HT16K33_Char</b> | HT16K33_Char | <br/><br/>See also [HT16K33_Char on forum](https://www.elektroda.com/rtvforum/find.php?q=HT16K33_Char). |
| <b>HT16K33_Print</b> | HT16K33_Print | <br/><br/>See also [HT16K33_Print on forum](https://www.elektroda.com/rtvforum/find.php?q=HT16K33_Print). |
| <b>HT16K33_Raw</b> | HT16K33_Raw | <br/><br/>See also [HT16K33_Raw on forum](https://www.elektroda.com/rtvforum/find.php?q=HT16K33_Raw). |
| <b>HT16K33_Test</b> | HT16K33_Test | <br/><br/>See also [HT16K33_Test on forum](https://www.elektroda.com/rtvforum/find.php?q=HT16K33_Test). |
| <b>if</b> | [Condition]['then'][CommandA]['else'][CommandB] | Executed a conditional. Condition should be single line. You must always use 'then' after condition. 'else' is optional. Use aliases or quotes for commands with spaces.<br/><br/>See also [if on forum](https://www.elektroda.com/rtvforum/find.php?q=if). |
| <b>IndexRefreshInterval</b> | [Interval] | <br/><br/>See also [IndexRefreshInterval on forum](https://www.elektroda.com/rtvforum/find.php?q=IndexRefreshInterval). |
| <b>IRAC</b><span style="font-size:0.8em;"><br/>with <i>ENABLE_DRIVER_IRREMOTEESP</i><br/>(IRremoteESP8266)</span> | [TODO] | Sends IR commands for HVAC control (TODO).<br/><br/>See also [IRAC on forum](https://www.elektroda.com/rtvforum/find.php?q=IRAC). |
| <b>IREnable</b><span style="font-size:0.8em;"><br/>with <i>ENABLE_DRIVER_IR</i><br/>(Arduino-IRremote)</span> | [Str][1or0] | Enable/disable aspects of IR.  IREnable RXTX 0/1 - enable Rx whilst Tx.  IREnable [protocolname] 0/1 - enable/disable a specified protocol.<br/><br/>See also [IREnable on forum](https://www.elektroda.com/rtvforum/find.php?q=IREnable). |
| <b>IREnable</b><span style="font-size:0.8em;"><br/>with <i>ENABLE_DRIVER_IRREMOTEESP</i><br/>(IRremoteESP8266)</span> | [Str][1or0] | Enable/disable aspects of IR.  IREnable RXTX 0/1 - enable Rx whilst Tx.  IREnable [protocolname] 0/1 - enable/disable a specified protocol.<br/><br/>See also [IREnable on forum](https://www.elektroda.com/rtvforum/find.php?q=IREnable). |
| <b>IRParam</b><span style="font-size:0.8em;"><br/>with <i>ENABLE_DRIVER_IRREMOTEESP</i><br/>(IRremoteESP8266)</span> | [MinSize] [Noise Threshold] | Set minimal size of the message and noise threshold.<br/><br/>See also [IRParam on forum](https://www.elektroda.com/rtvforum/find.php?q=IRParam). |
| <b>IRSend</b><span style="font-size:0.8em;"><br/>with <i>ENABLE_DRIVER_IR</i><br/>(Arduino-IRremote)</span> | [PROT-ADDR-CMD-REP-BITS] | Sends IR commands in the form PROT-ADDR-CMD-REP-BITS, e.g. NEC-1-1A-0-0, note that -BITS is optional, it can be 0 for default one, so you can just do NEC-1-1A-0.<br/><br/>See also [IRSend on forum](https://www.elektroda.com/rtvforum/find.php?q=IRSend). |
| <b>IRSend</b><span style="font-size:0.8em;"><br/>with <i>ENABLE_DRIVER_IRREMOTEESP</i><br/>(IRremoteESP8266)</span> | [PROT-ADDR-CMD-REP] | Sends IR commands in the form PROT-ADDR-CMD-REP, e.g. NEC-1-1A-0.<br/><br/>See also [IRSend on forum](https://www.elektroda.com/rtvforum/find.php?q=IRSend). |
| <b>Json</b> | json array of commands | A stub for Tasmota.<br/><br/>See also [Json on forum](https://www.elektroda.com/rtvforum/find.php?q=Json). |
| <b>json_test</b> |  | Developer-only command used to test CJSON library.<br/><br/>See also [json_test on forum](https://www.elektroda.com/rtvforum/find.php?q=json_test). |
| <b>KP18058_Current</b> | [RGBLimit][CWLimit] | Sets the maximum current for LED driver. Values 0-31. Example usage: KP18058_Current 14 30.<br/><br/>See also [KP18058_Current on forum](https://www.elektroda.com/rtvforum/find.php?q=KP18058_Current). |
| <b>KP18058_Map</b> | [Ch0][Ch1][Ch2][Ch3][Ch4] | Maps KP18058_Map RGBCW values to given indices of KP18058 channels. This is because KP18058 channels order is not the same for some devices. Some devices are using RGBCW order and some are using GBRCW, etc, etc. Example usage: KP18058_Map 0 1 2 3 4.<br/><br/>See also [KP18058_Map on forum](https://www.elektroda.com/rtvforum/find.php?q=KP18058_Map). |
| <b>KP18058_RGBCW</b> | [HexColor] | Don't use it. It's for direct access of KP18058 driver. You don't need it because LED driver automatically calls it, so just use led_basecolor_rgb.<br/><br/>See also [KP18058_RGBCW on forum](https://www.elektroda.com/rtvforum/find.php?q=KP18058_RGBCW). |
| <b>lcd_clear</b> |  | Clears the LCD.<br/><br/>See also [lcd_clear on forum](https://www.elektroda.com/rtvforum/find.php?q=lcd_clear). |
| <b>lcd_clearAndGoto</b> |  | Clears LCD and go to pos.<br/><br/>See also [lcd_clearAndGoto on forum](https://www.elektroda.com/rtvforum/find.php?q=lcd_clearAndGoto). |
| <b>lcd_goto</b> |  | Go to position on LCD.<br/><br/>See also [lcd_goto on forum](https://www.elektroda.com/rtvforum/find.php?q=lcd_goto). |
| <b>lcd_print</b> |  | Prints a string on the LCD.<br/><br/>See also [lcd_print on forum](https://www.elektroda.com/rtvforum/find.php?q=lcd_print). |
| <b>lcd_printFloat</b> |  | Prints a float on the LCD.<br/><br/>See also [lcd_printFloat on forum](https://www.elektroda.com/rtvforum/find.php?q=lcd_printFloat). |
| <b>lcd_printInt</b> |  | Prints an omt on the LCD.<br/><br/>See also [lcd_printInt on forum](https://www.elektroda.com/rtvforum/find.php?q=lcd_printInt). |
| <b>led_basecolor_rgb</b> | [HexValue] | Puts the LED driver in RGB mode and sets given color.<br/><br/>See also [led_basecolor_rgb on forum](https://www.elektroda.com/rtvforum/find.php?q=led_basecolor_rgb). |
| <b>led_basecolor_rgbcw</b> | [HexValue] | Set PWN color using #RRGGBB[cw][ww].<br/><br/>See also [led_basecolor_rgbcw on forum](https://www.elektroda.com/rtvforum/find.php?q=led_basecolor_rgbcw). |
| <b>led_colorMult</b> | [Value] | Internal usage.<br/><br/>See also [led_colorMult on forum](https://www.elektroda.com/rtvforum/find.php?q=led_colorMult). |
| <b>led_dimmer</b> | [Value] | Set output dimmer 0..100.<br/><br/>See also [led_dimmer on forum](https://www.elektroda.com/rtvforum/find.php?q=led_dimmer). |
| <b>led_dimmerScale</b> | [Scale] | Led_dimmerScale is a simple way of decreasing LED bulbs heating. led_dimmerScale expects argument in 0-1 range. For example, if you set led_dimmerScale to 0.8, then OBK/Home Assistant dimmer at 100% will in reality translate to 80% PWM duty cycle, so LEDs will be slightly darker, but they will heat less and it will prolong LEDs life..<br/><br/>See also [led_dimmerScale on forum](https://www.elektroda.com/rtvforum/find.php?q=led_dimmerScale). |
| <b>led_enableAll</b> | [1or0orToggle] | Power on/off LED but remember the RGB(CW) values.<br/><br/>See also [led_enableAll on forum](https://www.elektroda.com/rtvforum/find.php?q=led_enableAll). |
| <b>led_finishFullLerp</b> |  | This will force-finish LED color interpolation. You can call it after setting the colour to skip the interpolation/smooth transition time. Of course, it makes only sense if you enabled smooth colour transitions.<br/><br/>See also [led_finishFullLerp on forum](https://www.elektroda.com/rtvforum/find.php?q=led_finishFullLerp). |
| <b>led_gammaCtrl</b> | sub-cmd [par] | Control LED Gamma Correction and Calibration.<br/><br/>Example: led_gammaCtrl on<br/><br/>See also [led_gammaCtrl on forum](https://www.elektroda.com/rtvforum/find.php?q=led_gammaCtrl). |
| <b>led_hue</b> | [Value] | This is an alternate way to set the LED color.<br/><br/>See also [led_hue on forum](https://www.elektroda.com/rtvforum/find.php?q=led_hue). |
| <b>led_lerpSpeed</b> | [LerpSpeed] | Sets the speed of colour interpolation, where speed is defined as a number of RGB units per second, so 255 will lerp from 0 to 255 in one second.<br/><br/>See also [led_lerpSpeed on forum](https://www.elektroda.com/rtvforum/find.php?q=led_lerpSpeed). |
| <b>LED_Map</b> | [Ch0][Ch1][Ch2][Ch3][Ch4] | <br/><br/>See also [LED_Map on forum](https://www.elektroda.com/rtvforum/find.php?q=LED_Map). |
| <b>led_nextColor</b> |  | Sets the next color from predefined colours list. Our list is the same as in Tasmota.<br/><br/>See also [led_nextColor on forum](https://www.elektroda.com/rtvforum/find.php?q=led_nextColor). |
| <b>led_saturation</b> | [Value] | This is an alternate way to set the LED color.<br/><br/>See also [led_saturation on forum](https://www.elektroda.com/rtvforum/find.php?q=led_saturation). |
| <b>led_saveInterval</b> | [IntervalSeconds] | This determines how often LED state can be saved to flash memory. The state is saved only if it was modified and if the flag for LED state save is enabled. Set this to higher value if you are changing LED states very often, for example from xLights. Saving too often could wear out flash memory too fast.<br/><br/>See also [led_saveInterval on forum](https://www.elektroda.com/rtvforum/find.php?q=led_saveInterval). |
| <b>led_temperature</b> | [TempValue] | Toggles LED driver into temperature mode and sets given temperature. It using Home Assistant temperature range (in the range from 154-500 defined in homeassistant/util/color.py as HASS_COLOR_MIN and HASS_COLOR_MAX).<br/><br/>See also [led_temperature on forum](https://www.elektroda.com/rtvforum/find.php?q=led_temperature). |
| <b>lfs_append</b> | [FileName][String] | Appends a string to LFS file.<br/><br/>See also [lfs_append on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_append). |
| <b>lfs_appendFloat</b> | [FileName][Float] | Appends a float to LFS file.<br/><br/>See also [lfs_appendFloat on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_appendFloat). |
| <b>lfs_appendInt</b> | [FileName][Int] | Appends a Int to LFS file.<br/><br/>See also [lfs_appendInt on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_appendInt). |
| <b>lfs_appendLine</b> | [FileName][String] | Appends a string to LFS file with a next line marker.<br/><br/>See also [lfs_appendLine on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_appendLine). |
| <b>lfs_format</b> |  | Unmount and format LFS.  Optionally add new size as argument.<br/><br/>See also [lfs_format on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_format). |
| <b>lfs_mkdir</b> | CMD_LFS_MakeDirectory | <br/><br/>See also [lfs_mkdir on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_mkdir). |
| <b>lfs_mount</b> |  | Mount LFS.<br/><br/>See also [lfs_mount on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_mount). |
| <b>lfs_remove</b> | [FileName] | Deletes a LittleFS file.<br/><br/>See also [lfs_remove on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_remove). |
| <b>lfs_size</b> | [MaxSize] | Log or Set LFS size - will apply and re-format next boot, usage setlfssize 0x10000.<br/><br/>See also [lfs_size on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_size). |
| <b>lfs_test1</b> | [FileName] | Tests the LFS file reading feature.<br/><br/>See also [lfs_test1 on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_test1). |
| <b>lfs_test2</b> | [FileName] | Tests the LFS file reading feature.<br/><br/>See also [lfs_test2 on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_test2). |
| <b>lfs_test3</b> | [FileName] | Tests the LFS file reading feature.<br/><br/>See also [lfs_test3 on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_test3). |
| <b>lfs_unmount</b> |  | Un-mount LFS.<br/><br/>See also [lfs_unmount on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_unmount). |
| <b>lfs_write</b> | [FileName][String] | Resets a LFS file and writes a new string to it.<br/><br/>See also [lfs_write on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_write). |
| <b>lfs_writeLine</b> | [FileName][String] | Resets a LFS file and writes a new string to it with newline.<br/><br/>See also [lfs_writeLine on forum](https://www.elektroda.com/rtvforum/find.php?q=lfs_writeLine). |
| <b>linkGirierMCUOutputToChannel</b> | TODO | <br/><br/>See also [linkGirierMCUOutputToChannel on forum](https://www.elektroda.com/rtvforum/find.php?q=linkGirierMCUOutputToChannel). |
| <b>linkTuyaMCUOutputToChannel</b> | [dpId][varType][channelID][obkFlags-Optional][mult-optional][bInverse-Optional][delta-Optional][delta2][delta3] | Used to map between TuyaMCU dpIDs and our internal channels. Mult, inverse and delta are for calibration, they are optional. obkFlags is also optional, you can set it to 1 for battery powered devices, so a variable is set with DPCache, for example a sampling interval for humidity/temperature sensor. Mapping works both ways. DpIDs are per-device, you can get them by sniffing UART communication. Vartypes can also be sniffed from Tuya. VarTypes can be following: 0-raw, 1-bool, 2-value, 3-string, 4-enum, 5-bitmap. Please see [Tuya Docs](https://developer.tuya.com/en/docs/iot/tuya-cloud-universal-serial-port-access-protocol?id=K9hhi0xxtn9cb) for info about TuyaMCU. You can also see our [TuyaMCU Analyzer Tool](https://www.elektroda.com/rtvforum/viewtopic.php?p=20528459#20528459).<br/><br/>See also [linkTuyaMCUOutputToChannel on forum](https://www.elektroda.com/rtvforum/find.php?q=linkTuyaMCUOutputToChannel). |
| <b>listClockEvents</b> |  | Print the complete set clock events list.<br/><br/>See also [listClockEvents on forum](https://www.elektroda.com/rtvforum/find.php?q=listClockEvents). |
| <b>listEventHandlers</b> |  | Prints full list of added event handlers.<br/><br/>See also [listEventHandlers on forum](https://www.elektroda.com/rtvforum/find.php?q=listEventHandlers). |
| <b>listRepeatingEvents</b> |  | Lists all repeating events.<br/><br/>See also [listRepeatingEvents on forum](https://www.elektroda.com/rtvforum/find.php?q=listRepeatingEvents). |
| <b>listScripts</b> |  | Lists all running scripts.<br/><br/>See also [listScripts on forum](https://www.elektroda.com/rtvforum/find.php?q=listScripts). |
| <b>logdelay</b> | [Value] | Value is a number of ms. This will add an artificial delay in each log call. Useful for debugging. This way you can see step by step what happens.<br/><br/>See also [logdelay on forum](https://www.elektroda.com/rtvforum/find.php?q=logdelay). |
| <b>logfeature</b> | [Index][1or0] | Set log feature filter, as an index and a 1 or 0.<br/><br/>See also [logfeature on forum](https://www.elektroda.com/rtvforum/find.php?q=logfeature). |
| <b>loglevel</b> | [Value] | Correct values are 0 to 7. Default is 3. Higher value includes more logs. Log levels are: ERROR = 1, WARN = 2, INFO = 3, DEBUG = 4, EXTRADEBUG = 5. WARNING: you also must separately select logging level filter on web panel in order for more logs to show up there.<br/><br/>See also [loglevel on forum](https://www.elektroda.com/rtvforum/find.php?q=loglevel). |
| <b>logport</b> | [Index] | Allows you to change log output port. On Beken, the UART1 is used for flashing and for TuyaMCU/BL0942, while UART2 is for log. Sometimes it might be easier for you to have log on UART1, so now you can just use this command like backlog uartInit 115200; logport 1 to enable logging on UART1..<br/><br/>See also [logport on forum](https://www.elektroda.com/rtvforum/find.php?q=logport). |
| <b>logtype</b> | [TypeStr] | Logtype direct|thread|none - type of serial logging - thread (in a thread; default), direct (logged directly to serial), none (no UART logging).<br/><br/>See also [logtype on forum](https://www.elektroda.com/rtvforum/find.php?q=logtype). |
| <b>LTR_ALS</b> | [gain] [integration] [repeat] | ALS configuration. Gain mappings: 0-x1 1-x2 2-x4 3-x8 6-x48 7-x96. Integration mappings (ms): 0-100 1-50 2-200 3-400 4-150 5-250 6-300 7-350. Repeat mappings (ms): 0-50 1-100 2-200 3-500 4-1000 5-2000.<br/><br/>Example: LTR_ALS 3 0 3 <br /> gain 8x, integration 100ms, repeat 500ms<br/><br/>See also [LTR_ALS on forum](https://www.elektroda.com/rtvforum/find.php?q=LTR_ALS). |
| <b>LTR_Cycle</b> | [IntervalSeconds] | This is the interval between measurements in seconds, by default 1. Max is 255.<br/><br/>Example: LTR_Cycle 60 <br /> measurement is taken every 60 seconds<br/><br/>See also [LTR_Cycle on forum](https://www.elektroda.com/rtvforum/find.php?q=LTR_Cycle). |
| <b>LTR_INT</b> | [enable] [als_low] [als_high] [persistance] | Interrupt configuration. Enable = 0-1, persistance (oversampling) = 0-15. als_low/als_high - raw thresholds.<br/><br/>Example: LTR_INT 1 200 2000 4 <br /> enable interrupt, when measurement is lower than 200 or higher than 2000 4 times<br/><br/>See also [LTR_INT on forum](https://www.elektroda.com/rtvforum/find.php?q=LTR_INT). |
| <b>Map</b> | [TargetChannel][InputValue][InMin][InMax][OutMin][OutMax] | Used to convert a value from one range into a proportional value of another range.<br/><br/>See also [Map on forum](https://www.elektroda.com/rtvforum/find.php?q=Map). |
| <b>MapRanges</b> | [TargetChannel][InputValue][RangeVal0][RangeVal1][RangeValN] | This will set given channel to an index showing where given input value is within given range sections. For example, MapRanges 10 0.5 0.3 0.6 0.9 will set channel 10 to 1 because 0.5 value is between 0.3 and 0.6.<br/><br/>See also [MapRanges on forum](https://www.elektroda.com/rtvforum/find.php?q=MapRanges). |
| <b>MAX72XXClock_Animate</b> | TODO | <br/><br/>See also [MAX72XXClock_Animate on forum](https://www.elektroda.com/rtvforum/find.php?q=MAX72XXClock_Animate). |
| <b>MAX72XX_Clear</b> | TODO | <br/><br/>See also [MAX72XX_Clear on forum](https://www.elektroda.com/rtvforum/find.php?q=MAX72XX_Clear). |
| <b>MAX72XX_Print</b> | DRV_MAX72XX_Print | <br/><br/>See also [MAX72XX_Print on forum](https://www.elektroda.com/rtvforum/find.php?q=MAX72XX_Print). |
| <b>MAX72XX_refresh</b> | TODO | <br/><br/>See also [MAX72XX_refresh on forum](https://www.elektroda.com/rtvforum/find.php?q=MAX72XX_refresh). |
| <b>MAX72XX_Scroll</b> | DRV_MAX72XX_Scroll | <br/><br/>See also [MAX72XX_Scroll on forum](https://www.elektroda.com/rtvforum/find.php?q=MAX72XX_Scroll). |
| <b>MAX72XX_SetPixel</b> | TODO | <br/><br/>See also [MAX72XX_SetPixel on forum](https://www.elektroda.com/rtvforum/find.php?q=MAX72XX_SetPixel). |
| <b>MAX72XX_Setup</b> | [clk][cs][din][segments] | Sets the maximum current for LED driver.<br/><br/>See also [MAX72XX_Setup on forum](https://www.elektroda.com/rtvforum/find.php?q=MAX72XX_Setup). |
| <b>MCP23017_MapPinToChannel</b> |  | Maps port expander bit to OBK channel.<br/><br/>See also [MCP23017_MapPinToChannel on forum](https://www.elektroda.com/rtvforum/find.php?q=MCP23017_MapPinToChannel). |
| <b>MCP9808_Adr</b> | [HexAdr] | Sets the I2C address of MCP9808, like 0x30.<br/><br/>See also [MCP9808_Adr on forum](https://www.elektroda.com/rtvforum/find.php?q=MCP9808_Adr). |
| <b>MCP9808_AlertMin</b> | [MinT] [OptionalBActiveHigh] | Setup MCP9809 temperature alert for min mode.<br/><br/>See also [MCP9808_AlertMin on forum](https://www.elektroda.com/rtvforum/find.php?q=MCP9808_AlertMin). |
| <b>MCP9808_AlertRange</b> | [MinT] [MaxT] [OptionalBActiveHigh] | Setup MCP9809 temperature alert for range mode.<br/><br/>See also [MCP9808_AlertRange on forum](https://www.elektroda.com/rtvforum/find.php?q=MCP9808_AlertRange). |
| <b>MCP9808_Calibrate</b> | [DeltaTemperature] | <br/><br/>See also [MCP9808_Calibrate on forum](https://www.elektroda.com/rtvforum/find.php?q=MCP9808_Calibrate). |
| <b>MCP9808_Cycle</b> | [DelayInSeconds] | Sets MCP9808 measurement interval.<br/><br/>See also [MCP9808_Cycle on forum](https://www.elektroda.com/rtvforum/find.php?q=MCP9808_Cycle). |
| <b>MqttClient</b> | [ValueString] | Sets the MQTT client. Command keeps Tasmota syntax.<br/><br/>See also [MqttClient on forum](https://www.elektroda.com/rtvforum/find.php?q=MqttClient). |
| <b>MqttGroup</b> | [ValueString] | Sets the MQTT Group topic. Command keeps Tasmota syntax.<br/><br/>See also [MqttGroup on forum](https://www.elektroda.com/rtvforum/find.php?q=MqttGroup). |
| <b>MqttHost</b> | [ValueString] | Sets the MQTT host. Command keeps Tasmota syntax.<br/><br/>See also [MqttHost on forum](https://www.elektroda.com/rtvforum/find.php?q=MqttHost). |
| <b>MqttPassword</b> | [ValueString] | Sets the MQTT pass. Command keeps Tasmota syntax.<br/><br/>See also [MqttPassword on forum](https://www.elektroda.com/rtvforum/find.php?q=MqttPassword). |
| <b>MqttUser</b> | [ValueString] | Sets the MQTT user. Command keeps Tasmota syntax.<br/><br/>See also [MqttUser on forum](https://www.elektroda.com/rtvforum/find.php?q=MqttUser). |
| <b>mqtt_broadcastInterval</b> | [ValueSeconds] | If broadcast self state every 60 seconds/minute is enabled in flags, this value allows you to change the delay, change this 60 seconds to any other value in seconds. This value is not saved, you must use autoexec.bat or short startup command to execute it on every reboot.<br/><br/>See also [mqtt_broadcastInterval on forum](https://www.elektroda.com/rtvforum/find.php?q=mqtt_broadcastInterval). |
| <b>mqtt_broadcastItemsPerSec</b> | [PublishCountPerSecond] | If broadcast self state (this option in flags) is started, then gradually device info is published, with a speed of N publishes per second. Do not set too high value, it may overload LWIP MQTT library. This value is not saved, you must use autoexec.bat or short startup command to execute it on every reboot.<br/><br/>See also [mqtt_broadcastItemsPerSec on forum](https://www.elektroda.com/rtvforum/find.php?q=mqtt_broadcastItemsPerSec). |
| <b>ms_pass</b> | TODO | <br/><br/>See also [ms_pass on forum](https://www.elektroda.com/rtvforum/find.php?q=ms_pass). |
| <b>ms_port</b> | TODO | <br/><br/>See also [ms_port on forum](https://www.elektroda.com/rtvforum/find.php?q=ms_port). |
| <b>ms_publish</b> | TODO | <br/><br/>See also [ms_publish on forum](https://www.elektroda.com/rtvforum/find.php?q=ms_publish). |
| <b>ms_user</b> | TODO | <br/><br/>See also [ms_user on forum](https://www.elektroda.com/rtvforum/find.php?q=ms_user). |
| <b>ntp_info</b> |  | Display NTP related settings.<br/><br/>See also [ntp_info on forum](https://www.elektroda.com/rtvforum/find.php?q=ntp_info). |
| <b>ntp_setLatLong</b> | [Latlong] | Depreciated! Only for backward compatibility! Please use 'time_setLatLong' in the future!.<br/><br/>Example: ntp_SetLatlong -34.911498 138.809488<br/><br/>See also [ntp_setLatLong on forum](https://www.elektroda.com/rtvforum/find.php?q=ntp_setLatLong). |
| <b>ntp_setServer</b> | [ServerIP] | Sets the NTP server.<br/><br/>See also [ntp_setServer on forum](https://www.elektroda.com/rtvforum/find.php?q=ntp_setServer). |
| <b>ntp_timeZoneOfs</b> | [Value] | Sets the time zone offset in hours. Also supports HH:MM syntax if you want to specify value in minutes. For negative values, use -HH:MM syntax, for example -5:30 will shift time by 5 hours and 30 minutes negative.<br/><br/>See also [ntp_timeZoneOfs on forum](https://www.elektroda.com/rtvforum/find.php?q=ntp_timeZoneOfs). |
| <b>obkDeviceList</b> |  | Generate the SSDP list of OpenBeken devices found on the network.<br/><br/>See also [obkDeviceList on forum](https://www.elektroda.com/rtvforum/find.php?q=obkDeviceList). |
| <b>OpenAP</b> |  | Temporarily disconnects from programmed WiFi network and opens Access Point.<br/><br/>See also [OpenAP on forum](https://www.elektroda.com/rtvforum/find.php?q=OpenAP). |
| <b>ota_http</b> | [HTTP_URL] | Starts the firmware update procedure, the argument should be a reachable HTTP server file. You can easily setup HTTP server with Xampp, or Visual Code, or Python, etc. Make sure you are using OTA file for a correct platform (getting N platform RBL on T will brick device, etc etc).<br/><br/>See also [ota_http on forum](https://www.elektroda.com/rtvforum/find.php?q=ota_http). |
| <b>owm_channels</b> | [temperature][humidity][pressure] | Sets channels that will be used to store OWM response results.<br/><br/>See also [owm_channels on forum](https://www.elektroda.com/rtvforum/find.php?q=owm_channels). |
| <b>owm_request</b> |  | Sends OWM request to the API. Do not use it too often, as API may have limits.<br/><br/>See also [owm_request on forum](https://www.elektroda.com/rtvforum/find.php?q=owm_request). |
| <b>owm_setup</b> | [lat][lng][api_key] | Setups OWM driver for your location and API key.<br/><br/>See also [owm_setup on forum](https://www.elektroda.com/rtvforum/find.php?q=owm_setup). |
| <b>Password1</b> | [ValueString] | Sets the Pass of target WiFi. Command keeps Tasmota syntax.<br/><br/>See also [Password1 on forum](https://www.elektroda.com/rtvforum/find.php?q=Password1). |
| <b>PinDeepSleep</b> | [OptionalTimerForWakeup] | Starts a pin deep sleep (deep sleep that can be interrupted by external IO events like a button press). The argument is an optional extra time to wake up also by timer. See [tutorial](https://www.elektroda.com/rtvforum/topic4041971.html).<br/><br/>See also [PinDeepSleep on forum](https://www.elektroda.com/rtvforum/find.php?q=PinDeepSleep). |
| <b>PingHost</b> | [IPStr] | Sets the host to ping by IP watchdog.<br/><br/>See also [PingHost on forum](https://www.elektroda.com/rtvforum/find.php?q=PingHost). |
| <b>PingInterval</b> | [IntegerSeconds] | Sets the interval between ping attempts for ping watchdog mechanism.<br/><br/>See also [PingInterval on forum](https://www.elektroda.com/rtvforum/find.php?q=PingInterval). |
| <b>power</b> | [OnorOfforToggle] | Tasmota-style POWER command. Should work for both LEDs and relay-based devices. You can write POWER0, POWER1, etc to access specific relays.<br/><br/>See also [power on forum](https://www.elektroda.com/rtvforum/find.php?q=power). |
| <b>powerAll</b> |  | Set all outputs.<br/><br/>See also [powerAll on forum](https://www.elektroda.com/rtvforum/find.php?q=powerAll). |
| <b>PowerMax</b> | [MaxPowerInW] | Sets the maximum power limit for BL measurement used to filter incorrect values.<br/><br/>See also [PowerMax on forum](https://www.elektroda.com/rtvforum/find.php?q=PowerMax). |
| <b>PowerSave</b> | [Optional 1 or 0, by default 1 is assumed] | Enables dynamic power saving mode on all platforms with the exception of TR6260. On LN882H PowerSave 1 = light sleep and Powersave >1 (eg PowerSave 2) = deeper sleep. On LN882H PowerSave 1 should be used if BL0937 metering is present. On all supported platforms PowerSave 0 can be used to disable power saving.<br/><br/>See also [PowerSave on forum](https://www.elektroda.com/rtvforum/find.php?q=PowerSave). |
| <b>PowerSave_WFI</b> | [Optional 1 or 0, by default 1 is assumed] | Extra power save by sleeping during idle. Available on Beken, BL602, XR8xx, Realteks, W600 and W800. Reduces current by 0.001-0.002A on Beken. Enabled by default on BL602/W600/W800 (SDK behaviour).<br/><br/>See also [PowerSave_WFI on forum](https://www.elektroda.com/rtvforum/find.php?q=PowerSave_WFI). |
| <b>PowerSet</b> | Power | Measure the real Power with an external, reliable power meter and enter this Power via this command to calibrate. The calibration is automatically saved in the flash memory.<br/><br/>See also [PowerSet on forum](https://www.elektroda.com/rtvforum/find.php?q=PowerSet). |
| <b>publish</b> | [Topic][Value][bOptionalSkipPrefixAndSuffix] | Publishes data by MQTT. The final topic will be obk0696FB33/[Topic]/get, but you can also publish under raw topic, by adding third argument - '1'. You can use argument expansion here, so $CH11 will change to value of the channel 11.<br/><br/>See also [publish on forum](https://www.elektroda.com/rtvforum/find.php?q=publish). |
| <b>publishAll</b> |  | Starts the step by step publish of all available values.<br/><br/>See also [publishAll on forum](https://www.elektroda.com/rtvforum/find.php?q=publishAll). |
| <b>publishBenchmark</b> |  | <br/><br/>See also [publishBenchmark on forum](https://www.elektroda.com/rtvforum/find.php?q=publishBenchmark). |
| <b>publishChannel</b> | [ChannelIndex] | Forces publish of given channel.<br/><br/>See also [publishChannel on forum](https://www.elektroda.com/rtvforum/find.php?q=publishChannel). |
| <b>publishChannels</b> |  | Starts the step by step publish of all channel values.<br/><br/>See also [publishChannels on forum](https://www.elektroda.com/rtvforum/find.php?q=publishChannels). |
| <b>publishDriver</b> | TODO | <br/><br/>See also [publishDriver on forum](https://www.elektroda.com/rtvforum/find.php?q=publishDriver). |
| <b>publishFile</b> | [Topic][Value][bOptionalSkipPrefixAndSuffix] | Publishes data read from LFS file by MQTT. The final topic will be obk0696FB33/[Topic]/get, but you can also publish under raw topic, by adding third argument - '1'.<br/><br/>See also [publishFile on forum](https://www.elektroda.com/rtvforum/find.php?q=publishFile). |
| <b>publishFloat</b> | [Topic][Value][bOptionalSkipPrefixAndSuffix] | Publishes data by MQTT. The final topic will be obk0696FB33/[Topic]/get, but you can also publish under raw topic, by adding third argument - '1'.. You can use argument expansion here, so $CH11 will change to value of the channel 11. This version of command publishes an float, so you can also use math expressions like $CH10*0.0, etc.<br/><br/>See also [publishFloat on forum](https://www.elektroda.com/rtvforum/find.php?q=publishFloat). |
| <b>publishInt</b> | [Topic][Value][bOptionalSkipPrefixAndSuffix] | Publishes data by MQTT. The final topic will be obk0696FB33/[Topic]/get, but you can also publish under raw topic, by adding third argument - '1'.. You can use argument expansion here, so $CH11 will change to value of the channel 11. This version of command publishes an integer, so you can also use math expressions like $CH10*10, etc.<br/><br/>See also [publishInt on forum](https://www.elektroda.com/rtvforum/find.php?q=publishInt). |
| <b>PWMFrequency</b> | [FrequencyInHz] | Sets the global PWM frequency.<br/><br/>See also [PWMFrequency on forum](https://www.elektroda.com/rtvforum/find.php?q=PWMFrequency). |
| <b>PWMG_Raw</b> |  | PWM grouping (synchronous PWM).<br/><br/>See also [PWMG_Raw on forum](https://www.elektroda.com/rtvforum/find.php?q=PWMG_Raw). |
| <b>PWMG_Set</b> | Duty1Percent Duty2Percent DeadTimePercent Frequency PinA PinB | PWM grouping (synchronous PWM).<br/><br/>See also [PWMG_Set on forum](https://www.elektroda.com/rtvforum/find.php?q=PWMG_Set). |
| <b>reboot</b> |  | Same as restart. Needed for bkWriter 1.60 which sends 'reboot' cmd before trying to get bus via UART. Thanks to this, if you enable command line on UART1, you don't need to manually reboot while flashing via UART.<br/><br/>See also [reboot on forum](https://www.elektroda.com/rtvforum/find.php?q=reboot). |
| <b>removeClockEvent</b> | [ID] | Removes clock event with given ID.<br/><br/>See also [removeClockEvent on forum](https://www.elektroda.com/rtvforum/find.php?q=removeClockEvent). |
| <b>resetSVM</b> |  | Resets all SVM and clears all scripts.<br/><br/>See also [resetSVM on forum](https://www.elektroda.com/rtvforum/find.php?q=resetSVM). |
| <b>restart</b> |  | Reboots the module.<br/><br/>See also [restart on forum](https://www.elektroda.com/rtvforum/find.php?q=restart). |
| <b>Result</b> | NULL | A stub for Tasmota.<br/><br/>See also [Result on forum](https://www.elektroda.com/rtvforum/find.php?q=Result). |
| <b>return</b> |  | Script-only command. Currently it just stops totally current script thread.<br/><br/>See also [return on forum](https://www.elektroda.com/rtvforum/find.php?q=return). |
| <b>SafeMode</b> | [OptionalDelayBeforeRestart] | Forces device reboot into safe mode (open ap with disabled drivers). Argument is a delay to restart in seconds, optional, minimal delay is 1.<br/><br/>See also [SafeMode on forum](https://www.elektroda.com/rtvforum/find.php?q=SafeMode). |
| <b>scanI2C</b> | [Soft/I2C1/I2C2] | Scans given I2C line for addresses. I2C driver must be started first.<br/><br/>See also [scanI2C on forum](https://www.elektroda.com/rtvforum/find.php?q=scanI2C). |
| <b>scheduleHADiscovery</b> | [Seconds] | This will schedule HA discovery, the discovery will happen with given number of seconds, but timer only counts when MQTT is connected. It will not work without MQTT online, so you must set MQTT credentials first.<br/><br/>See also [scheduleHADiscovery on forum](https://www.elektroda.com/rtvforum/find.php?q=scheduleHADiscovery). |
| <b>sendGet</b> | [TargetURL] | Sends a HTTP GET request to target URL. May include GET arguments. Can be used to control devices by Tasmota HTTP protocol. Command supports argument expansion, so $CH11 changes to value of channel 11, etc, etc.<br/><br/>See also [sendGet on forum](https://www.elektroda.com/rtvforum/find.php?q=sendGet). |
| <b>SendIR2</b> | CMD_IR2_SendIR2 | <br/><br/>See also [SendIR2 on forum](https://www.elektroda.com/rtvforum/find.php?q=SendIR2). |
| <b>sendPOST</b> | [TargetURL] [HTTP Port] [Content Type] [Post Content] | Sends a HTTP POST request to target URL. Arguments can contain variable expansion.<br/><br/>See also [sendPOST on forum](https://www.elektroda.com/rtvforum/find.php?q=sendPOST). |
| <b>Sensor</b> | NULL | A stub for Tasmota.<br/><br/>See also [Sensor on forum](https://www.elektroda.com/rtvforum/find.php?q=Sensor). |
| <b>setButtonColor</b> | [ButtonIndex][Color] | Sets the colour of custom scriptable HTTP page button.<br/><br/>See also [setButtonColor on forum](https://www.elektroda.com/rtvforum/find.php?q=setButtonColor). |
| <b>setButtonCommand</b> | [ButtonIndex][Command] | Sets the command of custom scriptable HTTP page button.<br/><br/>See also [setButtonCommand on forum](https://www.elektroda.com/rtvforum/find.php?q=setButtonCommand). |
| <b>setButtonEnabled</b> | [ButtonIndex][1or0] | Sets the visibility of custom scriptable HTTP page button.<br/><br/>See also [setButtonEnabled on forum](https://www.elektroda.com/rtvforum/find.php?q=setButtonEnabled). |
| <b>setButtonHoldRepeat</b> | [Value] | Sets just the hold button repeat time, given value is times 100ms, so write 1 for 100ms, 2 for 200ms, etc.<br/><br/>See also [setButtonHoldRepeat on forum](https://www.elektroda.com/rtvforum/find.php?q=setButtonHoldRepeat). |
| <b>setButtonLabel</b> | [ButtonIndex][Label] | Sets the label of custom scriptable HTTP page button.<br/><br/>See also [setButtonLabel on forum](https://www.elektroda.com/rtvforum/find.php?q=setButtonLabel). |
| <b>setButtonTimes</b> | [ValLongPress][ValShortPress][ValRepeat] | Each value is times 100ms, so: SetButtonTimes 2 1 1 means 200ms long press, 100ms short and 100ms repeat.<br/><br/>See also [setButtonTimes on forum](https://www.elektroda.com/rtvforum/find.php?q=setButtonTimes). |
| <b>SetChannel</b> | [ChannelIndex][ChannelValue] | Sets a raw channel to given value. Relay channels are using 1 and 0 values. PWM channels are within [0,100] range. Do not use this for LED control, because there is a better and more advanced LED driver with dimming and configuration memory (remembers setting after on/off), LED driver commands has 'led_' prefix.<br/><br/>See also [SetChannel on forum](https://www.elektroda.com/rtvforum/find.php?q=SetChannel). |
| <b>SetChannelEnum</b> | [ChannelIndex][Value:Title][Value:Title] | Creates a channel enumeration type.  Channel type must be set to Enum or ReadOnlyEnum. e.g. SetChannelEnum 1:One "2:Enum Two" 5:Five.<br/><br/>See also [SetChannelEnum on forum](https://www.elektroda.com/rtvforum/find.php?q=SetChannelEnum). |
| <b>SetChannelFloat</b> | [ChannelIndex][ChannelValue] | Sets a raw channel to given float value. Currently only used for LED PWM channels.<br/><br/>See also [SetChannelFloat on forum](https://www.elektroda.com/rtvforum/find.php?q=SetChannelFloat). |
| <b>SetChannelLabel</b> | [ChannelIndex][Str][bHideTogglePrefix] | Sets a channel label for UI and default entity name for Home Assistant discovery. If you use 1 for bHideTogglePrefix, then the 'Toggle ' prefix from UI button will be omitted.<br/><br/>See also [SetChannelLabel on forum](https://www.elektroda.com/rtvforum/find.php?q=SetChannelLabel). |
| <b>SetChannelPrivate</b> | [ChannelIndex][bPrivate] | Channels marked as private are NEVER published via MQTT and excluded from Home Assistant discovery.<br/><br/>See also [SetChannelPrivate on forum](https://www.elektroda.com/rtvforum/find.php?q=SetChannelPrivate). |
| <b>setChannelType</b> | [ChannelIndex][TypeString] | Sets a custom type for channel. Types are mostly used to determine how to display channel value on GUI.<br/><br/>See also [setChannelType on forum](https://www.elektroda.com/rtvforum/find.php?q=setChannelType). |
| <b>SetChannelVisible</b> | [ChannelIndex][bVisible] | This allows you to force-hide a certain channel from HTTP gui. The channel will still work, but will not show up as a button, or a toggle, etc...<br/><br/>See also [SetChannelVisible on forum](https://www.elektroda.com/rtvforum/find.php?q=SetChannelVisible). |
| <b>SetFlag</b> | [FlagIndex][0or1] | Sets given flag.<br/><br/>See also [SetFlag on forum](https://www.elektroda.com/rtvforum/find.php?q=SetFlag). |
| <b>SetFlash</b> | [FlashIndex][FlashValue] | Sets a a flashVars channel directly (if you are using remember state for given channel, it will overwrite, it uses same space for channels memory).<br/><br/>See also [SetFlash on forum](https://www.elektroda.com/rtvforum/find.php?q=SetFlash). |
| <b>setMovingAvg</b> | MovingAvg | Moving average value for power and current. <=1 disable, >=2 count of avg values. The setting is temporary and need to be set at startup.<br/><br/>See also [setMovingAvg on forum](https://www.elektroda.com/rtvforum/find.php?q=setMovingAvg). |
| <b>setMutex</b> | CMD_setMutex | Pinmutex driver (potentially for shutters).<br/><br/>See also [setMutex on forum](https://www.elektroda.com/rtvforum/find.php?q=setMutex). |
| <b>SetPinChannel</b> | [PinIndex][ChannelIndex][optionalChannel2Index] | This allows you to set a channel linked to pin from console. Usually it's easier to do this through WWW panel, so you don't have to use this command.<br/><br/>See also [SetPinChannel on forum](https://www.elektroda.com/rtvforum/find.php?q=SetPinChannel). |
| <b>SetPinRole</b> | [PinRole][RoleIndexOrName] | This allows you to set a pin role, for example a Relay role, or Button, etc. Usually it's easier to do this through WWW panel, so you don't have to use this command.<br/><br/>See also [SetPinRole on forum](https://www.elektroda.com/rtvforum/find.php?q=SetPinRole). |
| <b>setStartupSSID</b> | [Value] | Sets startup SSID, 0 (SSID0) 1 (SSID1).<br/><br/>See also [setStartupSSID on forum](https://www.elektroda.com/rtvforum/find.php?q=setStartupSSID). |
| <b>setStartupSSIDChannel</b> | [Value] | Sets retain channel number to store last used SSID, 0..MAX_RETAIN_CHANNELS-1, -1 to disable. Suggested channel number is 7 (MAXMAX_RETAIN_CHANNELS-5).<br/><br/>See also [setStartupSSIDChannel on forum](https://www.elektroda.com/rtvforum/find.php?q=setStartupSSIDChannel). |
| <b>SetStartValue</b> | [Channel][Value] | Sets the startup value for a channel. Used for start values for relays. Use 1 for High, 0 for low and -1 for 'remember last state'.<br/><br/>See also [SetStartValue on forum](https://www.elektroda.com/rtvforum/find.php?q=SetStartValue). |
| <b>SetUARTPins</b><span style="font-size:0.8em;"><br/>with <i>PLATFORM_LN882H</span> | [rx pin] [tx pin] | Set UART pins.<br/><br/>See also [SetUARTPins on forum](https://www.elektroda.com/rtvforum/find.php?q=SetUARTPins). |
| <b>SetupEnergyStats</b> | [Enable1or0][SampleTime][SampleCount][JSonEnable] | Setup Energy Statistic Parameters: [enable 0 or 1] [sample_time[10..90]] [sample_count[10..180]] [JsonEnable 0 or 1]. JSONEnable is optional.<br/><br/>See also [SetupEnergyStats on forum](https://www.elektroda.com/rtvforum/find.php?q=SetupEnergyStats). |
| <b>SetupIR2</b> | [myPeriodUs] [dutyOnFrac] [dutyOffFrac] [txPin] | Init IR2 pin and interrupt.<br/><br/>See also [SetupIR2 on forum](https://www.elektroda.com/rtvforum/find.php?q=SetupIR2). |
| <b>SetupTestPower</b> | [fakeVoltage] [FakeCurrent] [FakePower] [FakeFrequency] [bAllowRandom] | Starts the fake power metering driver.<br/><br/>See also [SetupTestPower on forum](https://www.elektroda.com/rtvforum/find.php?q=SetupTestPower). |
| <b>SGP_cycle</b> | [int] | Change cycle of measurement by default every 10 seconds 0 to deactivate.<br/><br/>Example: SGP_Cycle 60<br/><br/>See also [SGP_cycle on forum](https://www.elektroda.com/rtvforum/find.php?q=SGP_cycle). |
| <b>SGP_GetBaseline</b> |  | SGP Get baseline.<br/><br/>Example: SGP_GetBaseline<br/><br/>See also [SGP_GetBaseline on forum](https://www.elektroda.com/rtvforum/find.php?q=SGP_GetBaseline). |
| <b>SGP_GetVersion</b> |  | SGP : get version.<br/><br/>Example: SGP_GetVersion<br/><br/>See also [SGP_GetVersion on forum](https://www.elektroda.com/rtvforum/find.php?q=SGP_GetVersion). |
| <b>SGP_SoftReset</b> |  | SGP i2C soft reset.<br/><br/>Example: SGP_SoftReset<br/><br/>See also [SGP_SoftReset on forum](https://www.elektroda.com/rtvforum/find.php?q=SGP_SoftReset). |
| <b>ShortName</b> | [Name] | Sets the short name of the device. This is used as topic for MQTT, for example, for cmnd/obk123121/power etc MQTT calls.<br/><br/>See also [ShortName on forum](https://www.elektroda.com/rtvforum/find.php?q=ShortName). |
| <b>showChannelValues</b> |  | Log channel values.<br/><br/>See also [showChannelValues on forum](https://www.elektroda.com/rtvforum/find.php?q=showChannelValues). |
| <b>showgpi</b> | NULL | Log stat of all GPIs.<br/><br/>See also [showgpi on forum](https://www.elektroda.com/rtvforum/find.php?q=showgpi). |
| <b>SHT_Calibrate</b> | [DeltaTemp][DeltaHumidity] | Calibrate the SHT Sensor as Tolerance is +/-2 degrees C.<br/><br/>Example: SHT_Calibrate -4 10<br/><br/>See also [SHT_Calibrate on forum](https://www.elektroda.com/rtvforum/find.php?q=SHT_Calibrate). |
| <b>SHT_ClearStatus</b> |  | Clear Sensor Status.<br/><br/>Example: SHT_ClearStatusCmd<br/><br/>See also [SHT_ClearStatus on forum](https://www.elektroda.com/rtvforum/find.php?q=SHT_ClearStatus). |
| <b>SHT_cycle</b> | [int] | This is the interval between measurements in seconds, by default 10. Max is 255.<br/><br/>Example: SHT_Cycle 60<br/><br/>See also [SHT_cycle on forum](https://www.elektroda.com/rtvforum/find.php?q=SHT_cycle). |
| <b>SHT_GetStatus</b> |  | Get Sensor Status.<br/><br/>Example: SHT_GetStatusCmd<br/><br/>See also [SHT_GetStatus on forum](https://www.elektroda.com/rtvforum/find.php?q=SHT_GetStatus). |
| <b>SHT_Heater</b> | [1or0] | Activate or Deactivate Heater (0 / 1).<br/><br/>Example: SHT_Heater 1<br/><br/>See also [SHT_Heater on forum](https://www.elektroda.com/rtvforum/find.php?q=SHT_Heater). |
| <b>SHT_LaunchPer</b> | [msb][lsb] | Launch/Change periodical capture for SHT Sensor.<br/><br/>Example: SHT_LaunchPer 0x23 0x22<br/><br/>See also [SHT_LaunchPer on forum](https://www.elektroda.com/rtvforum/find.php?q=SHT_LaunchPer). |
| <b>SHT_Measure</b> |  | Retrieve OneShot measurement for SHT.<br/><br/>Example: SHT_Measure<br/><br/>See also [SHT_Measure on forum](https://www.elektroda.com/rtvforum/find.php?q=SHT_Measure). |
| <b>SHT_MeasurePer</b> |  | Retrieve Periodical measurement for SHT.<br/><br/>Example: SHT_Measure<br/><br/>See also [SHT_MeasurePer on forum](https://www.elektroda.com/rtvforum/find.php?q=SHT_MeasurePer). |
| <b>SHT_ReadAlert</b> |  | Get Sensor alert configuration.<br/><br/>Example: SHT_ReadAlertCmd<br/><br/>See also [SHT_ReadAlert on forum](https://www.elektroda.com/rtvforum/find.php?q=SHT_ReadAlert). |
| <b>SHT_SetAlert</b><span style="font-size:0.8em;"><br/>with <i>all</span> | [temp_high, temp_low, hum_high, hum_low] | Set Sensor alert configuration.<br/><br/>Example: SHT_SetAlertCmd<br/><br/>See also [SHT_SetAlert on forum](https://www.elektroda.com/rtvforum/find.php?q=SHT_SetAlert). |
| <b>SHT_StopPer</b> |  | Stop periodical capture for SHT Sensor.<br/><br/>See also [SHT_StopPer on forum](https://www.elektroda.com/rtvforum/find.php?q=SHT_StopPer). |
| <b>simonirtest</b> |  | Simons Special Test.<br/><br/>See also [simonirtest on forum](https://www.elektroda.com/rtvforum/find.php?q=simonirtest). |
| <b>SimSaveArgs</b> |  | Internal usage only. Command for OBK self-test in Simulator.<br/><br/>See also [SimSaveArgs on forum](https://www.elektroda.com/rtvforum/find.php?q=SimSaveArgs). |
| <b>SM16703P_Init</b> | [NumberOfLEDs][ColorOrder] | This will setup LED driver for a strip with given number of LEDs. Please note that it also works for WS2812B and similiar LEDs. You can optionally set the color order with can be any combination of R, G, B, C and W (e.g. RGBW or GRBWC, default is RGB). See [tutorial](https://www.elektroda.com/rtvforum/topic4036716.html).<br/><br/>See also [SM16703P_Init on forum](https://www.elektroda.com/rtvforum/find.php?q=SM16703P_Init). |
| <b>SM16703P_SetPixel</b> | [index/all] [R] [G] [B] | Sets a pixel for LED strip. Index can be a number or 'all' keyword to set all. Then, 3 integer values for R, G and B. Please note that it also works for WS2812B and similiar LEDs. See [tutorial](https://www.elektroda.com/rtvforum/topic4036716.html).<br/><br/>See also [SM16703P_SetPixel on forum](https://www.elektroda.com/rtvforum/find.php?q=SM16703P_SetPixel). |
| <b>SM16703P_SetRaw</b> | [bUpdate] [byteOfs] [HexData] | Sets the raw data bytes for SPI DMA LED driver at the given offset. Hex data should be as a hex string, for example, FF00AA, etc. The bUpdate, if set to 1, will run SM16703P_Start automatically after setting data. Please note that it also works for WS2812B and similiar LEDs. See [tutorial](https://www.elektroda.com/rtvforum/topic4036716.html).<br/><br/>See also [SM16703P_SetRaw on forum](https://www.elektroda.com/rtvforum/find.php?q=SM16703P_SetRaw). |
| <b>SM16703P_Start</b> |  | This will send the currently set data to the strip. Please note that it also works for WS2812B and similiar LEDs. See [tutorial](https://www.elektroda.com/rtvforum/topic4036716.html).<br/><br/>See also [SM16703P_Start on forum](https://www.elektroda.com/rtvforum/find.php?q=SM16703P_Start). |
| <b>SM2135_Current</b> | [RGBLimit][CWLimit] | Sets the maximum current for LED driver. Please note that arguments are using SM2135 codes, see [full list of codes here](https://www.elektroda.com/rtvforum/viewtopic.php?p=20493415#20493415).<br/><br/>See also [SM2135_Current on forum](https://www.elektroda.com/rtvforum/find.php?q=SM2135_Current). |
| <b>SM2135_Map</b> | [Ch0][Ch1][Ch2][Ch3][Ch4] | Maps the RGBCW values to given indices of SM2135 channels. This is because SM2135 channels order is not the same for some devices. Some devices are using RGBCW order and some are using GBRCW, etc, etc. Example usage: SM2135_Map 0 1 2 3 4.<br/><br/>See also [SM2135_Map on forum](https://www.elektroda.com/rtvforum/find.php?q=SM2135_Map). |
| <b>SM2135_RGBCW</b> | [HexColor] | Don't use it. It's for direct access of SM2135 driver. You don't need it because LED driver automatically calls it, so just use led_basecolor_rgb.<br/><br/>See also [SM2135_RGBCW on forum](https://www.elektroda.com/rtvforum/find.php?q=SM2135_RGBCW). |
| <b>SM2235_Current</b> | [Value] | Sets the maximum current for LED driver.<br/><br/>See also [SM2235_Current on forum](https://www.elektroda.com/rtvforum/find.php?q=SM2235_Current). |
| <b>SM2235_Map</b> | [Ch0][Ch1][Ch2][Ch3][Ch4] | Maps the RGBCW values to given indices of SM2235 channels. This is because SM2235 channels order is not the same for some devices. Some devices are using RGBCW order and some are using GBRCW, etc, etc. Example usage: SM2235_Map 0 1 2 3 4.<br/><br/>See also [SM2235_Map on forum](https://www.elektroda.com/rtvforum/find.php?q=SM2235_Map). |
| <b>SM2235_RGBCW</b> | [HexColor] | Don't use it. It's for direct access of SM2235 driver. You don't need it because LED driver automatically calls it, so just use led_basecolor_rgb.<br/><br/>See also [SM2235_RGBCW on forum](https://www.elektroda.com/rtvforum/find.php?q=SM2235_RGBCW). |
| <b>SoftI2C_SetClkPeriod</b> | [period] | Sets the clock period in number of nop delay cycles (times 10).<br/><br/>Example: SoftI2C_SetClkPeriod 50<br/><br/>See also [SoftI2C_SetClkPeriod on forum](https://www.elektroda.com/rtvforum/find.php?q=SoftI2C_SetClkPeriod). |
| <b>SPC</b> | [Index][RGB] | Sets Palette Color by index.<br/><br/>See also [SPC on forum](https://www.elektroda.com/rtvforum/find.php?q=SPC). |
| <b>SPITestFlash_Erase</b> | CMD_SPITestFlash_Erase | <br/><br/>See also [SPITestFlash_Erase on forum](https://www.elektroda.com/rtvforum/find.php?q=SPITestFlash_Erase). |
| <b>SPITestFlash_ReadData</b> | CMD_SPITestFlash_ReadData | <br/><br/>See also [SPITestFlash_ReadData on forum](https://www.elektroda.com/rtvforum/find.php?q=SPITestFlash_ReadData). |
| <b>SPITestFlash_ReadID</b> | CMD_SPITestFlash_ReadID | <br/><br/>See also [SPITestFlash_ReadID on forum](https://www.elektroda.com/rtvforum/find.php?q=SPITestFlash_ReadID). |
| <b>SPITestFlash_Test</b> | CMD_SPITestFlash_TestPages | TODO.<br/><br/>See also [SPITestFlash_Test on forum](https://www.elektroda.com/rtvforum/find.php?q=SPITestFlash_Test). |
| <b>SPITestFlash_WriteStr</b> | CMD_SPITestFlash_WriteStr | <br/><br/>See also [SPITestFlash_WriteStr on forum](https://www.elektroda.com/rtvforum/find.php?q=SPITestFlash_WriteStr). |
| <b>ssd1306_clear</b> | TODO | <br/><br/>See also [ssd1306_clear on forum](https://www.elektroda.com/rtvforum/find.php?q=ssd1306_clear). |
| <b>ssd1306_goto</b> | TODO | <br/><br/>See also [ssd1306_goto on forum](https://www.elektroda.com/rtvforum/find.php?q=ssd1306_goto). |
| <b>ssd1306_on</b> | TODO | <br/><br/>See also [ssd1306_on on forum](https://www.elektroda.com/rtvforum/find.php?q=ssd1306_on). |
| <b>ssd1306_print</b> | TODO | <br/><br/>See also [ssd1306_print on forum](https://www.elektroda.com/rtvforum/find.php?q=ssd1306_print). |
| <b>ssd1306_rect</b> | TODO | <br/><br/>See also [ssd1306_rect on forum](https://www.elektroda.com/rtvforum/find.php?q=ssd1306_rect). |
| <b>SSID1</b> | [ValueString] | Sets the SSID of target WiFi. Command keeps Tasmota syntax.<br/><br/>See also [SSID1 on forum](https://www.elektroda.com/rtvforum/find.php?q=SSID1). |
| <b>stackOverflow</b> |  | Causes a stack overflow.<br/><br/>See also [stackOverflow on forum](https://www.elektroda.com/rtvforum/find.php?q=stackOverflow). |
| <b>startDriver</b> | [DriverName] | Starts driver.<br/><br/>See also [startDriver on forum](https://www.elektroda.com/rtvforum/find.php?q=startDriver). |
| <b>startScript</b> | [FileName][Label][UniqueID] | Starts a script thread from given file, at given label - can be * for whole file, with given unique ID.<br/><br/>See also [startScript on forum](https://www.elektroda.com/rtvforum/find.php?q=startScript). |
| <b>StartTest</b> | Test_Cmd_Start | <br/><br/>See also [StartTest on forum](https://www.elektroda.com/rtvforum/find.php?q=StartTest). |
| <b>StartupCommand</b> | [Command in quotation marks][bRunAfter] | Sets the new startup command (short startup command, the one stored in config) to given string. Second argument is optional, if set to 1, command will be also executed after setting.<br/><br/>See also [StartupCommand on forum](https://www.elektroda.com/rtvforum/find.php?q=StartupCommand). |
| <b>State</b> | NULL | A stub for Tasmota.<br/><br/>See also [State on forum](https://www.elektroda.com/rtvforum/find.php?q=State). |
| <b>Status</b> | NULL | A stub for Tasmota.<br/><br/>See also [Status on forum](https://www.elektroda.com/rtvforum/find.php?q=Status). |
| <b>stopAllScripts</b> |  | Stops all running scripts.<br/><br/>See also [stopAllScripts on forum](https://www.elektroda.com/rtvforum/find.php?q=stopAllScripts). |
| <b>stopBerry</b> | [Berry code] | Stop Berry VM.<br/><br/>Example: stopBerry<br/><br/>See also [stopBerry on forum](https://www.elektroda.com/rtvforum/find.php?q=stopBerry). |
| <b>stopDriver</b> | [DriverName] | Stops driver.<br/><br/>See also [stopDriver on forum](https://www.elektroda.com/rtvforum/find.php?q=stopDriver). |
| <b>stopScript</b> | [UniqueID] | Force-stop given script thread by ID.<br/><br/>See also [stopScript on forum](https://www.elektroda.com/rtvforum/find.php?q=stopScript). |
| <b>SwingH</b> | CMD_SwingH | <br/><br/>See also [SwingH on forum](https://www.elektroda.com/rtvforum/find.php?q=SwingH). |
| <b>SwingV</b> | CMD_SwingV | <br/><br/>See also [SwingV on forum](https://www.elektroda.com/rtvforum/find.php?q=SwingV). |
| <b>TargetTemperature</b> | CMD_TargetTemperature | <br/><br/>See also [TargetTemperature on forum](https://www.elektroda.com/rtvforum/find.php?q=TargetTemperature). |
| <b>TasTeleInterval</b> | [SensorInterval][StateInterval] | This allows you to configure Tasmota TELE publish intervals, only if you have TELE flag enabled. First argument is interval for sensor publish (energy metering, etc), second is interval for State tele publish.<br/><br/>See also [TasTeleInterval on forum](https://www.elektroda.com/rtvforum/find.php?q=TasTeleInterval). |
| <b>testArgs</b> |  | Test tokenizer for args and print back all the given args to console.<br/><br/>See also [testArgs on forum](https://www.elektroda.com/rtvforum/find.php?q=testArgs). |
| <b>testAtoi</b> |  | Test atoi function.<br/><br/>See also [testAtoi on forum](https://www.elektroda.com/rtvforum/find.php?q=testAtoi). |
| <b>TestChannelSetToExpression</b> | CMD_TestChannelSetToExpression | <br/><br/>See also [TestChannelSetToExpression on forum](https://www.elektroda.com/rtvforum/find.php?q=TestChannelSetToExpression). |
| <b>testFloats</b> |  | Do some more test printfs with floating point numbers.<br/><br/>See also [testFloats on forum](https://www.elektroda.com/rtvforum/find.php?q=testFloats). |
| <b>TestIPtoStr</b> | CMD_TestIPtoStr | <br/><br/>See also [TestIPtoStr on forum](https://www.elektroda.com/rtvforum/find.php?q=TestIPtoStr). |
| <b>testJSON</b> |  | Test the JSON library.<br/><br/>See also [testJSON on forum](https://www.elektroda.com/rtvforum/find.php?q=testJSON). |
| <b>testLog</b> |  | Do some test printfs to log with integer and a float.<br/><br/>See also [testLog on forum](https://www.elektroda.com/rtvforum/find.php?q=testLog). |
| <b>testMallocFree</b> |  | Test malloc and free functionality to see if the device crashes.<br/><br/>See also [testMallocFree on forum](https://www.elektroda.com/rtvforum/find.php?q=testMallocFree). |
| <b>TestMemcmp</b> | CMD_TestMemcmp | <br/><br/>See also [TestMemcmp on forum](https://www.elektroda.com/rtvforum/find.php?q=TestMemcmp). |
| <b>TestMemcpy</b> | CMD_TestMemcpy | <br/><br/>See also [TestMemcpy on forum](https://www.elektroda.com/rtvforum/find.php?q=TestMemcpy). |
| <b>TestMemset</b> | CMD_TestMemset | <br/><br/>See also [TestMemset on forum](https://www.elektroda.com/rtvforum/find.php?q=TestMemset). |
| <b>TestParseIP</b> | CMD_TestParseIP | <br/><br/>See also [TestParseIP on forum](https://www.elektroda.com/rtvforum/find.php?q=TestParseIP). |
| <b>testRealloc</b> |  | Test realloc and free functions to see if the device crashes.<br/><br/>See also [testRealloc on forum](https://www.elektroda.com/rtvforum/find.php?q=testRealloc). |
| <b>TestSprintfForFloat</b> | CMD_TestSprintfForFloat | <br/><br/>See also [TestSprintfForFloat on forum](https://www.elektroda.com/rtvforum/find.php?q=TestSprintfForFloat). |
| <b>TestSprintfForHex</b> | CMD_TestSprintfForHex | <br/><br/>See also [TestSprintfForHex on forum](https://www.elektroda.com/rtvforum/find.php?q=TestSprintfForHex). |
| <b>TestSprintfForInteger</b> | CMD_TestSprintfForInteger | <br/><br/>See also [TestSprintfForInteger on forum](https://www.elektroda.com/rtvforum/find.php?q=TestSprintfForInteger). |
| <b>TestStrcat</b> | CMD_TestStrcat | <br/><br/>See also [TestStrcat on forum](https://www.elektroda.com/rtvforum/find.php?q=TestStrcat). |
| <b>TestStrcmp</b> | CMD_TestStrcmp | <br/><br/>See also [TestStrcmp on forum](https://www.elektroda.com/rtvforum/find.php?q=TestStrcmp). |
| <b>TestStrcpy</b> | CMD_TestStrcpy | <br/><br/>See also [TestStrcpy on forum](https://www.elektroda.com/rtvforum/find.php?q=TestStrcpy). |
| <b>testStrdup</b> |  | Test strdup function to see if it allocs news string correctly, also test freeing the string.<br/><br/>See also [testStrdup on forum](https://www.elektroda.com/rtvforum/find.php?q=testStrdup). |
| <b>TestStrlen</b> | CMD_TestStrlen | <br/><br/>See also [TestStrlen on forum](https://www.elektroda.com/rtvforum/find.php?q=TestStrlen). |
| <b>TestStrncpy</b> | CMD_TestStrncpy | <br/><br/>See also [TestStrncpy on forum](https://www.elektroda.com/rtvforum/find.php?q=TestStrncpy). |
| <b>testus</b> | pin <pause in us> <testval 1 in us> [<testval n in us>...] | Tests usleep on given pin .<br/><br/>Example: testus 11 5 2 4 6 10 20 50 100 200 500<br/><br/>See also [testus on forum](https://www.elektroda.com/rtvforum/find.php?q=testus). |
| <b>TimeSize</b> |  | Prints the size of time_t on current platform - sizeof(time_t), only for testing purposes.<br/><br/>See also [TimeSize on forum](https://www.elektroda.com/rtvforum/find.php?q=TimeSize). |
| <b>time_setDST</b> |  Rule# [1/2] nthWeek month day hour DSToffset [additional minutes _after_ this Point: <DST-Offset> for 'start' of DST, 0 for 'end' of DST] | Sets daylight saving time (DST).<br/><br/>Example: TIME_setDST 0 3 1 2 1 0 10 1 3 0 <br/>     -- 1st rule: last_week March sunday 2_o_clock 1_hour_DST_after_this_time <br/>     -- 2nd_rule: last_week October sunday 3_o_clock 0_hours_DST_after_this_time <br/><br/>See also [time_setDST on forum](https://www.elektroda.com/rtvforum/find.php?q=time_setDST). |
| <b>time_setLatLong</b> | [Latlong] | Sets the devices latitude and longitude.<br/><br/>Example: TIME_SetLatlong -34.911498 138.809488<br/><br/>See also [time_setLatLong on forum](https://www.elektroda.com/rtvforum/find.php?q=time_setLatLong). |
| <b>time_setTime</b> | [Value] | Sets the time of device in seconds after 19700101.<br/><br/>See also [time_setTime on forum](https://www.elektroda.com/rtvforum/find.php?q=time_setTime). |
| <b>time_setTZ</b> | [Value] | Sets the time zone offset in hours. Also supports HH:MM syntax if you want to specify value in minutes. For negative values, use -HH:MM syntax, for example -5:30 will shift time by 5 hours and 30 minutes negative.<br/><br/>See also [time_setTZ on forum](https://www.elektroda.com/rtvforum/find.php?q=time_setTZ). |
| <b>TM1650_Test</b> | CMD_TM1650_Test | <br/><br/>See also [TM1650_Test on forum](https://www.elektroda.com/rtvforum/find.php?q=TM1650_Test). |
| <b>TMGN_Brightness</b> | [Brigthness0to7][bOn] | This allows you to change brightness and state of  TM1637/GN932/etc display.<br/><br/>See also [TMGN_Brightness on forum](https://www.elektroda.com/rtvforum/find.php?q=TMGN_Brightness). |
| <b>TMGN_Char</b> | [CharIndex] [CharCode] | This allows you to set binary code for given char, valid chars range is 0 to 15, because this is 7-seg display.<br/><br/>See also [TMGN_Char on forum](https://www.elektroda.com/rtvforum/find.php?q=TMGN_Char). |
| <b>TMGN_Clear</b> |  | This clears the TM1637/GN932/etc display.<br/><br/>See also [TMGN_Clear on forum](https://www.elektroda.com/rtvforum/find.php?q=TMGN_Clear). |
| <b>TMGN_Map</b> | [Map0][Map1, etc] | This allows you to remap characters order for TM1637/GN932/etc. My TM1637 module from Aliexpress has a strange characters order.<br/><br/>See also [TMGN_Map on forum](https://www.elektroda.com/rtvforum/find.php?q=TMGN_Map). |
| <b>TMGN_Print</b> | [StartOfs] [MaxLenOr0] [StringText] [optionalBClampWithZeroesForClock] | This allows you to print string on TM1637/GN932/etc display, it supports variables expansion.<br/><br/>See also [TMGN_Print on forum](https://www.elektroda.com/rtvforum/find.php?q=TMGN_Print). |
| <b>TMGN_Read</b> |  | Executes a single buttons read on TM/GN LED driver.<br/><br/>See also [TMGN_Read on forum](https://www.elektroda.com/rtvforum/find.php?q=TMGN_Read). |
| <b>TMGN_SetBit</b> | [CharIndex] [BitIndex] [BitValue] | Set given bit of given digit to 1 or 0.<br/><br/>See also [TMGN_SetBit on forum](https://www.elektroda.com/rtvforum/find.php?q=TMGN_SetBit). |
| <b>TMGN_SetupButtons</b> | [Interval] | Setups periodic buttons read on TM/GN LED driver.<br/><br/>See also [TMGN_SetupButtons on forum](https://www.elektroda.com/rtvforum/find.php?q=TMGN_SetupButtons). |
| <b>TMGN_Test</b> |  | <br/><br/>See also [TMGN_Test on forum](https://www.elektroda.com/rtvforum/find.php?q=TMGN_Test). |
| <b>ToggleChannel</b> | [ChannelIndex] | Toggles given channel value. Non-zero becomes zero, zero becomes 1.<br/><br/>See also [ToggleChannel on forum](https://www.elektroda.com/rtvforum/find.php?q=ToggleChannel). |
| <b>toggler_channel</b> | [ChannelIndex] | Handles toggler_channel0, toggler_channel1. Sets channel linked to given toggler slot.<br/><br/>See also [toggler_channel on forum](https://www.elektroda.com/rtvforum/find.php?q=toggler_channel). |
| <b>toggler_enable</b> | [1or0] | Sets the given output ON or OFF.  handles toggler_enable0, toggler_enable1, etc.<br/><br/>See also [toggler_enable on forum](https://www.elektroda.com/rtvforum/find.php?q=toggler_enable). |
| <b>toggler_name</b> |  | Handles toggler_name0, toggler_name1, etc. Sets the name of a toggler for GUI.<br/><br/>See also [toggler_name on forum](https://www.elektroda.com/rtvforum/find.php?q=toggler_name). |
| <b>toggler_set</b> | [Value] | Sets the VALUE of given output. Handles toggler_set0, toggler_set1, etc. The last digit after command name is changed to slot index. It can also add to current value if you write value like +25 and subtract if you prefix it with - like -25.<br/><br/>See also [toggler_set on forum](https://www.elektroda.com/rtvforum/find.php?q=toggler_set). |
| <b>TS_Clear</b> |  | Clears the text scroller buffer.<br/><br/>See also [TS_Clear on forum](https://www.elektroda.com/rtvforum/find.php?q=TS_Clear). |
| <b>TS_Print</b> | [StartOfs] [MaxLenOr0] [StringText] [optionalBClampWithZeroesForClock] | Prints a text to the text scroller buffer.<br/><br/>See also [TS_Print on forum](https://www.elektroda.com/rtvforum/find.php?q=TS_Print). |
| <b>tuyaMcu_batteryPoweredMode</b> | [Optional 1 or 0, by default 1 is assumed] | Enables battery mode communications for version 3 TuyaMCU. tuyaMcu_batteryPoweredMode 0 can be used to disable the mode.<br/><br/>Example: tuyaMcu_batteryPoweredMode<br/><br/>See also [tuyaMcu_batteryPoweredMode on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_batteryPoweredMode). |
| <b>tuyaMcu_defWiFiState</b> |  | Command sets the default WiFi state for TuyaMCU when device is not online. It may be required for some devices to work, because Tuya designs them to ignore touch buttons or beep when not paired. Please see [values table and description here](https://www.elektroda.com/rtvforum/viewtopic.php?p=20483899#20483899).<br/><br/>See also [tuyaMcu_defWiFiState on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_defWiFiState). |
| <b>tuyaMcu_enableAutoSend</b> | [0/1] | Enable or disable automatic sending of commands to TuyaMCU during boot/initialization. Use 0 to disable, 1 to enable.<br/><br/>Example: tuyaMcu_enableAutoSend 0<br/><br/>See also [tuyaMcu_enableAutoSend on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_enableAutoSend). |
| <b>tuyaMcu_sendCmd</b> | [CommandIndex] [HexPayloadNBytes] | This will automatically calculate TuyaMCU checksum and length for given command ID and payload, then it will send a command. It's better to use it than uartSendHex.<br/><br/>See also [tuyaMcu_sendCmd on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendCmd). |
| <b>tuyaMcu_sendColor</b> | [dpID] [red01] [green01] [blue01] [tuyaRGBformat] | This sends a TuyaMCU color string of given format for given RGB values, where each value is in [0,1] range as float.<br/><br/>See also [tuyaMcu_sendColor on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendColor). |
| <b>tuyaMcu_sendCurTime</b> |  | Sends a current date by TuyaMCU to clock/callendar MCU. Time is taken from NTP driver, so NTP also should be already running.<br/><br/>See also [tuyaMcu_sendCurTime on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendCurTime). |
| <b>tuyaMcu_sendHeartbeat</b> |  | Send heartbeat to TuyaMCU.<br/><br/>See also [tuyaMcu_sendHeartbeat on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendHeartbeat). |
| <b>tuyaMcu_sendMCUConf</b> |  | Send MCU conf command.<br/><br/>See also [tuyaMcu_sendMCUConf on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendMCUConf). |
| <b>tuyaMcu_sendProductInformation</b> |  | Send query packet (0x01). No arguments needed.<br/><br/>See also [tuyaMcu_sendProductInformation on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendProductInformation). |
| <b>tuyaMcu_sendQueryState</b> |  | Send query state command. No arguments needed.<br/><br/>See also [tuyaMcu_sendQueryState on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendQueryState). |
| <b>tuyaMcu_sendRSSI</b> |  | Command sends the specific RSSI value to TuyaMCU (it will send current RSSI if no argument is set).<br/><br/>See also [tuyaMcu_sendRSSI on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendRSSI). |
| <b>tuyaMcu_sendState</b> | [dpID][dpType][dpValue] | Manually send set state command. Do not use it. Use mapping, so communication is bidirectional and automatic.<br/><br/>See also [tuyaMcu_sendState on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendState). |
| <b>tuyaMcu_setBatteryAckDelay</b> | [ackDelay] | Defines the delay before the ACK is sent to TuyaMCU sending the device to sleep. Default value is 0 seconds.<br/><br/>See also [tuyaMcu_setBatteryAckDelay on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_setBatteryAckDelay). |
| <b>tuyaMcu_setBaudRate</b> | [BaudValue] | Sets the baud rate used by TuyaMCU UART communication. Default value is 9600. Some other devices require 115200.<br/><br/>See also [tuyaMcu_setBaudRate on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_setBaudRate). |
| <b>tuyaMcu_setDimmerRange</b> | [Min][Max] | Set dimmer range used by TuyaMCU.<br/><br/>See also [tuyaMcu_setDimmerRange on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_setDimmerRange). |
| <b>tuyaMcu_setupLED</b> | [dpIDColor] [TasFormat] [dpIDPower] | Setups the TuyaMCU LED driver for given color dpID and power dpID. Also allows you to choose color format.<br/><br/>See also [tuyaMcu_setupLED on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_setupLED). |
| <b>tuyaMcu_testSendTime</b> |  | Sends a example date by TuyaMCU to clock/callendar MCU.<br/><br/>See also [tuyaMcu_testSendTime on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_testSendTime). |
| <b>uartFakeHex</b> | [HexString] | Spoofs a fake hex packet so it looks like TuyaMCU send that to us. Used for testing.<br/><br/>See also [uartFakeHex on forum](https://www.elektroda.com/rtvforum/find.php?q=uartFakeHex). |
| <b>uartInit</b> | [BaudRate] | Manually starts UART1 port. Keep in mind that you don't need to do it for TuyaMCU and BL0942, those drivers do it automatically.<br/><br/>See also [uartInit on forum](https://www.elektroda.com/rtvforum/find.php?q=uartInit). |
| <b>uartSendASCII</b> | [AsciiString] | Sends given string by UART.<br/><br/>See also [uartSendASCII on forum](https://www.elektroda.com/rtvforum/find.php?q=uartSendASCII). |
| <b>uartSendHex</b> | [HexString] | Sends raw data by UART, can be used to send TuyaMCU data, but you must write whole packet with checksum yourself.<br/><br/>See also [uartSendHex on forum](https://www.elektroda.com/rtvforum/find.php?q=uartSendHex). |
| <b>UCS1912_Test</b> |  | <br/><br/>See also [UCS1912_Test on forum](https://www.elektroda.com/rtvforum/find.php?q=UCS1912_Test). |
| <b>VCPPrecision</b> | [VoltageDigits][CurrentDigitsAmpers][PowerDigitsWats][EnergyDigitsWh][Frequency] | Sets the number of digits after decimal point for power metering publishes for BL09XX. Default is `VCPPrecision 1 3 2 3 3`. This works for OBK-style publishes.  Only the first argument is required, others are optional.<br/><br/>See also [VCPPrecision on forum](https://www.elektroda.com/rtvforum/find.php?q=VCPPrecision). |
| <b>VCPPublishIntervals</b> | [MinDelayBetweenPublishes][ForcedPublishInterval] | First argument is minimal allowed interval in second between Voltage/Current/Power/Energy publishes (even if there is a large change), second value is an interval in which V/C/P/E is always published, even if there is no change.  Frequency is published with Voltage.<br/><br/>See also [VCPPublishIntervals on forum](https://www.elektroda.com/rtvforum/find.php?q=VCPPublishIntervals). |
| <b>VCPPublishThreshold</b> | [VoltageDeltaVolts][CurrentDeltaAmpers][PowerDeltaWats][EnergyDeltaWh][Frequency] | Sets the minimal change between previous reported value over MQTT and next reported value over MQTT. Very useful for BL0942, BL0937, etc. So, if you set, `VCPPublishThreshold 0.25 0.002 0.5 0.25 0.25 0.01` (the default), it will only report voltage again if the delta from previous reported value is larger than 0.25V. Remember, that the device will also ALWAYS force-report values every N seconds (default 60).  The last there arugments are optional.<br/><br/>Example: `VCPPublishThreshold 0.5 0.02 1`<br/><br/>See also [VCPPublishThreshold on forum](https://www.elektroda.com/rtvforum/find.php?q=VCPPublishThreshold). |
| <b>VoltageSet</b> | Voltage | Measure the real voltage with an external, reliable power meter and enter this voltage via this command to calibrate. The calibration is automatically saved in the flash memory.<br/><br/>See also [VoltageSet on forum](https://www.elektroda.com/rtvforum/find.php?q=VoltageSet). |
| <b>waitFor</b> | [EventName] [Argument] | Wait forever for event. Can be used within script. For example, you can do: waitFor MQTTState 1 or waitFor NTPState 1. You can also do waitFor NoPingTime 600 to wait for 600 seconds without ping watchdog getting successful reply.<br/><br/>See also [waitFor on forum](https://www.elektroda.com/rtvforum/find.php?q=waitFor). |
| <b>WebServer</b> | [0 - Stop / 1 - Start] | Setting state of WebServer.<br/><br/>See also [WebServer on forum](https://www.elektroda.com/rtvforum/find.php?q=WebServer). |
| <b>widget_clearAll</b> |  | Removes all registered widgets.<br/><br/>See also [widget_clearAll on forum](https://www.elektroda.com/rtvforum/find.php?q=widget_clearAll). |
| <b>widget_create</b> | [LocationIndex][bAllowCache][FileName] | <br/><br/>See also [widget_create on forum](https://www.elektroda.com/rtvforum/find.php?q=widget_create). |

