Skip to content

Commit e350bed

Browse files
stritticlaude
andauthored
docs: fix relay polarity (active-low) and remove non-existent relay-invert setting (#238)
* docs: fix relay polarity (active-low) and remove non-existent relay-invert setting The firmware drives standard external relay modules active-low (PoolController.cpp) and has no runtime relay-invert option. The hardware guide, quick start guides, build-from-zero, troubleshooting and the production checklist said the opposite (must be active-high / relay-invert). Also label the hardware guide cost total correctly (it includes the optional parts). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018328o8Q4ZG13zRaqWob4aG * docs: fix markdownlint issues in quick-start Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018328o8Q4ZG13zRaqWob4aG * docs: use plain text for closing line in quick-start Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018328o8Q4ZG13zRaqWob4aG * docs: fix remaining markdownlint errors (MD028, MD013) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018328o8Q4ZG13zRaqWob4aG * docs: remove quick start and FAQ duplicates, link to the website pages docs/quick-start.md, docs/quickstart.md (German) and docs/faq.md duplicated the maintained pages on smart-swimmingpool.com and had drifted (relay polarity, cost). README, CONTRIBUTING and the docs index now link to the website. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018328o8Q4ZG13zRaqWob4aG --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 8b469b0 commit e350bed

19 files changed

Lines changed: 54 additions & 1386 deletions

‎.opencode/skills/web-ui/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ keywords:
3131
Web interface development for the ESP32 pool-controller. The UI lives in two layers: **LittleFS** (editable at runtime) and **PROGMEM** (embedded fallback in the firmware binary).
3232

3333
> **Note:** The Olimex local TFT UI is a separate on-device interface (Adafruit GFX + ILI9341/ST7789) and is not the browser/LittleFS dashboard.
34-
34+
>
3535
> **🔍 Code Search**: Use `semble search "LittleFS.open"` or `semble search "kPortalPageHtml"` to find the fallback architecture. See `Agents.md` §7 for full `semble` usage.
3636
3737
---

‎CONTRIBUTING.de.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ make build
463463
### Dokumentation
464464

465465
- **[README.md](README.md)** - Projektübersicht und Schnellstart
466-
- **[Quick Start Guide](docs/quick-start.md)** - Schritt-für-Schritt-Anleitung
466+
- **[Quick Start Guide](https://www.smart-swimmingpool.com/docs/quickstart/)** - Schritt-für-Schritt-Anleitung
467467
- **[Hardware Guide](docs/hardware-guide.md)** - Montage und Verdrahtung
468468
- **[MQTT-Konfiguration](docs/mqtt-configuration.md)** - Home Assistant-Einrichtung
469469
- **[Codierrichtlinien](.github/CODING_GUIDELINES.md)** - Detaillierte Codierstandards

‎CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ make build
455455
### Documentation
456456

457457
- **[README.md](README.md)** - Project overview and quick start
458-
- **[Quick Start Guide](docs/quick-start.md)** - Step-by-step setup
458+
- **[Quick Start Guide](https://www.smart-swimmingpool.com/docs/quickstart/)** - Step-by-step setup
459459
- **[Hardware Guide](docs/hardware-guide.md)** - Assembly and wiring
460460
- **[MQTT Configuration](docs/mqtt-configuration.md)** - Home Assistant setup
461461
- **[Coding Guidelines](.github/CODING_GUIDELINES.md)** - Detailed coding standards

‎README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ The **Pool Controller** is an **ESP32-based control unit** that automates your s
4141

4242
**New to the project?** Begin with these resources:
4343

44-
- [📖 **Quick Start Guide**](docs/quick-start.md) – Step-by-step setup for beginners
45-
- [❓ **Frequently Asked Questions**](docs/faq.md) – Troubleshooting common issues
44+
- [📖 **Quick Start Guide**](https://www.smart-swimmingpool.com/docs/quickstart/) – Step-by-step setup for beginners
45+
- [❓ **Frequently Asked Questions**](https://www.smart-swimmingpool.com/docs/faq/) – Troubleshooting common issues
4646
- [🌐 **MQTT Configuration**](docs/mqtt-configuration.md) – Home Assistant integration
4747

4848
---
@@ -140,8 +140,8 @@ All settings survive reboots and power failures:
140140

141141
| Guide | Description | Audience |
142142
|-------|-------------|----------|
143-
| [Quick Start Guide](docs/quick-start.md) | Step-by-step setup for beginners | 🆕 New users |
144-
| [FAQ](docs/faq.md) | Troubleshooting common issues | ❓ All users |
143+
| [Quick Start Guide](https://www.smart-swimmingpool.com/docs/quickstart/) | Step-by-step setup for beginners | 🆕 New users |
144+
| [FAQ](https://www.smart-swimmingpool.com/docs/faq/) | Troubleshooting common issues | ❓ All users |
145145
| [Users Guide](docs/users-guide.md) | Web dashboard, operation modes, MQTT | 🎛️ Intermediate users |
146146
| [Hardware Guide](docs/hardware-guide.md) | Assembly, wiring, parts list | 🔧 Builders |
147147
| [MQTT Configuration](docs/mqtt-configuration.md) | Home Assistant Discovery, entity reference | 🌐 Smart home integrators |
@@ -214,7 +214,7 @@ We welcome contributions! Please follow these steps:
214214
- **Home Assistant Community:** [community.home-assistant.io](https://community.home-assistant.io/)
215215

216216
**Need Help?**
217-
1. Check the [FAQ](docs/faq.md)
217+
1. Check the [FAQ](https://www.smart-swimmingpool.com/docs/faq/)
218218
2. Search [Discussions](https://github.com/smart-swimmingpool/smart-swimmingpool.github.io/discussions)
219219
3. Open a [new issue](https://github.com/smart-swimmingpool/pool-controller/issues/new)
220220

‎docs/_index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The **Pool Controller** is the **central control unit** for your smart swimming
6464

6565
## 📦 Quick Start
6666

67-
**New users:** Begin with the [Quick Start Guide](quick-start.md) for step-by-step setup instructions.
67+
**New users:** Begin with the [Quick Start Guide](https://www.smart-swimmingpool.com/docs/quickstart/) for step-by-step setup instructions.
6868

6969
**Experienced users:** See the [Hardware Guide](hardware-guide.md) for parts list and wiring, or the [MQTT Configuration](mqtt-configuration.md) for smart home integration.
7070

‎docs/build-from-zero.de.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,11 @@ aufbauen.
228228
### Relaismodul anschließen
229229

230230
Active-Low-Relaismodule schalten, wenn der GPIO auf LOW geht. Die Firmware
231-
ist standardmäßig für **active-low** eingestellt (`relay-invert = false`).
231+
steuert Standard-Relaismodule **active-low** an; eine Laufzeit-Einstellung zum
232+
Invertieren gibt es nicht.
232233

233-
Falls dein Relaismodul **active-high** ist, setze `relay-invert = true` in der
234-
Konfiguration (siehe Schritt 5).
234+
Falls dein Relaismodul **active-high** ist, stelle den HIGH/LOW-Jumper auf LOW
235+
oder nimm ein Standard-Modul (active-low).
235236

236237
---
237238

@@ -341,8 +342,8 @@ Relais-Funktion mit einem Multimeter oder einer 5V LED + Widerstand prüfen.
341342
| AUS (inaktiv) | Offen | Geschlossen |
342343
| AN (aktiv) | Geschlossen | Offen |
343344

344-
Falls das Relais **invertiert** schaltet (AN = COM–NC geschlossen),
345-
`relay-invert = true` in Configuration → Advanced setzen.
345+
Falls das Relais **invertiert** schaltet (AN = COM–NC geschlossen), prüfen,
346+
dass das Modul active-low ist (HIGH/LOW-Jumper auf LOW).
346347

347348
---
348349

‎docs/build-from-zero.md‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,11 @@ Before soldering or installing permanently, build the circuit on a breadboard.
224224
225225
### Connect the Relay Module
226226

227-
Active-low relay modules trigger when the GPIO goes LOW. The firmware
228-
defaults to **active-low** (use `relay-invert = false` in configuration if
229-
your module is active-low).
227+
Active-low relay modules trigger when the GPIO goes LOW. The firmware drives
228+
standard relay modules **active-low**; there is no runtime setting to invert it.
230229

231-
If your relay module is **active-high**, set `relay-invert = true` in the
232-
configuration (see Step 5).
230+
If your relay module is **active-high**, set its HIGH/LOW jumper to LOW or use
231+
a standard active-low module.
233232

234233
---
235234

@@ -337,8 +336,8 @@ operation with a multimeter or a 5V LED + resistor.
337336
| OFF (inactive) | Open | Closed |
338337
| ON (active) | Closed | Open |
339338

340-
If the relay behavior is **inverted** (ON = COM–NC closed), set
341-
`relay-invert = true` in Configuration → Advanced.
339+
If the relay behavior is **inverted** (ON = COM–NC closed), check that the
340+
module is active-low (HIGH/LOW jumper on LOW).
342341

343342
---
344343

‎docs/faq.md‎

Lines changed: 0 additions & 194 deletions
This file was deleted.

‎docs/hardware-guide.de.md‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ richtig zusammenzubauen.
4242
| ---------- | ----------------------------------------------------------------------------------------------------------------- | :---: | :---------: | ---------------------------------------------- |
4343
| 1 | ESP32-Entwicklungsboard (z.B. ESP32 DevKit V1, NodeMCU-32S) | 1 | 10–15€ | Mindestens 4MB Flash |
4444
| 2 | DS18B20-Temperatursensor (wasserfest, Edelstahl, 1m Kabel) | 2 | 8–12€ | Einer für Poolwasser, einer für Solarkollektor |
45-
| 3 | 2-Kanal-5V-Relaismodul (mit Optokoppler) | 1 | 5–8€ | **Muss** active-high sein (siehe Hinweise) |
45+
| 3 | 2-Kanal-5V-Relaismodul (mit Optokoppler) | 1 | 5–8€ | Standard-Modul **active-low** (siehe Hinweise) |
4646
| 4 | Widerstand 4,7kΩ (¼W oder ⅛W, Metall- oder Kohleschicht) | 2 | < 1€ | Pull-up für die OneWire-Datenleitungen |
4747
| 5 | Breadboard + Jumper-Kabel (zum Testen) **ODER** Lochrasterplatine + Stiftleisten/Schraubklemmen (für Daueraufbau) | 1 | 3–8€ | |
4848
| 6 | USB-Netzteil 5V/≥1A (z.B. Handy-Ladegerät) | 1 | 5–10€ | Für den ESP32 allein |
4949
| 7 | Schaltdraht, 0,14–0,5mm², verschiedene Farben | — | 3–5€ | |
5050
| 8 | Optional: Gehäuse (ABS/PVC-Projektbox, IP54 oder besser) | 1 | 5–10€ | Schutz vor Spritzwasser/Staub |
5151
| 9 | Optional: Schraubklemmen (2-polig, 5mm Raster) | 4–6 | 2–3€ | Für steckbare Sensor-/Stromanschlüsse |
5252
| 10 | Optional: DS3231 RTC-Modul | 1 | 3–5€ | Backup-Uhr (nicht nötig bei NTP-Betrieb) |
53-
| **Gesamt** | | | **~45–75€** | Ohne Gehäuse; deutlich unter 100€ |
53+
| **Gesamt** | | | **~45–75€** | Inkl. optionaler Teile 8–10; Pflichtteile 1–7 ca. 35–60€ |
5454

5555
### Bezugsquellen
5656

@@ -68,9 +68,10 @@ Suchbegriffe:
6868
kaufen — die Firmware läuft auf dem Standard-ESP32 (Xtensa Dual-Core).
6969
- **DS18B20**: **Edelstahl, wasserdicht** mit 1m Kabel. Günstige
7070
Kunststoff-Varianten gehen auch, sind aber weniger haltbar im Außeneinsatz.
71-
- **Relaismodul**: **Achtung: Logikpegel prüfen!** Die Firmware schaltet per
72-
**active-high** (GPIO HIGH → Relais EIN). Viele günstige Module sind
73-
active-low (mit Jumper zum Umschalten). Vor dem Festlöten prüfen.
71+
- **Relaismodul**: **Achtung: Logikpegel prüfen!** Die Firmware steuert Standard-Relaismodule
72+
**active-low** an (GPIO LOW → Relais EIN). Das entspricht den meisten
73+
günstigen 2-Kanal-Modulen. Ein Modul mit HIGH/LOW-Jumper muss auf LOW stehen.
74+
Vor dem Festlöten mit dem Multimeter prüfen.
7475

7576
---
7677

@@ -200,10 +201,10 @@ Metall- oder Kohleschicht).
200201
| Steuereingang 1 | `IN1` oder `D1` | **GPIO25** (Pool-Pumpe) | **Gelb/Blau** |
201202
| Steuereingang 2 | `IN2` oder `D2` | **GPIO26** (Solar-Pumpe) | **Grün/Blau** |
202203

203-
**Wichtig — Logikpegel**: Die Firmware setzt den GPIO-Pin auf **HIGH (3,3V)**
204-
um das Relais zu aktivieren (active-high). Wenn dein Modul bei LOW schaltet
205-
(active-low), suche nach einem **Jumper** auf der Modulplatine, um den Modus
206-
zu wechseln. Active-high-Module sind einfacher in der Handhabung.
204+
**Wichtig — Logikpegel**: Die Firmware setzt den GPIO-Pin auf **LOW**, um das
205+
Relais zu aktivieren (schließen), und auf **HIGH**, um es zu lösen (active-low,
206+
das übliche Verhalten von 2-Kanal-5V-Modulen). Schaltet dein Modul bei HIGH,
207+
stelle den **HIGH/LOW-Jumper** auf LOW oder nimm ein Standard-Modul (active-low).
207208

208209
**Lastseite (230V-Seite) — Standard-Relaismodul:**
209210

@@ -449,7 +450,7 @@ Solar pump: ON → Relais klickt hörbar, Pumpe läuft an
449450
Wenn das Relais nicht klickt:
450451

451452
- [ ] Ist das Relaismodul mit Strom versorgt (5V zwischen VCC und GND)?
452-
- [ ] Stimmt der Logikpegel (active-high vs. active-low)?
453+
- [ ] Stimmt der Logikpegel (Modul muss active-low sein)?
453454
- [ ] Leuchtet die LED auf dem Relaismodul, wenn GPIO auf HIGH geht?
454455

455456
---
@@ -477,7 +478,7 @@ schalten die 230V-Last. Siehe die separate Anleitung:
477478
| "Sensor error" oder `-127°C` | Pull-up-Widerstand fehlt | 4,7kΩ zwischen DATA und 3,3V einlöten |
478479
| "Sensor error" | Falscher GPIO-Pin | `PIN_DS_SOLAR`/`PIN_DS_POOL` in `src/Config.hpp` prüfen |
479480
| Unbeständige Messwerte | Wackelkontakt oder Einstreuungen | Lötstellen prüfen, Daten- und Relaisleitungen trennen |
480-
| Relais schaltet nicht | Falscher Logikpegel | Active-high vs. active-low prüfen; Jumper umstecken |
481+
| Relais schaltet nicht | Falscher Logikpegel | Prüfen, dass das Modul active-low ist (Jumper auf LOW) |
481482
| Relais klickt, Pumpe läuft nicht | 230V-Verdrahtungsfehler | COM/NO-Kontakte prüfen, Pumpenanschluss kontrollieren |
482483
| Pumpe läuft trotz AUS-Anzeige | Relaiskontakt verschweißt (Motorlast) | **Schütz zwischenschalten** (siehe [Schütz-Anleitung](contactor-guide.de.md)) |
483484
| ESP32 startet nicht (Brownout) | Zu schwache Stromversorgung | 5V/≥1A-Netzteil verwenden; 100µF-Kondensator nahe VIN |

0 commit comments

Comments
 (0)