2017-05-20 16:39:28 +02:00
|
|
|
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)
|
2017-05-26 16:08:42 +02:00
|
|
|
Firmware : [KmanOz/Sonoff-HomeAssistant](https://github.com/KmanOz/Sonoff-HomeAssistant)
|
2017-05-26 16:30:20 +02:00
|
|
|
Particulièrement cette [version](https://github.com/KmanOz/Sonoff-HomeAssistant/tree/master/arduino/ESPsonoff-v1.01pOTA).
|
2017-05-20 16:39:28 +02:00
|
|
|
p car on s'en fout d'avoir un dht22 (version t).
|
|
|
|
|
|
|
|
|
|
Ordre des PINs
|
|
|
|
|
==============
|
2017-05-20 16:41:30 +02:00
|
|
|

|
2017-05-20 16:39:28 +02:00
|
|
|
[source](https://randomnerdtutorials.com/how-to-flash-a-custom-firmware-to-sonoff/)
|
|
|
|
|
```
|
2017-05-20 16:44:11 +02:00
|
|
|
| VIN (3.3v) |
|
|
|
|
|
| RX |
|
|
|
|
|
OUT | TX | IN
|
|
|
|
|
| GND |
|
|
|
|
|
| GPIO14 |
|
2017-05-20 16:39:28 +02:00
|
|
|
```
|