Created Receiving Infrared Remote Control Data (markdown)

Michael Ingraham 2019-05-08 16:00:19 -04:00
parent c67cf3c9e7
commit 99c3af4aed
1 changed files with 7 additions and 0 deletions

@ -0,0 +1,7 @@
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.
{"IrReceived":{"Protocol":"<value>","Bits":<value>,"Data":<value>}}
This JSON payload data can be used in a rule such as:
ON IrReceived#Data=<value> DO <command> ENDON