mirror of https://github.com/arendst/Tasmota.git
Add IRSend RAW details
parent
434a040b9f
commit
2f79f6ff00
|
@ -367,9 +367,8 @@ See [Linux Infrared Remote Control (LIRC)](http://www.lirc.org/) for more inform
|
|||
|
||||
|Command | Parameters
|
||||
|:--- | :---
|
||||
|<a id="IRsend"> </a> IRsend | Send IR remote control code as JSON decimal string<BR>`{"Protocol":"<value>","Bits":<value>,"Data":<value>}`<BR>`"Protocol":"NEC"\|"SONY"\|"RC5"\|"RC6"\|"DISH"\|"JVC"\|"PANASONIC"\|"SAMSUNG"`<BR>`"Bits":1..32` = required number of data bits (for PANASONIC the address))<BR>`"Data":1..(2^32)-1` = data frame as 32 bit decimal.<BR>
|
||||
| | Send IR remote control code as JSON hexadecimal string<BR>`{"Protocol":"<value>","Bits":<value>,"Data":<value>}`<BR>`"Protocol":"NEC"\|"SONY"\|"RC5"\|"RC6"\|"DISH"\|"JVC"\|"PANASONIC"\|"SAMSUNG"`<BR>`"Bits":1..32` = required number of data bits (for PANASONIC the address))<BR>`"Data":0x1..0xFFFFFFFF` = data frame as 32 bit hexadecimal.<BR>
|
||||
| | Send IR remote control as RAW command<BR>`<frequency>,<rawdata1>,<rawdata\>,..`
|
||||
|<a id="IRsend"> </a> IRsend | Send IR remote control code as JSON payload. Data can be either a decimal or hexadecimal string<BR>`{"Protocol":"<value>","Bits":<value>,"Data":<value>}`<BR>`"Protocol":"NEC"\|"SONY"\|"RC5"\|"RC6"\|"DISH"\|"JVC"\|"PANASONIC"\|"SAMSUNG"`<BR>`"Bits":1..32` = required number of data bits (for PANASONIC the address))<BR><BR>`"Data":1..(2^32)-1` = data frame as 32 bit decimal.<BR>**or**<BR>`"Data":0x1..0xFFFFFFFF` = data frame as 32 bit hexadecimal.<BR>
|
||||
| | Send IR remote control code as a RAW command<BR> `raw,<freq>,<hdr_mrk>,<hdr_spc>,<bit_mrk>,<zer_spc>,<one_spc>,<bit_str>`<BR>Where<BR> `<freq>` = carrier freq (default 0, 38kHz)<BR> `<hdr_mrk>` = header mark (ms)<BR> `<hdr_spc>` = header space (ms)<BR> `<bit_mrk>` = bit mark (ms)<BR> `<zer_spc>` = zero space (ms)<BR> `<one_spc>` = one space (ms)<BR> `<bit_str>` = bit stream data (stream of ones and zeroes)<BR><BR>This command makes use of the output of the raw IR decoder from [ToniA/Raw-IR-decoder-for-Arduino](https://github.com/ToniA/Raw-IR-decoder-for-Arduino)<BR><BR>[IRSend RAW encoding examples](IRSend-RAW-Encoding)
|
||||
|<a id="IRhvac"> </a> IRhvac | Send HVAC IR remote control code as JSON string<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>[`SetOption58`](#SetOption58) - [IR Raw data in JSON message](https://github.com/arendst/Sonoff-Tasmota/issues/2116#issuecomment-440716483)
|
||||
|
||||
|
|
Loading…
Reference in New Issue