mirror of https://github.com/arendst/Tasmota.git
add YS-IRTM remark
commit
174fd46a5a
|
@ -136,6 +136,7 @@ Gpios<a id="Gpios"></a>|Show list of available [components](Components#component
|
|||
Gpio<a id="Gpio"></a>|Show current [component](Components#components-list) assignments of the Module's configurable GPIO<BR>`255` / `All` Show [component](Components#components-list) assignments for all the devices available GPIO  »6.6.0.17<BR>
|
||||
Gpio\<x\><a id="Gpio"></a>|[`<component>`](Components#components-list) = assign `<component>` to `Gpio<x>`.<BR>_For built-in Modules only. This command does not work for device's configured with a device Template._
|
||||
I2Cscan<a id="I2Cscan"></a>|Scan I<sup>2</sup>C bus and show addresses for found devices
|
||||
I2CDriver<a id="I2Cscan"></a>|[Enable / Disable I<sup>2</sup>C bus sensor drivers](https://github.com/arendst/Tasmota/commit/d2e152f91b1d722e1ce41b96c47dded2f5332ac9#commitcomment-35791139)   »7.0.0.3<BR>
|
||||
LogHost<a id="LogHost"></a>|`1` = reset [syslog](https://www.sigmdel.ca/michel/ha/rpi/syslog_en.html) host to firmware default (`SYS_LOG_HOST`)<BR>`<value>` = set syslog host (32 chars max)
|
||||
LogPort<a id="LogPort"></a>|`1` = reset [syslog](https://www.sigmdel.ca/michel/ha/rpi/syslog_en.html) port to firmware default (`SYS_LOG_PORT`)<BR>`2..32766` = set syslog port
|
||||
Modules<a id="Modules"></a>|Show available modules by name and index
|
||||
|
|
34
IR-Remote.md
34
IR-Remote.md
|
@ -1,41 +1,40 @@
|
|||
IR Remote driver enables sending IR codes through an IR transmitter and receiving them through an IR receiver via [IRremoteESP8266 library](https://github.com/crankyoldgit/IRremoteESP8266).
|
||||
|
||||
A [specialized version of Tasmota](Tasmota-IR) can be compiled which supports almost all of the IR protocols available in the [`IRremoteESP8266` library](https://github.com/crankyoldgit/IRremoteESP8266).
|
||||
|
||||
Most builds support only most common IR protocols, but [tasmota-ir.bin](Tasmota-IR) supports almost all protocols available in the IRremoteESP8266 library.
|
||||
|
||||
# IR Transmitter
|
||||
## Configuration
|
||||
The prebuilt transmitter modules have a weak IR LED, effective transmit distance is really short. If you need range, either look for a breakout board with a TSAL6x00 LED or build your own.
|
||||
> YT-IRTM transmitter/receiver board is serial only and does not work with this driver (its also limited only to NEC IR protocol).
|
||||
<img src="https://user-images.githubusercontent.com/5904370/68168682-e3cca780-ff69-11e9-928d-e1571a24a3ab.png" align=right></img>Common transmitter modules in the market have a weak IR LED, thus effective transmit distance is really short. If you need range it is best to [build your own](https://github.com/crankyoldgit/IRremoteESP8266/wiki#ir-sending). For the LED we recommend [TSAL6400](https://t.ly/8DX7N) for best performance.
|
||||
> YT-IRTM transmitter/receiver board is serial only and does not work with this driver (its also limited to only NEC IR protocol).
|
||||
|
||||
## Wiring
|
||||
| IR | ESP266 |
|
||||
|
||||
### Wiring
|
||||
| IR w/ 2N222 | ESP266 |
|
||||
|---|---|
|
||||
|S |GPIOx |
|
||||
|+ | 5v |
|
||||
|data |GPIOx |
|
||||
|+ | 3.3v/5v |
|
||||
|- |GND |
|
||||
|
||||
## Tasmota
|
||||
### Tasmota
|
||||
In the _Configuration -> Configure Module_ page assign:
|
||||
- GPIOx to `IRsend (8)`
|
||||
|
||||
See [IR commands](Commands#ir-remote) for use.
|
||||
|
||||
# IR Receiver
|
||||
<img src="https://user-images.githubusercontent.com/5904370/68152195-7443c180-ff43-11e9-95dc-0268d5e5dd3c.png" align=right></img>
|
||||
<img src="https://user-images.githubusercontent.com/5904370/68152195-7443c180-ff43-11e9-95dc-0268d5e5dd3c.png" align=right width=170></img>
|
||||
|
||||
IR Receiver is used to capture IR codes. Those codes can be sent using [`IRSend`](commands#irsend) or used as a [rule](Rules) trigger.
|
||||
|
||||
> Example uses the widely available [KY-022](https://arduinomodules.info/ky-022-infrared-receiver-module/) breakout board.
|
||||
|
||||
## Wiring
|
||||
### Wiring
|
||||
| KY-022 | ESP266 |
|
||||
|---|---|
|
||||
|S |GPIOx |
|
||||
|+ | 5v |
|
||||
|- |GND |
|
||||
|
||||
## Tasmota
|
||||
### Tasmota
|
||||
In the _Configuration -> Configure Module_ page assign:
|
||||
- GPIOx to `IRrecv (51)`
|
||||
|
||||
|
@ -52,7 +51,7 @@ On a captured code IR receiver sends a `tele/%topic%/RESULT` JSON reponse:
|
|||
}
|
||||
|
||||
```
|
||||
### Further Reading
|
||||
## Further Reading
|
||||
This covers only the basic IR protocols. Read [Complete IR Remote Protocols](Tasmota-IR) for more advanced applications.
|
||||
|
||||
[IR Send RAW configuration and use](IRSend-RAW-Encoding)
|
||||
|
@ -61,6 +60,9 @@ User maintained [codes database for IR](Codes-for-IR-Remotes-(for-YTF-IR-Bridge)
|
|||
|
||||
[Linux Infrared Remote Control (LIRC)](http://www.lirc.org/) for more information.
|
||||
|
||||
### Other Projects
|
||||
## Related Projects
|
||||
- [IR Blaster with Tasmota](http://www.asknoone.com/ir-blaster-with-tasmota/)
|
||||
- [Sonoff Basic IR "hat"](https://github.com/altelch/SonoffIR)
|
||||
- [Sonoff Basic IR "hat"](https://github.com/altelch/SonoffIR)
|
||||
|
||||
Example circuit with transmitter and receiver:
|
||||
![Example circuit with transmitter and receiver](https://user-images.githubusercontent.com/5904370/68167905-820b3e00-ff67-11e9-978f-d7108a179353.png)
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
> New Modules are added to Tasmota only if a device requires additional code for new functions. Use [Templates](Templates) first to configure your device if it's not in the module list.
|
||||
|
||||
**Serial logging** is disabled by the Tasmota code for several modules and components (e.g., Sonoff POW, Sonoff S31, Sonoff Dual (v1), Tuya dimmers, PZEM components, etc.). Serial communication is used by these devices to transfer the data from the MCU chip to the ESP chip. Do not enable serial logging ([SerialLog 0](Commands#seriallog)) on these devices. It can cause the device software to crash.
|
||||
|
||||
**Configure Module** page in the WebUI is used to configure your device as one of the modules **and** to [configure additional components](components) connected to one of the free GPIO pins of the device.
|
||||
> Use Generic module (`Module 18`) to have almost all GPIO pins available.
|
||||
|
||||
|
@ -83,4 +81,6 @@ Each module is assigned a number which is used in [Template configuration](templ
|
|||
<a id="SYF05"> </a> 69 | SYF05 |
|
||||
<a id="SonoffL1"> </a> 70 | Sonoff L1 |
|
||||
<a id="SonoffIFan03"> </a> 71 | Sonoff iFan03 |
|
||||
<a id="EXSDimmer"> </a> 72 | EX-Store Dimmer |
|
||||
<a id="EXSDimmer"> </a> 72 | EX-Store Dimmer |
|
||||
|
||||
**Serial logging** is disabled by the Tasmota code for several modules and components (e.g., Sonoff POW, Sonoff S31, Sonoff Dual (v1), Tuya dimmers, PZEM components, etc.). Serial communication is used by these devices to transfer the data from the MCU chip to the ESP chip. Do not enable serial logging ([SerialLog 0](Commands#seriallog)) on these devices. It can cause the device software to crash.
|
Loading…
Reference in New Issue