55 lines
1.6 KiB
Markdown
Executable File
55 lines
1.6 KiB
Markdown
Executable File
# ESP8266 Ventilation Recomondation
|
|
|
|
Ein Projekt zur Visualisierung von **Lüftungsempfelungen** mit einem **ESP8266**.
|
|
Das Script fragt periodisch eine Systemvariable von einer Homematic Zentrale ab.
|
|
Wenn die Variable wahr ist wird das mittels einer grünen LED angezeigt.
|
|
|
|
<img src="https://git.gofel.net/Thorsten/esp8266_ventilation_recommendation/raw/branch/master/images/image_1.jpg" alt="Projektbild" width="300">
|
|
|
|
|
|
## Funktionen
|
|
- **LED leuchtet grün** Lüften empfohlen
|
|
- **LED leuchtet rot** Lüften nicht empfohlen
|
|
- **LED blinkt cyan** WLAN wird verbunden
|
|
|
|
|
|
## Konfiguration
|
|
|
|
Passe die `settings.h` auf deine Bedürfnisse an
|
|
```cpp
|
|
// ######################## WLAN-Daten ########################
|
|
|
|
const char* hostname = "ESP6288_Keller_Lueften";
|
|
|
|
const char* ssidList[] = {
|
|
"SSID_1", // Netzwerk 1
|
|
"SSID_2", // Netzwerk 2
|
|
"SSID_3" // Netzwerk 3
|
|
// Weitere SSID hier hinzufügen
|
|
};
|
|
|
|
const char* passwordList[] = {
|
|
"Passwort_1", // Passwort für SSID 1
|
|
"Passwort_2", // Passwort für SSID 2
|
|
"Passwort_3" // Passwort für SSID 3
|
|
// Weitere Passwörter hier hinzufügen
|
|
};
|
|
|
|
// ################# Homematic Systemvariable #################
|
|
|
|
const char* hm_sysvar_url = "http://192.168.178.50/addons/xmlapi/sysvar.cgi?sid=kYvzkyRPluLBsfLL&ise_id=20746";
|
|
|
|
// ############################################################
|
|
```
|
|
|
|
## Verdrahtung
|
|
|
|
| ESP8266 | LED |
|
|
|---------|-----|
|
|
| D1 | R |
|
|
| D2 | G |
|
|
| D3 | B |
|
|
| G | I |
|
|
|
|
|
|
<img src="https://git.gofel.net/Thorsten/esp8266_ventilation_recommendation/raw/branch/master/images/image_2.jpg" alt="Verdrahtung" width="600"> |