literate-dotfiles/docs/iot.html

720 lines
36 KiB
HTML
Raw Permalink Normal View History

2021-10-25 14:37:10 +02:00
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2021-10-25 lun. 14:33 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>IoT</title>
<meta name="author" content="Dehaeze Thomas" />
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content" class="content">
<h1 class="title">IoT</h1>
<div id="table-of-contents" role="doc-toc">
<h2>Table of Contents</h2>
<div id="text-table-of-contents" role="doc-toc">
<ul>
<li><a href="#orgb605813">Smart Bulbs</a></li>
<li><a href="#orgbabc09f">Smart Plugs</a></li>
<li><a href="#orgbfd8257">ESPHome</a>
<ul>
<li><a href="#org1e7eb56">Sonoff S26 - Smart Socket</a>
<ul>
<li><a href="#org4a58ee5">Sonoff S26 1</a></li>
<li><a href="#org207ec57">Sonoff S26 2</a></li>
<li><a href="#org2c9bfdd">Sonoff S26 3</a></li>
<li><a href="#org25259ac">Sonoff S26 4</a></li>
</ul>
</li>
<li><a href="#orgc7cb06f">Anoopsyche SB14 - E27 Smart Bulb (Cold White / Warm White)</a>
<ul>
<li><a href="#org8288a83">Anoopsyche CWWW 1</a></li>
<li><a href="#org8484933">Anoopsyche CWWW 2</a></li>
</ul>
</li>
<li><a href="#org13e47c3">Sonoff BasicR2 - DIY Smart Socket</a>
<ul>
<li><a href="#orgd04920e">Sonoff Basic 1</a></li>
<li><a href="#orga594994">Sonoff Basic 2</a></li>
<li><a href="#orgb5bd748">Sonoff Basic 3</a></li>
<li><a href="#org5ba0236">Sonoff Basic 4</a></li>
</ul>
</li>
<li><a href="#org930b61a">Sonoff POWR2 - DIY Power Monitoring Smart Socket</a>
<ul>
<li><a href="#orgfe15c18">Sonoff POWR2 1</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-orgb605813" class="outline-2">
<h2 id="orgb605813">Smart Bulbs</h2>
<div class="outline-text-2" id="text-orgb605813">
<p>
<a href="https://www.amazon.fr/Ecologique-Compatible-T%C3%A9l%C3%A9commande-Smartphone-%C3%A9nerg%C3%A9tique/dp/B07KWPQMHH/ref=sr_1_4?dchild=1&amp;keywords=Anoopsyche&amp;qid=1626991095&amp;sr=8-4">https://www.amazon.fr/Ecologique-Compatible-T%C3%A9l%C3%A9commande-Smartphone-%C3%A9nerg%C3%A9tique/dp/B07KWPQMHH/ref=sr_1_4?dchild=1&amp;keywords=Anoopsyche&amp;qid=1626991095&amp;sr=8-4</a>
</p>
</div>
</div>
<div id="outline-container-orgbabc09f" class="outline-2">
<h2 id="orgbabc09f">Smart Plugs</h2>
<div class="outline-text-2" id="text-orgbabc09f">
<p>
<a href="https://sonoff.tech/product/smart-plug/s26/">https://sonoff.tech/product/smart-plug/s26/</a>
</p>
<p>
<a href="https://www.jannikarndt.de/blog/2018/01/how_to_install_tasmota_on_a_sonoff_device_without_opening_it/">https://www.jannikarndt.de/blog/2018/01/how_to_install_tasmota_on_a_sonoff_device_without_opening_it/</a>
<a href="https://www.youtube.com/watch?v=ONFhXM5R-t4">https://www.youtube.com/watch?v=ONFhXM5R-t4</a>
</p>
</div>
</div>
<div id="outline-container-orgbfd8257" class="outline-2">
<h2 id="orgbfd8257">ESPHome</h2>
<div class="outline-text-2" id="text-orgbfd8257">
</div>
<div id="outline-container-org1e7eb56" class="outline-3">
<h3 id="org1e7eb56">Sonoff S26 - Smart Socket</h3>
<div class="outline-text-3" id="text-org1e7eb56">
<p>
<a href="https://www.amazon.fr/Connect%C3%A9e-Intelligente-Compatible-Assistant-T%C3%A9l%C3%A9command%C3%A9e/dp/B07Y1N5J6Y/">https://www.amazon.fr/Connect%C3%A9e-Intelligente-Compatible-Assistant-T%C3%A9l%C3%A9command%C3%A9e/dp/B07Y1N5J6Y/</a>
</p>
</div>
<div id="outline-container-org4a58ee5" class="outline-4">
<h4 id="org4a58ee5">Sonoff S26 1</h4>
<div class="outline-text-4" id="text-org4a58ee5">
<div class="org-src-container">
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
<span class="org-variable-name">name</span>: sonoffs26_1
<span class="org-variable-name">platform</span>: ESP8266
<span class="org-variable-name">board</span>: esp01_1m
<span class="org-variable-name">board_flash_mode</span>: dout
<span class="org-variable-name">wifi</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="wifi/Freebox-11A882")&gt;&gt;'</span>
<span class="org-variable-name">ap</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Sonoff S26 1 Fallback Hotspot'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_s26/ap")&gt;&gt;'</span>
<span class="org-variable-name">status_led</span>:
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO13
<span class="org-variable-name">inverted</span>: <span class="org-constant">false</span>
<span class="org-variable-name">logger</span>:
<span class="org-variable-name">api</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_s26/api")&gt;&gt;'</span>
<span class="org-variable-name">ota</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_s26/ota")&gt;&gt;'</span>
<span class="org-variable-name">web_server</span>:
<span class="org-variable-name">binary_sensor</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO0
<span class="org-variable-name">mode</span>: INPUT_PULLUP
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_1 Button"</span>
<span class="org-variable-name">on_press</span>:
- <span class="org-variable-name">switch.toggle</span>: relay
- <span class="org-variable-name">platform</span>: status
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_1 Status"</span>
<span class="org-variable-name">sensor</span>:
- <span class="org-variable-name">platform</span>: wifi_signal
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_1 WiFi Signal"</span>
<span class="org-variable-name">update_interval</span>: 60s
<span class="org-variable-name">switch</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_1 Relay"</span>
<span class="org-variable-name">pin</span>: GPIO12
<span class="org-variable-name">id</span>: <span class="org-string">'relay'</span>
- <span class="org-variable-name">platform</span>: restart
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_1 Restart"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org207ec57" class="outline-4">
<h4 id="org207ec57">Sonoff S26 2</h4>
<div class="outline-text-4" id="text-org207ec57">
<div class="org-src-container">
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
<span class="org-variable-name">name</span>: sonoffs26_2
<span class="org-variable-name">platform</span>: ESP8266
<span class="org-variable-name">board</span>: esp01_1m
<span class="org-variable-name">board_flash_mode</span>: dout
<span class="org-variable-name">wifi</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="wifi/Freebox-11A882")&gt;&gt;'</span>
<span class="org-variable-name">ap</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Sonoff S26 2 Fallback Hotspot'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_s26/ap")&gt;&gt;'</span>
<span class="org-variable-name">status_led</span>:
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO13
<span class="org-variable-name">inverted</span>: <span class="org-constant">false</span>
<span class="org-variable-name">logger</span>:
<span class="org-variable-name">api</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_s26/api")&gt;&gt;'</span>
<span class="org-variable-name">ota</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_s26/ota")&gt;&gt;'</span>
<span class="org-variable-name">web_server</span>:
<span class="org-variable-name">binary_sensor</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO0
<span class="org-variable-name">mode</span>: INPUT_PULLUP
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_2 Button"</span>
<span class="org-variable-name">on_press</span>:
- <span class="org-variable-name">switch.toggle</span>: relay
- <span class="org-variable-name">platform</span>: status
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_2 Status"</span>
<span class="org-variable-name">sensor</span>:
- <span class="org-variable-name">platform</span>: wifi_signal
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_2 WiFi Signal"</span>
<span class="org-variable-name">update_interval</span>: 60s
<span class="org-variable-name">switch</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_2 Relay"</span>
<span class="org-variable-name">pin</span>: GPIO12
<span class="org-variable-name">id</span>: <span class="org-string">'relay'</span>
- <span class="org-variable-name">platform</span>: restart
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_2 Restart"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org2c9bfdd" class="outline-4">
<h4 id="org2c9bfdd">Sonoff S26 3</h4>
<div class="outline-text-4" id="text-org2c9bfdd">
<div class="org-src-container">
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
<span class="org-variable-name">name</span>: sonoffs26_3
<span class="org-variable-name">platform</span>: ESP8266
<span class="org-variable-name">board</span>: esp01_1m
<span class="org-variable-name">board_flash_mode</span>: dout
<span class="org-variable-name">wifi</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="wifi/Freebox-11A882")&gt;&gt;'</span>
<span class="org-variable-name">ap</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Sonoff S26 3 Fallback Hotspot'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_s26/ap")&gt;&gt;'</span>
<span class="org-variable-name">status_led</span>:
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO13
<span class="org-variable-name">inverted</span>: <span class="org-constant">false</span>
<span class="org-variable-name">logger</span>:
<span class="org-variable-name">api</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_s26/api")&gt;&gt;'</span>
<span class="org-variable-name">ota</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_s26/ota")&gt;&gt;'</span>
<span class="org-variable-name">web_server</span>:
<span class="org-variable-name">binary_sensor</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO0
<span class="org-variable-name">mode</span>: INPUT_PULLUP
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_3 Button"</span>
<span class="org-variable-name">on_press</span>:
- <span class="org-variable-name">switch.toggle</span>: relay
- <span class="org-variable-name">platform</span>: status
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_3 Status"</span>
<span class="org-variable-name">sensor</span>:
- <span class="org-variable-name">platform</span>: wifi_signal
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_3 WiFi Signal"</span>
<span class="org-variable-name">update_interval</span>: 60s
<span class="org-variable-name">switch</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_3 Relay"</span>
<span class="org-variable-name">pin</span>: GPIO12
<span class="org-variable-name">id</span>: <span class="org-string">'relay'</span>
- <span class="org-variable-name">platform</span>: restart
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_3 Restart"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org25259ac" class="outline-4">
<h4 id="org25259ac">Sonoff S26 4</h4>
<div class="outline-text-4" id="text-org25259ac">
<div class="org-src-container">
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
<span class="org-variable-name">name</span>: sonoffs26_4
<span class="org-variable-name">platform</span>: ESP8266
<span class="org-variable-name">board</span>: esp01_1m
<span class="org-variable-name">board_flash_mode</span>: dout
<span class="org-variable-name">wifi</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="wifi/Freebox-11A882")&gt;&gt;'</span>
<span class="org-variable-name">ap</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Sonoff S26 4 Fallback Hotspot'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_s26/ap")&gt;&gt;'</span>
<span class="org-variable-name">status_led</span>:
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO13
<span class="org-variable-name">inverted</span>: <span class="org-constant">false</span>
<span class="org-variable-name">logger</span>:
<span class="org-variable-name">api</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_s26/api")&gt;&gt;'</span>
<span class="org-variable-name">ota</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_s26/ota")&gt;&gt;'</span>
<span class="org-variable-name">web_server</span>:
<span class="org-variable-name">binary_sensor</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO0
<span class="org-variable-name">mode</span>: INPUT_PULLUP
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_4 Button"</span>
<span class="org-variable-name">on_press</span>:
- <span class="org-variable-name">switch.toggle</span>: relay
- <span class="org-variable-name">platform</span>: status
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_4 Status"</span>
<span class="org-variable-name">sensor</span>:
- <span class="org-variable-name">platform</span>: wifi_signal
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_4 WiFi Signal"</span>
<span class="org-variable-name">update_interval</span>: 60s
<span class="org-variable-name">switch</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff S26_4 Relay"</span>
<span class="org-variable-name">pin</span>: GPIO12
<span class="org-variable-name">id</span>: <span class="org-string">'relay'</span>
- <span class="org-variable-name">platform</span>: restart
<span class="org-variable-name">name</span>: <span class="org-string">"sonoffs26_4 Restart"</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgc7cb06f" class="outline-3">
<h3 id="orgc7cb06f">Anoopsyche SB14 - E27 Smart Bulb (Cold White / Warm White)</h3>
<div class="outline-text-3" id="text-orgc7cb06f">
<p>
<a href="https://www.amazon.fr/Ecologique-Compatible-T%C3%A9l%C3%A9commande-Smartphone-%C3%A9nerg%C3%A9tique/dp/B07KWPQMHH/">https://www.amazon.fr/Ecologique-Compatible-T%C3%A9l%C3%A9commande-Smartphone-%C3%A9nerg%C3%A9tique/dp/B07KWPQMHH/</a>
</p>
</div>
<div id="outline-container-org8288a83" class="outline-4">
<h4 id="org8288a83">Anoopsyche CWWW 1</h4>
<div class="outline-text-4" id="text-org8288a83">
<div class="org-src-container">
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
<span class="org-variable-name">name</span>: anoopsyche_cwww_1
<span class="org-variable-name">platform</span>: ESP8266
<span class="org-variable-name">board</span>: esp01_1m
<span class="org-variable-name">wifi</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="wifi/Freebox-11A882")&gt;&gt;'</span>
<span class="org-variable-name">ap</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Anoopsyche CWWW 1'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="anoopsyche_cwww/ap")&gt;&gt;'</span>
<span class="org-variable-name">captive_portal</span>:
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable logging</span>
<span class="org-variable-name">logger</span>:
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable Home Assistant API</span>
<span class="org-variable-name">api</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="anoopsyche_cwww/api")&gt;&gt;'</span>
<span class="org-variable-name">ota</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="anoopsyche_cwww/ota")&gt;&gt;'</span>
<span class="org-variable-name">output</span>:
- <span class="org-variable-name">platform</span>: esp8266_pwm
<span class="org-variable-name">id</span>: output_cold_white
<span class="org-variable-name">pin</span>: GPIO5
- <span class="org-variable-name">platform</span>: esp8266_pwm
<span class="org-variable-name">id</span>: output_warm_white
<span class="org-variable-name">pin</span>: GPIO13
<span class="org-variable-name">light</span>:
- <span class="org-variable-name">platform</span>: cwww
<span class="org-variable-name">name</span>: <span class="org-string">'Anoopsyche CWWW 1'</span>
<span class="org-variable-name">default_transition_length</span>: 1s
<span class="org-variable-name">warm_white</span>: output_warm_white
<span class="org-variable-name">cold_white</span>: output_cold_white
<span class="org-variable-name">cold_white_color_temperature</span>: 6000 K
<span class="org-variable-name">warm_white_color_temperature</span>: 2700 K
</pre>
</div>
</div>
</div>
<div id="outline-container-org8484933" class="outline-4">
<h4 id="org8484933">Anoopsyche CWWW 2</h4>
<div class="outline-text-4" id="text-org8484933">
<div class="org-src-container">
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
<span class="org-variable-name">name</span>: anoopsyche_cwww_2
<span class="org-variable-name">platform</span>: ESP8266
<span class="org-variable-name">board</span>: esp01_1m
<span class="org-variable-name">wifi</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="wifi/Freebox-11A882")&gt;&gt;'</span>
<span class="org-variable-name">ap</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Anoopsyche CWWW 2'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="anoopsyche_cwww/ap")&gt;&gt;'</span>
<span class="org-variable-name">captive_portal</span>:
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable logging</span>
<span class="org-variable-name">logger</span>:
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable Home Assistant API</span>
<span class="org-variable-name">api</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="anoopsyche_cwww/api")&gt;&gt;'</span>
<span class="org-variable-name">ota</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="anoopsyche_cwww/ota")&gt;&gt;'</span>
<span class="org-variable-name">output</span>:
- <span class="org-variable-name">platform</span>: esp8266_pwm
<span class="org-variable-name">id</span>: output_cold_white
<span class="org-variable-name">pin</span>: GPIO5
- <span class="org-variable-name">platform</span>: esp8266_pwm
<span class="org-variable-name">id</span>: output_warm_white
<span class="org-variable-name">pin</span>: GPIO13
<span class="org-variable-name">light</span>:
- <span class="org-variable-name">platform</span>: cwww
<span class="org-variable-name">name</span>: <span class="org-string">'Anoopsyche CWWW 2'</span>
<span class="org-variable-name">default_transition_length</span>: 1s
<span class="org-variable-name">warm_white</span>: output_warm_white
<span class="org-variable-name">cold_white</span>: output_cold_white
<span class="org-variable-name">cold_white_color_temperature</span>: 6000 K
<span class="org-variable-name">warm_white_color_temperature</span>: 2700 K
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org13e47c3" class="outline-3">
<h3 id="org13e47c3">Sonoff BasicR2 - DIY Smart Socket</h3>
<div class="outline-text-3" id="text-org13e47c3">
<ul class="org-ul">
<li><a href="https://esphome.io/devices/sonoff_basic.html">ESPHome documentation</a></li>
<li><a href="https://sonoff.tech/product/diy-smart-switch/basicr2/">Sonoff Website</a></li>
</ul>
</div>
<div id="outline-container-orgd04920e" class="outline-4">
<h4 id="orgd04920e">Sonoff Basic 1</h4>
<div class="outline-text-4" id="text-orgd04920e">
<div class="org-src-container">
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
<span class="org-variable-name">name</span>: sonoffbasic_1
<span class="org-variable-name">platform</span>: ESP8266
<span class="org-variable-name">board</span>: esp8285
<span class="org-variable-name">arduino_version</span>: 2.4.2
<span class="org-variable-name">wifi</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="wifi/Freebox-11A882")&gt;&gt;'</span>
<span class="org-variable-name">api</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_basic/api")&gt;&gt;'</span>
<span class="org-variable-name">logger</span>:
<span class="org-variable-name">ota</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_basic/ota")&gt;&gt;'</span>
<span class="org-variable-name">binary_sensor</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO0
<span class="org-variable-name">mode</span>: INPUT_PULLUP
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Button 1"</span>
<span class="org-variable-name">on_press</span>:
- <span class="org-variable-name">switch.toggle</span>: relay
<span class="org-variable-name">switch</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Relay 1"</span>
<span class="org-variable-name">pin</span>: GPIO12
<span class="org-variable-name">id</span>: relay
<span class="org-variable-name">status_led</span>:
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO13
<span class="org-variable-name">inverted</span>: <span class="org-constant">yes</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orga594994" class="outline-4">
<h4 id="orga594994">Sonoff Basic 2</h4>
<div class="outline-text-4" id="text-orga594994">
<div class="org-src-container">
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
<span class="org-variable-name">name</span>: sonoffbasic_2
<span class="org-variable-name">platform</span>: ESP8266
<span class="org-variable-name">board</span>: esp8285
<span class="org-variable-name">arduino_version</span>: 2.4.2
<span class="org-variable-name">wifi</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="wifi/Freebox-11A882")&gt;&gt;'</span>
<span class="org-variable-name">api</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_basic/api")&gt;&gt;'</span>
<span class="org-variable-name">logger</span>:
<span class="org-variable-name">ota</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_basic/ota")&gt;&gt;'</span>
<span class="org-variable-name">binary_sensor</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO0
<span class="org-variable-name">mode</span>: INPUT_PULLUP
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Button 2"</span>
<span class="org-variable-name">on_press</span>:
- <span class="org-variable-name">switch.toggle</span>: relay
<span class="org-variable-name">switch</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Relay 2"</span>
<span class="org-variable-name">pin</span>: GPIO12
<span class="org-variable-name">id</span>: relay
<span class="org-variable-name">status_led</span>:
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO13
<span class="org-variable-name">inverted</span>: <span class="org-constant">yes</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgb5bd748" class="outline-4">
<h4 id="orgb5bd748">Sonoff Basic 3</h4>
<div class="outline-text-4" id="text-orgb5bd748">
<div class="org-src-container">
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
<span class="org-variable-name">name</span>: sonoffbasic_3
<span class="org-variable-name">platform</span>: ESP8266
<span class="org-variable-name">board</span>: esp8285
<span class="org-variable-name">arduino_version</span>: 2.4.2
<span class="org-variable-name">wifi</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="wifi/Freebox-11A882")&gt;&gt;'</span>
<span class="org-variable-name">api</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_basic/api")&gt;&gt;'</span>
<span class="org-variable-name">logger</span>:
<span class="org-variable-name">ota</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_basic/ota")&gt;&gt;'</span>
<span class="org-variable-name">binary_sensor</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO0
<span class="org-variable-name">mode</span>: INPUT_PULLUP
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Button 3"</span>
<span class="org-variable-name">on_press</span>:
- <span class="org-variable-name">switch.toggle</span>: relay
<span class="org-variable-name">switch</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Relay 3"</span>
<span class="org-variable-name">pin</span>: GPIO12
<span class="org-variable-name">id</span>: relay
<span class="org-variable-name">status_led</span>:
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO13
<span class="org-variable-name">inverted</span>: <span class="org-constant">yes</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org5ba0236" class="outline-4">
<h4 id="org5ba0236">Sonoff Basic 4</h4>
<div class="outline-text-4" id="text-org5ba0236">
<div class="org-src-container">
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
<span class="org-variable-name">name</span>: sonoffbasic_4
<span class="org-variable-name">platform</span>: ESP8266
<span class="org-variable-name">board</span>: esp8285
<span class="org-variable-name">arduino_version</span>: 2.4.2
<span class="org-variable-name">wifi</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="wifi/Freebox-11A882")&gt;&gt;'</span>
<span class="org-variable-name">api</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_basic/api")&gt;&gt;'</span>
<span class="org-variable-name">logger</span>:
<span class="org-variable-name">ota</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_basic/ota")&gt;&gt;'</span>
<span class="org-variable-name">binary_sensor</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO0
<span class="org-variable-name">mode</span>: INPUT_PULLUP
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Button 4"</span>
<span class="org-variable-name">on_press</span>:
- <span class="org-variable-name">switch.toggle</span>: relay
<span class="org-variable-name">switch</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff Basic Relay 4"</span>
<span class="org-variable-name">pin</span>: GPIO12
<span class="org-variable-name">id</span>: relay
<span class="org-variable-name">status_led</span>:
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO13
<span class="org-variable-name">inverted</span>: <span class="org-constant">yes</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org930b61a" class="outline-3">
<h3 id="org930b61a">Sonoff POWR2 - DIY Power Monitoring Smart Socket</h3>
<div class="outline-text-3" id="text-org930b61a">
<ul class="org-ul">
<li><a href="https://sonoff.tech/product/diy-smart-switch/powr2/">Sonoff Website</a></li>
</ul>
</div>
<div id="outline-container-orgfe15c18" class="outline-4">
<h4 id="orgfe15c18">Sonoff POWR2 1</h4>
<div class="outline-text-4" id="text-orgfe15c18">
<div class="org-src-container">
<pre class="src src-yaml"><span class="org-variable-name">esphome</span>:
<span class="org-variable-name">name</span>: sonoffpowr2_1
<span class="org-variable-name">platform</span>: ESP8266
<span class="org-variable-name">board</span>: esp01_1m
<span class="org-variable-name">board_flash_mode</span>: dout
<span class="org-variable-name">wifi</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Freebox-11A882'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="wifi/Freebox-11A882")&gt;&gt;'</span>
<span class="org-variable-name">ap</span>:
<span class="org-variable-name">ssid</span>: <span class="org-string">'Sonoff POWR2 1 Fallback Hotspot'</span>
<span class="org-variable-name">password</span>: <span class="org-string">'gmHu3rQHZHwH'</span>
<span class="org-variable-name">mqtt</span>:
<span class="org-variable-name">broker</span>: <span class="org-string">'192.168.1.11'</span>
<span class="org-variable-name">logger</span>:
<span class="org-variable-name">api</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_powr2/api")&gt;&gt;'</span>
<span class="org-variable-name">ota</span>:
<span class="org-variable-name">password</span>: <span class="org-string">'&lt;&lt;get-password(passname="sonoff_powr2/ota")&gt;&gt;'</span>
<span class="org-variable-name">uart</span>:
<span class="org-variable-name">rx_pin</span>: RX
<span class="org-variable-name">baud_rate</span>: 4800
<span class="org-variable-name">sensor</span>:
- <span class="org-variable-name">platform</span>: cse7766
<span class="org-variable-name">current</span>:
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff POWR2_1 Current"</span>
<span class="org-variable-name">voltage</span>:
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff POWR2_1 Voltage"</span>
<span class="org-variable-name">power</span>:
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff POWR2_1 Power"</span>
<span class="org-variable-name">binary_sensor</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">pin</span>:
<span class="org-variable-name">number</span>: GPIO0
<span class="org-variable-name">mode</span>: INPUT_PULLUP
<span class="org-variable-name">inverted</span>: <span class="org-constant">True</span>
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff POWR2_1 Button"</span>
<span class="org-variable-name">on_press</span>:
- <span class="org-variable-name">switch.toggle</span>: relay
<span class="org-variable-name">switch</span>:
- <span class="org-variable-name">platform</span>: gpio
<span class="org-variable-name">name</span>: <span class="org-string">"Sonoff POWR2_1 Relay"</span>
<span class="org-variable-name">pin</span>: GPIO12
<span class="org-variable-name">id</span>: <span class="org-string">'relay'</span>
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-10-25 lun. 14:33</p>
</div>
</body>
</html>