<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
  <title xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić's random unstructured stuff: IR</title>
  <id xmlns="http://www.w3.org/2005/Atom">https://saturn.ffzg.hr/rot13/</id>
  <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="https://saturn.ffzg.hr/rot13/index.cgi?ir"/>
  <link xmlns="http://www.w3.org/2005/Atom" type="application/atom+xml" rel="self" href="https://saturn.ffzg.hr%2C%20saturn.ffzg.hr:443/feed/workspace/rot13?page=ir;type=Atom"/>
  <updated xmlns="http://www.w3.org/2005/Atom">2025-02-17T10:17:09Z</updated>
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
    <title xmlns="http://www.w3.org/2005/Atom">IR</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="https://saturn.ffzg.hr/rot13/index.cgi?ir"/>
    <content xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml" type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: esp8266</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#ir_send">Dobrica Pavlinušić's random unstructured stuff (Ir Send)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Ir Send} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#tasmota_ir">Dobrica Pavlinušić's random unstructured stuff (Tasmota IR)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Tasmota IR} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#configure_module">Dobrica Pavlinušić's random unstructured stuff (Configure module)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Configure module} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#configure_wifi">Dobrica Pavlinušić's random unstructured stuff (Configure WIFI)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Configure WIFI} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#configure_mqtt">Dobrica Pavlinušić's random unstructured stuff (Configure MQTT)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Configure MQTT} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#configure_logging">Dobrica Pavlinušić's random unstructured stuff (Configure Logging)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Configure Logging} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#configure_other">Dobrica Pavlinušić's random unstructured stuff (Configure Other)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Configure Other} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#console">Dobrica Pavlinušić's random unstructured stuff (Console)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Console} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#reed_sensor">Dobrica Pavlinušić's random unstructured stuff (reed sensor)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] reed sensor} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#esp_ir_tr">Dobrica Pavlinušić's random unstructured stuff (ESP IR TR)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] ESP IR TR} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#am2301_ir">Dobrica Pavlinušić's random unstructured stuff (AM2301 + IR)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] AM2301 + IR} --></span></li>
