Skip to content

Commit e4327e1

Browse files
Create Receiving-Infrared-Remote-Control-Data.md (tasmota#65)
1 parent 6909b3b commit e4327e1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
An inexpensive IR sensor such as a [TSOP1838](https://hobbyking.com/en_us/keyes-tsop1838-infra-red-37-9khz-receiver-for-arduino.html) can be connected to a device running Tasmota. Configure a free device GPIO as 'IRrecv (51)'. When Tasmota receives an IR message, the data portion of the payload has the same format as the [`IRsend`](Commands#irsend) parameter.
2+
{"IrReceived":{"Protocol":"<value>","Bits":<value>,"Data":<value>}}
3+
4+
This JSON payload data can be used in a rule such as:
5+
ON IrReceived#Data=<value> DO <command> ENDON
6+
7+
If the data is received on an unknown protocol, `setoption58 1` See [here](https://github.com/arendst/Tasmota/issues/2116#issuecomment-440716483).

0 commit comments

Comments
 (0)