mirror of https://github.com/arendst/Tasmota.git
IR Protocols
parent
f32545bdea
commit
3dae0496ef
|
@ -269,7 +269,7 @@ Command | Parameters
|
|||
AdcParam|<a id="AdcParam"></a>ADC0 analog input parameters for NTC (Temperature) or LDR (Light)<BR>`2..3` = Set default parameters based on current ADC type<BR>`2,32000,10000,3350` = Set Steinhart-Hart formula NTC parameters for Bridge Resistance, NTC Resistance, and Beta Coefficient<BR>`3,10000,12518931,-1.405` = Set parameters for Bridge Resistance, Lux Scalar, and Lux Exponent<a id="Altitude"></a>
|
||||
Altitude|`-30000..30000` - altitude in meters<a id="AmpRes"></a>
|
||||
AmpRes | Current sensor resolution<BR>`0..3` = maximum number of decimal places<a id="Counter"></a>
|
||||
Counter\<x\>|`0` = reset Counter\<x\><BR> `1..64900` = preset Counter\<x\><BR>`-1..-64900` = decrease Counter\<x\><BR>`+1..+64900` = increase Counter\<x\><BR>In order to define and use a Counter, _**you must configure one of the free device GPIO as 'Counter<x>'**_<a id="CounterDebounce"></a>
|
||||
Counter\<x\>|`0` = reset Counter\<x\><BR> `1..64900` = preset Counter\<x\><BR>`-1..-64900` = decrease Counter\<x\><BR>`+1..+64900` = increase Counter\<x\><BR>In order to define and use a Counter, _**you must configure one of the free device GPIO as `Counter<x>`**_<a id="CounterDebounce"></a>
|
||||
CounterDebounce|`0` = turn off counter debounce<BR> `1..3200` = set counter debounce time in msec<a id="CounterType"></a>
|
||||
CounterType\<x\>|`0` = set Counter\<x\> as pulse Counter<BR>`1` = set Counter\<x\> as pulse Timer<a id="EnergyRes"></a>
|
||||
EnergyRes | Energy sensor resolution<BR>`0..5` = maximum number of decimal places<a id="HumRes"></a>
|
||||
|
@ -369,11 +369,11 @@ See also | [`SetOption28`](#SetOption28) - Set RF received data format
|
|||
|
||||
### IRremote
|
||||
|
||||
See [Linux Infrared Remote Control (LIRC)](http://www.lirc.org/) for more information.
|
||||
See [Linux Infrared Remote Control (LIRC)](http://www.lirc.org/) for more information. Edit [`lib/IRremoteESP8266-2.6.0`](https://github.com/arendst/Sonoff-Tasmota/blob/development/lib/IRremoteESP8266-2.6.0/src/IRremoteESP8266.h#L230) to disable (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
|
||||
:--- | :---
|
||||
IRsend | <a id="IRsend"></a>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 cannot be used.**_<BR><BR>`{"Protocol":"<value>","Bits":<value>,"Data":<value>}`<BR><BR>`"Protocol":"NEC"\|"SONY"\|"RC5"\|"RC6"\|"DISH"\|"JVC"\|"PANASONIC"\|"SAMSUNG"`<BR>`"Bits":1..32` = required number of data bits<BR> for PANASONIC protocol this parameter is the the address, not the number of bits<BR><BR>`"Data":1..(2^32)-1` = data frame as 32 bit decimal.<BR> e.g., `IRsend {"Protocol":"NEC","Bits":32,"Data":2170978686}`<BR>**or**<BR>`"Data":0x1..0xFFFFFFFF` = data frame as 32 bit hexadecimal.<BR> e.g., `IRsend {"Protocol":"NEC","Bits":32,"Data":0x8166817E}`<BR><BR>Alternatively, you can send IR remote control codes using [RAW command encoding](IRSend-RAW-Encoding).<BR><BR>Information on [Receiving Infrared Data](Receiving-Infrared-Remote-Control-Data)<a id="IRhvac"></a>
|
||||
IRsend | <a id="IRsend"></a>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.**_<BR><BR>`{"Protocol":"<value>","Bits":<value>,"Data":<value>}`<BR><BR>`"Protocol":"NEC"\|"SONY"\|"RC5"\|"RC6"\|"DISH"\|"JVC"\|"PANASONIC"\|"SAMSUNG"`<BR>`"Bits":1..32` = required number of data bits<BR> for PANASONIC protocol this parameter is the the address, not the number of bits<BR><BR>`"Data":1..(2^32)-1` = data frame as 32 bit decimal.<BR> e.g., `IRsend {"Protocol":"NEC","Bits":32,"Data":2170978686}`<BR>**or**<BR>`"Data":0x1..0xFFFFFFFF` = data frame as 32 bit hexadecimal.<BR> e.g., `IRsend {"Protocol":"NEC","Bits":32,"Data":0x8166817E}`<BR><BR>Alternatively, you can send IR remote control codes using [RAW command encoding](IRSend-RAW-Encoding).<BR><BR>Information on [Receiving Infrared Data](Receiving-Infrared-Remote-Control-Data)<a id="IRhvac"></a>
|
||||
IRhvac | Send HVAC IR remote control code as JSON payload<Br>`{"Vendor":"<value>","Power":<value>,"Mode":”<value>”, "FanSpeed":”<value>”,"Temp":<value>}`<BR>`"Vendor":"Toshiba"\|"Mitsubishi"\|"LG"\|"Fujitsu"`<BR>`"Power":0\|1`<BR>`"Mode":"Hot"\|"Cold"\|"Dry"\|"Auto"`<BR>`"FanSpeed":"1"\|"2"\|"3"\|"4"\|"5"\|"Auto"\|"Silence"` <BR>`"Temp":17..30`
|
||||
| See also | [`SetOption29`](#SetOption29) - Set IR received data format<BR>[`SetOption38`](#SetOption38) - Set IR received protocol sensitivity<BR>[`SetOption58`](#SetOption58) - [IR Raw data in JSON payload](https://github.com/arendst/Sonoff-Tasmota/issues/2116#issuecomment-440716483)
|
||||
|
||||
|
|
Loading…
Reference in New Issue