From c4c20a898677e719f5b9b894c9f79bb265d42a1f Mon Sep 17 00:00:00 2001 From: jziolkowski Date: Fri, 26 Jul 2019 10:58:47 +0200 Subject: [PATCH] added tb- anchors to first cells of each command table so they can be parsed by Taz. DON'T REMOVE. --- Commands.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Commands.md b/Commands.md index 8771cf5b..fda5f215 100644 --- a/Commands.md +++ b/Commands.md @@ -99,7 +99,7 @@ Simply put, other messages may precede messages published as a result of your co ### Control -Command | Parameters +Command | Parameters :--- | :--- Backlog | List of commands to be executed in sequence separated by `;`
See [Using Backlog](#using-backlog) for examples. BlinkCount | Number of relay toggles ([blinks](#power)) **(does not control the status LED)**
`0` = blink many times before restoring power state
`1..32000` = set number of blinks @@ -121,7 +121,7 @@ See also | [`SetOption11`](#SetOption11) - Swap pushbutton single and double p ### Management -Command | Parameters +Command | Parameters :--- | :--- Delay|`2..3600` = set delay between two backlog commands with 0.1 second increment Emulation|`0` = disable emulation
`1` = enable Belkin WeMo emulation for Alexa
`2` = enable Hue Bridge emulation for Alexa @@ -159,7 +159,7 @@ WebLog|`0` = disable web logging
`1` = show only error messages
`2` = sh ### [Wi-Fi](Troubleshooting#Wi-Fi-issues-arduino-core-versions-and-espressif-sdk) -|Command | Parameters +|Command | Parameters |:--- | :--- AP|`0` = switch to other Wi-Fi Access Point
`1`= select Wi-Fi Access Point 1
`2`= select Wi-Fi Access Point 2 Hostname|`1` = reset hostname to `MQTT_TOPIC-<4digits>` and restart
`` = set hostname (32 char limit) and restart. If hostname contains `%` it will be reset to the default instead. @@ -179,7 +179,7 @@ See also | [`SetOption55`](#Setoption55) - mDNS service control
[`SetOption ### [MQTT](MQTT) -Command | Parameters +Command | Parameters :--- | :--- ButtonRetain|`0` = disable use of MQTT retain flag *(default)*
`1` = enable MQTT retain flag on button press ButtonTopic|`` = set MQTT button topic (32 chars max)
`0` = disable use of MQTT button topic
`1` = set MQTT button topic to device `%topic%`
`2` = reset MQTT button topic to firmware default (`MQTT_BUTTON_TOPIC`) _(default = `0`)_ @@ -213,7 +213,7 @@ See also | [`SetOption2`](#setoption2) - Add units to status messages
[`Set ### [Rules](Rules) -Command | Parameters +Command | Parameters :--- | :--- Rule\ |There are 3 separate rule sets, each with a 511 character limit. Each rule set can contain multiple [rules](Rules#rule-syntax). Each of the rule sets can be enabled or disabled individually (x = `1..3`)
`0` = disable Rule\
`1` = enable Rule\
`2` = toggle Rule\
`4` = disable one-shot detection (perform commands as long as trigger is met)
`5` = enable one-shot (e.g., sometimes used for slow changing sensors like temperature) detection
`6` = toggle one-shot detection
`8` = disable stop-on-error after exception restart
`9` = enable stop-on-error after exception restart
`10` = toggle stop-on-error after exception restart
`` = define [Rule\](Rules)
`+` = append to [Rule\](Rules)
`""` = clear Rule\ RuleTimer\ | Up to eight timers to be used as countdown event (x = `1..8`)
`0..32766` = set countdown rule timer in seconds @@ -243,7 +243,7 @@ When `Mode 1` or `Mode 2` is used, `Latitude` and `Longitude` become available. Timer1 {"Arm":1,"Mode":2,"Time":"-2:23","Window":0,"Days":"11TW11S","Repeat":1,"Output":1,"Action":1} ``` -Command | Parameters +Command | Parameters :--- | :--- Latitude|`` = set latitude Longitude|`` = set longitude @@ -264,7 +264,7 @@ Action |`0` = turn output OFF
`1` = turn output ON
`2` = TOGGLE outputCommand | Parameters :--- | :--- AdcParam|ADC0 analog input parameters for NTC (Temperature) or LDR (Light)
`2..3` = Set default parameters based on current ADC type
`2,32000,10000,3350` = Set Steinhart-Hart formula NTC parameters for Bridge Resistance, NTC Resistance, and Beta Coefficient
`3,10000,12518931,-1.405` = Set parameters for Bridge Resistance, Lux Scalar, and Lux Exponent Altitude|`-30000..30000` - altitude in meters @@ -288,7 +288,7 @@ See also | [`SetOption8`](#SetOption8) - Show temperature in Celsius *(defaul ### [Power Monitoring](Power-Monitoring-Calibration) -Command | Parameters +Command | Parameters :--- | :--- AmpRes |Current sensor resolution
`0..3` = maximum number of decimal places CurrentHigh|`0` = disable current high threshold *(default)*
`` = set current high threshold value in miliamps @@ -320,7 +320,7 @@ See Also | [`SetOption21`](#SetOption21) - Energy monitoring when power is off -Command | Parameters +Command | Parameters :--- | :--- Channel\|`0..100` = set PWM channel dimmer value from 0 to 100% Color | Show color setting (hex or decimal depending on [`SetOption17`](#SetOption17))
`r,g,b` = set color by decimal value (`0..255`)
`#CWWW` = set hex color value for CT lights
`#RRGGBB` = set hex color value for RGB lights
`#RRGGBBWW` = set hex color value for RGBW lights
`#RRGGBBCWWW` = set hex color value for RGBCCT lights (5 PWM channels)

[**White Blend Mode:**](white-blend-mode) _used for 4 channel (RGBW) and 5 channel (RGBWC) devices_. Enable with [`RGBWWTable`](#rgbwwtable) by setting the last PWM channel to zero (e.g., `RGBWWTable 255,255,255,,0`) to lower the white channel intensity. @@ -356,7 +356,7 @@ See also | [`SetOption15`](#SetOption15) - Set PWM control
[`SetOption16`]( ### [Sonoff RF Bridge](Sonoff-RF-Bridge-433) -Command | Parameters +Command | Parameters :--- | :--- RfCode |Show last sent 24-bit user code
`1..8388607` = send 24-bit user code
`#1..#7FFFFF` = send 24-bit hexadecimal user code using RfSync, RfLow and RfHigh timing RfHigh|`1` = reset high pulse time to 840 microseconds
`2..32767` = set high pulse time in microseconds
`#2..#7FFF` = set high pulse time in hexadecimal microseconds @@ -371,7 +371,7 @@ See also | [`SetOption28`](#SetOption28) - Set RF received data format See [Linux Infrared Remote Control (LIRC)](http://www.lirc.org/) for more information. Edit the [`IRremoteESP8266`](https://github.com/arendst/Sonoff-Tasmota/blob/development/lib/IRremoteESP8266-2.6.0/src/IRremoteESP8266.h#L230) header in the `lib` folder to disable (i.e., set to `false`) any unneeded/unwanted protocols and compile your own firmware. Every protocol included consumes program memory and increases the time to decode the IR signal. The air conditioner protocols are the most expensive memory-wise. -Command | Parameters +Command | Parameters :--- | :--- IRsend | Send an IR remote control code as a decimal or hexadecimal string in a JSON payload. In order to send IR data, _**you must configure one of the free device GPIO as `IRsend (8)`. GPIO01 nor GPIO03 can be used.**_

`{"Protocol":"","Bits":,"Data":}`

`"Protocol":"NEC"\|"SONY"\|"RC5"\|"RC6"\|"DISH"\|"JVC"\|"PANASONIC"\|"SAMSUNG"`
`"Bits":1..32` = required number of data bits
    for PANASONIC protocol this parameter is the the address, not the number of bits

`"Data":1..(2^32)-1` = data frame as 32 bit decimal.
    e.g., `IRsend {"Protocol":"NEC","Bits":32,"Data":2170978686}`
**or**
`"Data":0x1..0xFFFFFFFF` = data frame as 32 bit hexadecimal.
    e.g., `IRsend {"Protocol":"NEC","Bits":32,"Data":0x8166817E}`

Alternatively, you can send IR remote control codes using [RAW command encoding](IRSend-RAW-Encoding).

Information on [Receiving Infrared Data](Receiving-Infrared-Remote-Control-Data) IRhvac | Send HVAC IR remote control code as JSON payload
`{"Vendor":"","Power":,"Mode":””, "FanSpeed":””,"Temp":}`
`"Vendor":"Toshiba"\|"Mitsubishi"\|"LG"\|"Fujitsu"`
`"Power":0\|1`
`"Mode":"Hot"\|"Cold"\|"Dry"\|"Auto"`
`"FanSpeed":"1"\|"2"\|"3"\|"4"\|"5"\|"Auto"\|"Silence"`
`"Temp":17..30` @@ -379,7 +379,7 @@ IRhvac | Send HVAC IR remote control code as JSON payload
`{"Vendor":" ### SetOption overview -|Command | Parameters +|Command | Parameters :---: | :--- SetOption0|Save power state and use after restart (=SaveState)
`0` = disable
`1` = enable *(default)* SetOption1|Set [button multipress](Control-other-devices) mode to
`0` = allow all button actions *(default)*
`1` = restrict to single, double and hold actions (i.e., disable inadvertent reset due to long press) @@ -437,7 +437,7 @@ Both Hardware and Software Serial Bridge are supported. Hardware Serial Bridge uses GPIO1 (Tx) and GPIO3 (Rx) pins of your device. Software Serial Bridge can use any other GPIO to be selected with command ``GPIO 67``, ``GPIO 68`` or in Module options by setting GPIOs to ``SerBr Tx`` and ``SerBr Rx``. Expect possible communication errors when additional sensors are configured. -Command | Parameters +Command | Parameters :--- | :--- Baudrate|`1` = set hardware serial bridge to default baudrate of 115200 bps
`` = set baudrate SBaudrate|`1` = set software serial bridge to default baudrate of 9600 bps
`` = set baudrate @@ -458,7 +458,7 @@ SSerialSend5|`` = send hex text to software serial port. Data in serial r The MP3 Player driver is based on the one from DF Robot. They named it [DFPlayer mini](https://www.dfrobot.com/wiki/index.php/DFPlayer_Mini_SKU:DFR0299). All MP3 Players with the identical Serial Control Command structure can be used. -Command | Parameters +Command | Parameters :--- | :--- MP3DAC|`0` = DAC on *(default)*
`1` = DAC off MP3Device | Specify playback device
`1` = USB
`2` = SD Card *(default (also defaults on reset or power cycle))* @@ -472,7 +472,7 @@ MP3Volume|`0..100` = set Volume ### [Domoticz](Domoticz) -Command | Parameters +Command | Parameters :--- | :--- DomoticzIdx\ |Show Domoticz Relay idx \ (x = `1..4`)
`0` = disable use of Relay idx \ *(default)*
`` = Show Relay idx \ DomoticzKeyIdx\ | Show Domoticz Key idx \ (x = `1..4`)
`0` = disable use of Key idx \ *(default)*
`` = Show Key idx \ (to use enable [ButtonTopic](#buttontopic)) @@ -481,7 +481,7 @@ DomoticzSwitchIdx\ | Show Domoticz Switch idx \ (x = `1..4`)
`0` = di DomoticzUpdateTimer | Show current update timer value in seconds
`0` = disable sending interim Domoticz status *(default)*
`1..3600` = send status to Domoticz in defined intervals ### [KNX](KNX-Features) -Command | Parameters +Command | Parameters :--- | :--- KnxTx_Cmnd\|`0` or `1` = send command using slot \ set in KNX Menu at KNX_TX KnxTx_Val\|`` = send float value using slot \ set in KNX Menu at KNX_TX @@ -514,7 +514,7 @@ OPTION| OPTION Value| OPTION| OPTION Value ### [Displays](Displays) -Command | Parameters +Command | Parameters :--- | :--- Display |Show current display setting as JSON payload DisplayAddress|`0..255` = set display module address