mirror of https://github.com/arendst/Tasmota.git
Updated Commands (markdown)
parent
949a071eff
commit
8ec227d78f
14
Commands.md
14
Commands.md
|
@ -258,12 +258,12 @@ Timer1 {"Arm":1,"Mode":2,"Time":"-2:23","Window":0,"Days":"11TW11S","Repeat":1,"
|
|||
<a id="Timers"></a>Timers | Timers control<BR> `0` = disable all timers<BR>`1` = enable all timers<BR>`2` = toggle all timers<BR>
|
||||
<a id="Timer"></a>Timer\<x\> | Parameters for Timer\<x\> where x = `1..16`<BR>`0` = clear parameters for Timer\<x\><BR>`1..16` = copy Timer\<y\> parameters to Timer\<x\><BR>`{ "name":value ; .. }` = set all or individual parameters using [JSON payload](#timerJSON) with names and values of data pairs from the [table below](#timerJSON)
|
||||
|
||||
JSON Name<a id="timerJSON"></a> | JSON Value
|
||||
<a id="timerJSON"></a>JSON Name | JSON Value
|
||||
:--- | :---
|
||||
Arm |`0` = disarm or disable timer<BR>`1` = arm or enable timer
|
||||
Mode |`0` = use clock time<BR>`1` = Use local sunrise time using `Longitude`, `Latitude` and `Time` offset<BR>`2` = use local sunset time using `Longitude`, `Latitude` and `Time` offset
|
||||
Time |`hh:mm` = set time in hours `0 .. 23` and minutes `0 .. 59`<BR>`-hh:mm` = set time in offset hours `-11 .. 12` and minutes `0 .. 59` (used with `Mode 1` and `Mode 2`)
|
||||
Window |`0..15` = add or substract a random number of minutes to `Time`
|
||||
Window |`0..15` = add or subtract a random number of minutes to `Time`
|
||||
Days |`SMTWTFS` = set day of weeks mask where `0` or `-` = OFF and any different character = ON
|
||||
Repeat |`0` = allow timer only once<BR>`1` = repeat timer execution
|
||||
Output |`1..16` = select an output to be used if no rule is enabled
|
||||
|
@ -376,7 +376,7 @@ See also | [`SetOption15`](#SetOption15) - Set PWM control<BR>[`SetOption16`](
|
|||
<a id="RfHost"></a>RfHost | Show 16-bit host part of user code<BR>`1` = reset 16-bit host part of user code to 11802 (#2E1A)<BR>`2..32767` = set 16-bit host part of user code<BR>`#2..7FFF` = set 16-bit host part of user code in hexadecimal
|
||||
<a id="RfKey"></a>RfKey\<x\> | Send learned or default RF data for RfKey\<x\> (x = `1 – 16`)<BR>`1` = send default RF data for RfKey\<x\> using RfSync, RfLow, RfHigh and RfHost parameters<BR>`2` = learn RF data for RfKey\<x\><BR>`3` = unlearn RF data for RfKey\<x\><BR>`4` = save RF data using RfSync, RfLow, RfHigh and last RfCode parameters<BR>`5` = show default or learned RF data
|
||||
<a id="RfLow"></a>RfLow|`1` = reset low pulse time to 270 microseconds<BR>`2..32767` = set low pulse time in microseconds<BR>`#2..#7FFF` = set low pulse time in hexadecimal microseconds
|
||||
<a id="RfRaw"></a>RfRaw | **This command only works when the firmware has been updated with [Portisch firmware](https://github.com/Portisch/RF-Bridge-EFM8BB1/releases).** Refer to the [Portisch wiki](https://github.com/Portisch/RF-Bridge-EFM8BB1/wiki) for details.<BR>`0` = Set iTead default firmware support and messages *(default on restart)*<BR> `1` = set Portisch firmware support and messages<BR> `166` or `AAA655` = start sniffing/reading RF signals disabling iTead default RF handling<BR> `167` or `AAA755` = stop sniffing/reading RF signals enabling iTead default RF handling<BR> `168` or `AAA855` = transmiting iTead default RF protocols<BR> `169` or `AAA955` = start sniffing and learning predefined protocols<BR> `176` or `AAB055` = bucket Transmitting using command 0xB0<BR> `177` or `AAB155` = start Bucket sniffing using command 0xB1<BR> `192` or `AAC000C055` = beep (`00C0` is the length of the sound)<BR> `255` or `AAFF55` = show Rf firmware version<BR> `<value>` = hexadecimal data to be sent to RF chip
|
||||
<a id="RfRaw"></a>RfRaw | **This command only works when the firmware has been updated with [Portisch firmware](https://github.com/Portisch/RF-Bridge-EFM8BB1/releases).** Refer to the [Portisch wiki](https://github.com/Portisch/RF-Bridge-EFM8BB1/wiki) for details.<BR>`0` = Set iTead default firmware support and messages *(default on restart)*<BR> `1` = set Portisch firmware support and messages<BR> `166` or `AAA655` = start sniffing/reading RF signals disabling iTead default RF handling<BR> `167` or `AAA755` = stop sniffing/reading RF signals enabling iTead default RF handling<BR> `168` or `AAA855` = transmitting iTead default RF protocols<BR> `169` or `AAA955` = start sniffing and learning predefined protocols<BR> `176` or `AAB055` = bucket Transmitting using command 0xB0<BR> `177` or `AAB155` = start Bucket sniffing using command 0xB1<BR> `192` or `AAC000C055` = beep (`00C0` is the length of the sound)<BR> `255` or `AAFF55` = show Rf firmware version<BR> `<value>` = hexadecimal data to be sent to RF chip
|
||||
<a id="RfSync"></a>RfSync|`1` = reset start sync pulse time to 8470 microseconds<BR>`2..32767` = set start sync pulse time in microseconds<BR>`#2..#7FFF` = set start sync pulse time in hexadecimal microseconds
|
||||
See also | [`SetOption28`](#SetOption28) - Set RF received data format
|
||||
|
||||
|
@ -417,7 +417,7 @@ See [Linux Infrared Remote Control (LIRC)](http://www.lirc.org/) for more inform
|
|||
<a id="SetOption26"></a>SetOption26|Use indexes even when only one relay is present<BR> `0` = messages use POWER *(default)*<BR> `1` = messages use POWER1
|
||||
<a id="SetOption28"></a>SetOption28|RF received data format<BR> `0` = hex *(default)*<BR> `1` = decimal
|
||||
<a id="SetOption29"></a>SetOption29|IR received data format<BR> `0` = hex *(default)*<BR> `1` = decimal
|
||||
<a id="SetOption30"></a>SetOption30|Enforce Home Assistant autodiscovery as light<BR> `0` = relays are announced as a switch and PWM as a light *(default)*<BR> `1` = both relays and PWM are announced as light
|
||||
<a id="SetOption30"></a>SetOption30|Enforce Home Assistant auto-discovery as light<BR> `0` = relays are announced as a switch and PWM as a light *(default)*<BR> `1` = both relays and PWM are announced as light
|
||||
<a id="SetOption31"></a>SetOption31|Disable status LED blinking during Wi-Fi and MQTT connection problems.[`LedPower`](#LedPower) must be set to `0` for this feature to work.<BR>`0` = LED blinking enabled *(default)*<BR> `1` = LED blinking disabled
|
||||
<a id="SetOption32"></a>SetOption32|Number of 0.1 seconds to hold button before sending `HOLD` action message.<BR> `1..100` to set button hold time *(default =`40`)*. This option also affects the time required to perform a firmware defaults reset (10x `HOLD` action time)
|
||||
<a id="SetOption33"></a>SetOption33|Max power limit can be exceeded by number of seconds before the relay is turned off<BR> `1..250` = set number of seconds *(default = `5`)*
|
||||
|
@ -457,8 +457,8 @@ Software Serial Bridge can use any other GPIO to be selected with command ``GPIO
|
|||
|
||||
<a id="tb-serial">Command | Parameters
|
||||
:--- | :---
|
||||
<a id="Baudrate"></a>Baudrate|`1` = set hardware serial bridge to default baudrate of 115200 bps<BR>`<value>` = set baudrate
|
||||
<a id="SBaudrate"></a>SBaudrate|`1` = set software serial bridge to default baudrate of 9600 bps<BR>`<value>` = set baudrate
|
||||
<a id="Baudrate"></a>Baudrate|`1` = set hardware serial bridge to default baud rate of 115200 bps<BR>`<value>` = set baud rate
|
||||
<a id="SBaudrate"></a>SBaudrate|`1` = set software serial bridge to default baud rate of 9600 bps<BR>`<value>` = set baudrate
|
||||
<a id="SerialDelimiter"></a>SerialDelimiter|`<value>` = set serial delimiter to [escape character code](https://en.wikipedia.org/wiki/Escape_character#ASCII_escape_character) or ASCII character<a> </a>`1..127` = set serial delimiter to [decimal ASCII](http://www.asciichart.com/)<BR>`128` = only allow ASCII characters 32 to 127 in response text<BR>`129..255` = disable serial delimiter
|
||||
<a id="SerialSend"></a>SerialSend|`<value>` = disable serial logging and send text to serial port ending with `\n`
|
||||
<a id="SerialSend2"></a>SerialSend2|`<value>` = disable serial logging and send text to serial port
|
||||
|
@ -473,7 +473,7 @@ Software Serial Bridge can use any other GPIO to be selected with command ``GPIO
|
|||
|
||||
### MP3 Player
|
||||
|
||||
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.
|
||||
The MP3 Player driver is based on the one from DFRobot. 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.
|
||||
|
||||
|
||||
<a id="tb-mp3">Command | Parameters
|
||||
|
|
Loading…
Reference in New Issue