|
|
|
@ -0,0 +1,21 @@ |
|
|
|
TODO: un sonoff pour les lumières du plafond du salon. |
|
|
|
Le truc par défaut est à on, via l'interface je peux couper ou rallumer. |
|
|
|
Si on veut rallumer, on appuie sur le boutton tout passe à off, elle rappuie tout passe à on (default state). |
|
|
|
Utilisation de : |
|
|
|
Hardware : [Sonoff Switch (ou Basic)](https://www.itead.cc/smart-home/sonoff-wifi-wireless-switch.html?acc=70efdf2ec9b086079795c442636b55fb) |
|
|
|
Firmware : (https://github.com/KmanOz/Sonoff-HomeAssistant) |
|
|
|
Particulièrement cette [version](https://github.com/KmanOz/Sonoff-HomeAssistant/tree/master/arduino/ESPsonoff-v1.01p). |
|
|
|
p car on s'en fout d'avoir un dht22 (version t). |
|
|
|
|
|
|
|
Ordre des PINs |
|
|
|
============== |
|
|
|
 |
|
|
|
[source](https://randomnerdtutorials.com/how-to-flash-a-custom-firmware-to-sonoff/) |
|
|
|
``` |
|
|
|
| VIN (3.3v) | |
|
|
|
| RX | |
|
|
|
IN | TX | OUT |
|
|
|
| GND | |
|
|
|
| GPIO14 | |
|
|
|
``` |
|
|
|
|