Shelly-Skript meldet nach eigenem Schalten sofort erneut, damit die Statusseite nicht bis zu 10 Minuten hinterherhängt. Schlüssel aus dem Skript in die ignorierte Datei shelly/heizung.key ausgelagert. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42 lines
1.8 KiB
C
42 lines
1.8 KiB
C
#pragma once
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// Hardware: LC-Relay-ESP32-4R-A2 / "ESP32 Relay X4"
|
|
// ---------------------------------------------------------------------------
|
|
#define RELAY_PIN 32 // Relais 1 = Pumpe (Schütz)
|
|
#define RELAY_ACTIVE_LOW false
|
|
// Ungenutzte Relais 2-4 werden beim Start sicher ausgeschaltet
|
|
#define UNUSED_RELAY_PINS {33, 25, 26}
|
|
#define LED_PIN 23 // Status-LED auf der Platine
|
|
#define BUTTON_PIN 0 // BOOT-Taster
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// Verhalten
|
|
// ---------------------------------------------------------------------------
|
|
// Zustand der Pumpe, solange nach einem Neustart noch keine Uhrzeit bekannt ist
|
|
// (kein Internet). true = Pumpe läuft (Frostschutz).
|
|
#define FAILSAFE_RELAY_ON true
|
|
|
|
#define MAX_WINDOWS 20 // max. Zeitfenster im Zeitplan
|
|
#define TZ_INFO "CET-1CEST,M3.5.0,M10.5.0/3" // Deutschland inkl. Sommerzeit
|
|
|
|
// Taster: kurz = Pumpe manuell AN/AUS umschalten, lang = zurück zur Automatik
|
|
#define BUTTON_LONG_MS 3000
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// Benutzer
|
|
// ---------------------------------------------------------------------------
|
|
#define MAX_USERS 40
|
|
#define SESSION_DAYS 90 // so lange bleibt man angemeldet
|
|
#define PBKDF2_ITERATIONS 2000 // Passwort-Hashing
|
|
#define LOGIN_MAX_FAILS 5 // danach Sperre ...
|
|
#define LOGIN_LOCK_S 60 // ... für so viele Sekunden
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// Netzwerk
|
|
// ---------------------------------------------------------------------------
|
|
// Im Heimnetz und per VPN erreichbar unter http://heizung-pumpe.fritz.box
|
|
#define HOSTNAME "heizung-pumpe"
|
|
|
|
#define FIRMWARE_VERSION "2.0.0"
|