Files
OpenBK7231T_App/docs/commands.md
openshwprojects d1f8369e6a docs
2023-04-17 09:19:02 +02:00

29 KiB

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. Do not add anything here, as it will overwritten with next rebuild.

Command Arguments Description
SetChannel [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.
ToggleChannel [ChannelIndex] Toggles given channel value. Non-zero becomes zero, zero becomes 1.
AddChannel [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.
ClampChannel [ChannelIndex][Min][Max] Clamps given channel value to a range.
SetPinRole [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.
SetPinChannel [PinIndex][ChannelIndex] 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.
GetChannel [ChannelIndex] Prints given channel value to console.
GetReadings Prints voltage etc readings to console.
ShortName [Name] Sets the short name of the device.
FriendlyName [Name] Sets the full name of the device
PinDeepSleep Starts a pin deep sleep (deep sleep that can be interrupted by external IO events like a button press)
SetFlag [FlagIndex][1or0] Enables/disables given flag.
FullBootTime [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.
SetChannelLabel [ChannelIndex][Str][bHideTogglePrefix] Sets a channel label for UI. If you use 1 for bHideTogglePrefix, then the 'Toggle ' prefix from button will be omitted
MapRanges [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
Map [TargetChannel][InputValue][InMin][InMax][OutMin][OutMax] qqq
SetChannelVisible [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...
Ch [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.
AddEventHandler [EventName][EventArgument][CommandToRun] This can be used to trigger an action on a button click, long press, etc
AddChangeHandler [Variable][Relation][Constant][Command] This can listen to change in channel value (for example channel 0 becoming 100), or for a voltage/current/power 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', or 'Current' or 'Voltage'
listEventHandlers Prints full list of added event handlers
clearAllHandlers This clears all added event handlers
aliasMem Internal usage only. See docs for 'alias' command.
alias [Alias][Command with spaces] add an aliased command, so a command with spaces can be called with a short, nospaced alias
echo [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.
restart Reboots the module
reboot Same as restart. Needed for bkWriter 1.60 which sends 'reboot' cmd before trying to get bus
clearConfig Clears all config, including WiFi data
clearAll Clears config and all remaining features, like runtime scripts, events, etc
DeepSleep [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.
PowerSave [Optional 1 or 0, by default 1 is assumed] Enables dynamic power saving mode on BK and W600. You can also disable power saving with PowerSave 0.
stackOverflow Causes a stack overflow
crashNull Causes a crash
simonirtest Simons Special Test
if [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
ota_http [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)
scheduleHADiscovery [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.
flags [IntegerValue] Sets the device flags
ClearNoPingTime Command for ping watchdog; it sets the 'time since last ping reply' to 0 again
SetStartValue [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'
OpenAP Temporarily disconnects from programmed WiFi network and opens Access Point
SafeMode Forces device reboot into safe mode (open ap with disabled drivers)
PingInterval [IntegerSeconds] Sets the interval between ping attempts for ping watchdog mechanism
PingHost [IPStr] Sets the host to ping by IP watchdog
led_dimmer [Value] set output dimmer 0..100
Dimmer [Value] Alias for led_dimmer
add_dimmer [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).
led_enableAll [1or0orToggle] Power on/off LED but remember the RGB(CW) values
led_basecolor_rgb [HexValue] Puts the LED driver in RGB mode and sets given color.
Color [HexValue] Puts the LED driver in RGB mode and sets given color.
led_basecolor_rgbcw set PWN color using #RRGGBB[cw][ww]
add_temperature [DeltaValue][bWrapAroundInsteadOfHold] Adds a given value to current LED temperature. Function can wrap or clamp if max/min is exceeded.
led_temperature [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)
CT [TempValue] Same as led_temperature
led_colorMult [Value] Internal usage.
led_saturation [Value] This is an alternate way to set the LED color.
led_hue [Value] This is an alternate way to set the LED color.
led_nextColor Sets the next color from predefined colours list. Our list is the same as in Tasmota.
led_lerpSpeed [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
HSBColor [H][S][B] Tasmota-style colour access. Hue in 0-360 range, saturation in 0-100 and brightness in 0-100 range.
HSBColor1 [Hue] Tasmota-style colour access. Sets hue in 0 to 360 range.
HSBColor2 [Saturation] Tasmota-style colour access. Set saturation in 0 to 100 range.
HSBColor3 [Brightness] Tasmota-style colour access. Sets brightness in 0 to 100 range.
led_finishFullLerp 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.
led_gammaCtrl sub-cmd [par] control LED Gamma Correction and Calibration
e.g.:led_gammaCtrl on
CTRange ctRange
addRepeatingEvent [IntervalSeconds][RepeatsOr-1][CommandToRun] Starts a timer/interval command. Use 'backlog' to fit multiple commands in a single string.
addRepeatingEventID [IntervalSeconds][RepeatsOr-1][UserID][CommandToRun] as addRepeatingEvent, but with a given ID. You can later cancel it with cancelRepeatingEvent.
e.g.:addRepeatingEventID 2 -1 123 Power0 Toggle
cancelRepeatingEvent [UserIDInteger] Stops a given repeating event with a specified ID
clearRepeatingEvents Clears all repeating events.
listRepeatingEvents lists all repeating events
startScript [FileName][Label][UniqueID] Starts a script thread from given file, at given label - can be * for whole file, with given unique ID
stopScript [UniqueID] Force-stop given script thread by ID
stopAllScripts Stops all running scripts
listScripts Lists all running scripts.
goto [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
delay_s [ValueSeconds] Script-only command. Pauses current script thread for given amount of seconds.
delay_ms [ValueMS] Script-only command. Pauses current script thread for given amount of ms.
return Script-only command. Currently it just stops totally current script thread.
resetSVM Resets all SVM and clears all scripts.
sendGet [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.
power [OnorOfforToggle] Tasmota-style POWER command. Should work for both LEDs and relay-based devices. You can write POWER0, POWER1, etc to access specific relays.
powerAll set all outputs
backlog [string of commands separated with ;] run a sequence of ; separated commands
exec [Filename] exec - run autoexec.bat or other file from LFS if present
SSID1 [ValueString] Sets the SSID of target WiFi. Command keeps Tasmota syntax.
Password1 [ValueString] Sets the Pass of target WiFi. Command keeps Tasmota syntax
MqttHost [ValueString] Sets the MQTT host. Command keeps Tasmota syntax
MqttUser [ValueString] Sets the MQTT user. Command keeps Tasmota syntax
MqttPassword [ValueString] Sets the MQTT pass. Command keeps Tasmota syntax
MqttClient [ValueString] Sets the MQTT client. Command keeps Tasmota syntax
State NULL NULL
testMallocFree Test malloc and free functionality to see if the device crashes
testRealloc Test realloc and free functions to see if the device crashes
testJSON Test the JSON library
testLog Do some test printfs to log with integer and a float
testFloats Do some more test printfs with floating point numbers
testArgs Test tokenizer for args and print back all the given args to console
testStrdup Test strdup function to see if it allocs news string correctly, also test freeing the string
lfs_test1 [FileName] Tests the LFS file reading feature.
lfs_test2 [FileName] Tests the LFS file reading feature.
lfs_test3 [FileName] Tests the LFS file reading feature.
AB_Map [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')
Battery_Setup [float][float][float][float][float] measure battery based on ADC args minbatt and maxbatt in mv. optional V_divider(2), Vref(default 2400) and ADC bits(4096) and
e.g.:Battery_Setup 1500 3000 2 2400 4096
Battery_cycle [int] change cycle of measurement by default every 10 seconds
e.g.:Battery_Setup 60
PowerMax BL0937_PowerMax
EnergyCntReset Resets the total Energy Counter, the one that is usually kept after device reboots. After this commands, the counter will start again from 0.
SetupEnergyStats [Enable1or0][SampleTime][SampleCount][JSonEnable] Setup Energy Statistic Parameters: [enable<0
ConsumptionThreshold [FloatValue] Setup value for automatic save of consumption data [1..100]
VCPPublishThreshold [VoltageDeltaVolts][CurrentDeltaAmpers][PowerDeltaWats][EnergyDeltaWh] 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.5 0.001 0.5, it will only report voltage again if the delta from previous reported value is largen than 0.5V. Remember, that the device will also ALWAYS force-report values every N seconds (default 60)
VCPPublishIntervals [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
BP1658CJ_RGBCW [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
BP1658CJ_Map [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
BP1658CJ_Current [MaxCurrentRGB][MaxCurrentCW] Sets the maximum current limit for BP1658CJ driver.
BP5758D_RGBCW [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
BP5758D_Map [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
BP5758D_Current [MaxCurrent] Sets the maximum current limit for BP5758D driver
BridgePulseLength [FloatValue] Setup value for bridge pulse len
CHT_Calibrate Calibrate the CHT Sensor as Tolerance is +/-2 degrees C.
e.g.:SHT_Calibrate -4 10
DSEdge [edgeCode] 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
DSTime [timeSeconds] 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
setButtonColor [ButtonIndex][Color] Sets the colour of custom scriptable HTTP page button
setButtonCommand [ButtonIndex][Command] Sets the command of custom scriptable HTTP page button
setButtonLabel [ButtonIndex][Label] Sets the label of custom scriptable HTTP page button
setButtonEnabled [ButtonIndex][1or0] Sets the visibility of custom scriptable HTTP page button
IRSend [PROT-ADDR-CMD-REP] Sends IR commands in the form PROT-ADDR-CMD-REP, e.g. NEC-1-1A-0
IREnable [Str][1or0] Enable/disable aspects of IR. IREnable RXTX 0/1 - enable Rx whilst Tx. IREnable [protocolname] 0/1 - enable/disable a specified protocol
startDriver [DriverName] Starts driver
stopDriver [DriverName] Stops driver
MAX72XX_Setup [Value] Sets the maximum current for LED driver.
MAX72XX_Scroll DRV_MAX72XX_Scroll
MAX72XX_Print DRV_MAX72XX_Print
ntp_timeZoneOfs [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.
ntp_setServer [ServerIP] Sets the NTP server
ntp_info Display NTP related settings
addClockEvent [Time] [WeekDayFlags] [UniqueIDForRemoval][Command] Schedule command to run on given time in given day of week. NTP must be running. 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 removede later
removeClockEvent [ID] Removes clock event wtih given ID
listClockEvents Print the complete set clock events list
clearClockEvents Removes all set clock events
toggler_enable [1or0] Sets the given output ON or OFF. handles toggler_enable0, toggler_enable1, etc
toggler_set [Value] Sets the VALUE of given output. Handles toggler_set0, toggler_set1, etc. The last digit after command name is changed to slot index.
toggler_channel [ChannelIndex] handles toggler_channel0, toggler_channel1. Sets channel linked to given toggler slot.
toggler_name Handles toggler_name0, toggler_name1, etc. Sets the name of a toggler for GUI.
VoltageSet 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.
CurrentSet 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.
PowerSet 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.
SGP_cycle [int] change cycle of measurement by default every 10 seconds 0 to deactivate
e.g.:SGP_Cycle 60
SGP_GetVersion SGP : get version
e.g.:SGP_GetVersion
SGP_GetBaseline SGP Get baseline
e.g.:SGP_GetBaseline
SGP_SoftReset SGP i2C soft reset
e.g.:SGP_SoftReset
SHT_cycle [int] change cycle of measurement by default every 10 seconds 0 to deactivate
e.g.:SHT_Cycle 60
SHT_Calibrate Calibrate the SHT Sensor as Tolerance is +/-2 degrees C.
e.g.:SHT_Calibrate -4 10
SHT_MeasurePer Retrieve Periodical measurement for SHT
e.g.:SHT_Measure
SHT_LaunchPer [msb][lsb] Launch/Change periodical capture for SHT Sensor
e.g.:SHT_LaunchPer 0x23 0x22
SHT_StopPer Stop periodical capture for SHT Sensor
SHT_Measure Retrieve OneShot measurement for SHT
e.g.:SHT_Measure
SHT_Heater Activate or Deactivate Heater (0 / 1)
e.g.:SHT_Heater 1
SHT_GetStatus Get Sensor Status
e.g.:SHT_GetStatusCmd
SHT_ClearStatus Clear Sensor Status
e.g.:SHT_ClearStatusCmd
SHT_ReadAlert Get Sensor alert configuration
e.g.:SHT_ReadAlertCmd
SHT_SetAlert [temp_high, temp_low, hum_high, hum_low]
Req:all
Set Sensor alert configuration
e.g.:SHT_SetAlertCmd
SM16703P_Test qq
SM16703P_Send NULL
SM16703P_Test_3xZero NULL
SM16703P_Test_3xOne NULL
SM2135_RGBCW [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
SM2135_Map [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
SM2135_Current [RGBLimit][CWLimit] Sets the maximum current for LED driver. Please note that arguments are using SM2135 codes, see full list of codes here
SM2235_RGBCW [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
SM2235_Map [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
SM2235_Current [Value] Sets the maximum current for LED driver.
SPITestFlash_ReadID CMD_SPITestFlash_ReadID
SPITestFlash_WriteStr CMD_SPITestFlash_WriteStr
SPITestFlash_Erase CMD_SPITestFlash_Erase
SPITestFlash_ReadData CMD_SPITestFlash_ReadData
obkDeviceList Generate the SSDP list of OpenBeken devices found on the network.
DGR_SendPower [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.
DGR_SendBrightness [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.
DGR_SendRGBCW [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.
DGR_SendFixedColor [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.
SetupTestPower NULL
TMGN_SetBit [CharIndex] [BitIndex] [BitValue] Set given bit of given digit to 1 or 0.
TMGN_Clear This clears the TM1637/GN932/etc display
TMGN_Char [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
TMGN_Print [StartOfs] [MaxLenOr0] [StringText] [optionalBClampWithZeroesForClock] This allows you to print string on TM1637/GN932/etc display, it supports variables expansion
TMGN_Test CMD_TM1637_Test
TMGN_Brightness [Brigthness0to7][bOn] This allows you to change brightness and state of TM1637/GN932/etc display
TMGN_Map [Map0][Map1, etc] This allows you to remap characters order for TM1637/GN932/etc. My TM1637 module from Aliexpress has a strange characters order.
TM1650_Test CMD_TM1650_Test
tuyaMcu_testSendTime Sends a example date by TuyaMCU to clock/callendar MCU
tuyaMcu_sendCurTime Sends a current date by TuyaMCU to clock/callendar MCU. Time is taken from NTP driver, so NTP also should be already running.
linkTuyaMCUOutputToChannel [dpId][varType][channelID] Used to map between TuyaMCU dpIDs and our internal channels. 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
tuyaMcu_setDimmerRange [Min][Max] Set dimmer range used by TuyaMCU
tuyaMcu_sendHeartbeat Send heartbeat to TuyaMCU
tuyaMcu_sendQueryState Send query state command. No arguments needed.
tuyaMcu_sendProductInformation Send query packet (0x01). No arguments needed.
tuyaMcu_sendState [dpID][dpType][dpValue] Manually send set state command. Do not use it. Use mapping, so communication is bidirectional and automatic.
tuyaMcu_sendMCUConf Send MCU conf command
fakeTuyaPacket [HexString] This simulates packet being sent from TuyaMCU to our OBK device.
tuyaMcu_setBaudRate [BaudValue] Sets the baud rate used by TuyaMCU UART communication. Default value is 9600. Some other devices require 115200.
tuyaMcu_sendRSSI Command sends the specific RSSI value to TuyaMCU (it will send current RSSI if no argument is set)
tuyaMcu_defWiFiState 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.
uartSendHex [HexString] Sends raw data by UART, can be used to send TuyaMCU data, but you must write whole packet with checksum yourself
uartSendASCII [AsciiString] Sends given string by UART.
uartFakeHex [HexString] Spoofs a fake hex packet so it looks like TuyaMCU send that to us. Used for testing.
UCS1912_Test
lcd_clearAndGoto Clears LCD and go to pos
lcd_goto Go to position on LCD
lcd_print Prints a string on the LCD
lcd_printFloat Prints a float on the LCD
lcd_printInt Prints an omt on the LCD
lcd_clear Clears the LCD
addI2CDevice_TC74 Adds a new I2C device - TC74
addI2CDevice_MCP23017 Adds a new I2C device - MCP23017
addI2CDevice_LCM1602 Adds a new I2C device - LCM1602
addI2CDevice_LCD_PCF8574 Adds a new I2C device - PCF8574
MCP23017_MapPinToChannel Maps port expander bit to OBK channel
scanI2C
lfs_size [MaxSize] Log or Set LFS size - will apply and re-format next boot, usage setlfssize 0x10000
lfs_unmount Un-mount LFS
lfs_mount Mount LFS
lfs_format Unmount and format LFS. Optionally add new size as argument
lfs_append [FileName][String] Appends a string to LFS file
lfs_appendFloat [FileName][Float] Appends a float to LFS file
lfs_appendInt [FileName][Int] Appends a Int to LFS file
lfs_appendLine [FileName][String] Appends a string to LFS file with a next line marker
lfs_remove [FileName] Deletes a LittleFS file
lfs_write [FileName][String] Resets a LFS file and writes a new string to it
lfs_writeLine [FileName][String] Resets a LFS file and writes a new string to it with newline
loglevel [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
logfeature [Index][1or0] set log feature filter, as an index and a 1 or 0
logtype [TypeStr] logtype direct
logdelay [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.
publish [Topic][Value] Publishes data by MQTT. The final topic will be obk0696FB33/[Topic]/get. You can use argument expansion here, so $CH11 will change to value of the channel 11
publishInt [Topic][Value] Publishes data by MQTT. The final topic will be obk0696FB33/[Topic]/get. 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.
publishFloat [Topic][Value] Publishes data by MQTT. The final topic will be obk0696FB33/[Topic]/get. 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.
publishAll Starts the step by step publish of all available values
publishChannel [ChannelIndex] Forces publish of given channel
publishChannels Starts the step by step publish of all channel values
publishBenchmark
mqtt_broadcastInterval [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.
mqtt_broadcastItemsPerSec [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.
showgpi NULL log stat of all GPIs
setChannelType [ChannelIndex][TypeString] Sets a custom type for channel. Types are mostly used to determine how to display channel value on GUI
showChannelValues log channel values
setButtonTimes [ValLongPress][ValShortPress][ValRepeat] Each value is times 100ms, so: SetButtonTimes 2 1 1 means 200ms long press, 100ms short and 100ms repeat
setButtonHoldRepeat [Value] Sets just the hold button repeat time, given value is times 100ms, so write 1 for 100ms, 2 for 200ms, etc