From f1b756e8d7a54e8005562f832164faaff4711979 Mon Sep 17 00:00:00 2001 From: Michael Ingraham <34340210+meingraham@users.noreply.github.com> Date: Thu, 11 Apr 2019 21:38:00 -0400 Subject: [PATCH] Updated Commands (markdown) --- Commands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Commands.md b/Commands.md index 6c77ae21..e1e819c3 100644 --- a/Commands.md +++ b/Commands.md @@ -362,7 +362,7 @@ See [Linux Infrared Remote Control (LIRC)](http://www.lirc.org/) for more inform |Command | Parameters |:--- | :--- -|IRsend | Send an IR remote control code as a decimal or hexadecimal string in a JSON payload.
`{"Protocol":"","Bits":,"Data":}`

`"Protocol":"NEC"\|"SONY"\|"RC5"\|"RC6"\|"DISH"\|"JVC"\|"PANASONIC"\|"SAMSUNG"`
`"Bits":1..32` = required number of data bits (for PANASONIC the address))

`"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). +|IRsend | Send an IR remote control code as a decimal or hexadecimal string in a JSON payload.
`{"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). |IRhvac | Send HVAC IR remote control code as JSON string
`{"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` | See also | [`SetOption29`](#SetOption29) - Set IR received data format
[`SetOption58`](#SetOption58) - [IR Raw data in JSON message](https://github.com/arendst/Sonoff-Tasmota/issues/2116#issuecomment-440716483)