</ul></ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br/><br/><p>
Various infrared links collected here</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                <a href="/rot13/index.cgi?action=weblog_display;category=IR">Recent Changes in Tag IR</a>
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<br/><ul>
<li><span class="nlw_phrase"><a title="inter-workspace link: rot13" href="https://saturn.ffzg.hr/rot13/index.cgi?usb_irtoy_v2">USB IRToy v2</a><!-- wiki: {link: [USB IRToy v2]} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {tag_list: IR}
--></div><br/><br/><h1 id="ir_send">Ir Send</h1>
<p>
Updated for HVAC Mitsubishi &amp; Panasonic IR</p>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/r45635/HVAC-IR-Control">https://github.com/r45635/HVAC-IR-Control</a></li>
</ul>
<h1 id="tasmota_ir">Tasmota IR</h1>
<h2 id="configure_module">Configure module</h2>
<p>
Generic</p>
<p>
D4 GPIO2 - AM2301</p>
<p>
D6 GPIO12 - IN - IRrecv</p>
<p>
D7 GPIO13 - Switch1 - reed relay to gnd</p>
<p>
D5 GPIO14 - OUT - IRsend</p>
<h2 id="configure_wifi">Configure WIFI</h2>
<p>
AP1 SSID, AP1 password<br/>
hostname - ir</p>
<h2 id="configure_mqtt">Configure MQTT</h2>
<p>
Host: rpi2</p>
<p>
Topic: ir</p>
<h2 id="configure_logging">Configure Logging</h2>
<p>
Telemetry period: 10</p>
<h2 id="configure_other">Configure Other</h2>
<p>
Device Name: IR</p>
<p>
Friendly Name 1: IR</p>
<h2 id="console">Console</h2>
<p>
SerialLog 3 - turn serial log output <a target="_blank" title="(external link)" href="https://tasmota.github.io/docs/Commands/">https://tasmota.github.io/docs/Commands/</a></p>
<h2 id="reed_sensor">reed sensor</h2>
<p>
switch 2 gpio 13</p>
<p>
<a target="_blank" title="(external link)" href="https://tasmota.github.io/docs/Buttons-and-Switches/#switchmode-15">https://tasmota.github.io/docs/Buttons-and-Switches/#switchmode-15</a></p>
<p>
expose gpio 13 in homeassistant as lodja_vrata sensor, remove connection with relay</p>
<pre>
SwitchText2 lodja_vrata
Setoption114 1
SwitchMode2 15
</pre>
<br/><h1 id="esp_ir_tr">ESP IR TR</h1>
<p>
<a target="_blank" title="(external link)" href="https://templates.blakadder.com/ESP_IR_TR.html">https://templates.blakadder.com/ESP_IR_TR.html</a></p>
<pre>
{"NAME":"Tasmota IR-Gateway","GPIO":[0,0,0,0,1056,0,0,0,0,0,1088,0,0,0],"FLAG":0,"BASE":18}
</pre>
<br/><p>
GPIO04 	IRsend <br/>
GPIO14 	IRrecv</p>
<h2 id="am2301_ir">AM2301 + IR</h2>
<p>
module pinout</p>
<span class="nlw_phrase"><img alt="esp_ir_tr-pinout.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/esp_ir_tr-pinout.jpg?action=attachments_download;page_name=ir;id=20250217101619-1-27366"/><!-- wiki: {image: esp_ir_tr-=pinout.jpg} --></span><br/><br/><span class="nlw_phrase"><img alt="esp_ir_tr-am2301-gpio15.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/esp_ir_tr-am2301-gpio15.jpg?action=attachments_download;page_name=ir;id=20250217095613-0-27366"/><!-- wiki: {image: esp_ir_tr-=am2301-=gpio15.jpg} --></span><br/><br/><p>
(it's on GPIO13, ignore picture name which is wrong)</p>
<p>
addition AM2301 on GPIO13 - requires custom tasmota ir build with USE_DHT enabled for IR_FIRMWARE build</p>
<pre>
(venv) dpavlin@nuc:/nuc/esp8266/Tasmota$ git diff
diff --git a/tasmota/include/tasmota_configurations.h b/tasmota/include/tasmota_configurations.h
index 1260892a0..c64d1ac1e 100644
--- a/tasmota/include/tasmota_configurations.h
+++ b/tasmota/include/tasmota_configurations.h
@@ -503,7 +503,8 @@
 #undef USE_PROJECTOR_CTRL                        // Disable support for LCD/DLP Projector serial control interface
 #undef USE_LOX_O2                                // Disable support for LuminOx LOX O2 Sensor

-#undef USE_DHT                                   // Disable support for DHT11, AM2301 (DHT21, DHT22, AM2302, AM2321) and SI7021 Temperature and Humidity sensor
+// XXX FIXME dpavlin -- keep DHT11
+//#undef USE_DHT                                   // Disable support for DHT11, AM2301 (DHT21, DHT22, AM2302, AM2321) and SI7021 Temperature and Humidity sensor
 #undef USE_MAX31855                              // Disable MAX31855 K-Type thermocouple sensor using softSPI
 #undef USE_MAX31865                              // Disable support for MAX31865 RTD sensors using softSPI
 #undef USE_TM1638                                // Disable support for TM1638 switches copying Switch1 .. Switch8
</pre>
<br/><p>
template:</p>
<pre>
{"NAME":"Tasmota IR-Gateway","GPIO":[0,0,0,0,1056,0,0,0,0,0,1088,1216,0,0],"FLAG":0,"BASE":18}
</pre>
</div>
<hr/><div>Attachments: esp_ir_tr-am2301-gpio15.jpg, esp_ir_tr-pinout.jpg</div></div>
    </content>
    <id xmlns="http://www.w3.org/2005/Atom">https://saturn.ffzg.hr/rot13/index.cgi?ir</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2025-02-17T10:17:09Z</updated>
    <category xmlns="http://www.w3.org/2005/Atom" term="esp8266" label="esp8266"/>
  </entry>
</feed>
