From bb9058d8758d45e62efd8cd84af518504627c7e4 Mon Sep 17 00:00:00 2001
From: Michael Ingraham <34340210+meingraham@users.noreply.github.com>
Date: Sat, 6 Jul 2019 08:28:01 -0400
Subject: [PATCH] IRReceive GPIO 01/03 constraint
---
Commands.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Commands.md b/Commands.md
index 5de6099a..4591e80d 100644
--- a/Commands.md
+++ b/Commands.md
@@ -369,7 +369,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. In order to send IR data, _**you must configure one of the free device GPIO as 'IRsend (8)'**_.
`{"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)
+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 cannot 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 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
[`SetOption38`](#SetOption38) - Set IR received protocol sensitivity
[`SetOption58`](#SetOption58) - [IR Raw data in JSON message](https://github.com/arendst/Sonoff-Tasmota/issues/2116#issuecomment-440716483)