Skip to content
Frequently Asked Questions (FAQ)

Frequently Asked Questions (FAQ)

This FAQ covers common issues and their solutions for the Smart Swimming Pool Controller. If your problem isn’t listed here, check the Discussions or open a new issue on GitHub.


๐Ÿšจ Safety & Warnings

โš ๏ธ Is this project safe for beginners?

No. This project involves 230V AC mains voltage, which can be deadly if mishandled.

  • Only proceed if you have basic electronics knowledge (e.g., understanding of voltage, current, and safety precautions).
  • Always use a Residual Current Device (RCD/FI circuit breaker) for the pump circuit.
  • Disconnect power before working on the circuit.
  • If in doubt, consult a qualified electrician.
  • This project is NOT certified (no CE/UL mark). For personal use only!

โš ๏ธ What safety precautions should I take?

  1. Use an RCD (FI circuit breaker) for the pump circuit.
  2. Keep low-voltage (sensor) wiring separate from mains wiring.
  3. Use insulated tools and wear safety glasses.
  4. Never work on live circuits.
  5. Test connections with a multimeter before powering on.

๐Ÿ”Œ Hardware Issues

๐Ÿ”น My DS18B20 sensor is not detected (shows -127ยฐC or “Sensor error”)

Possible Causes & Solutions

CauseSolutionHow to Test
Missing 4.7kฮฉ pull-up resistorAdd a 4.7kฮฉ resistor between the DATA line and 3.3V.Measure resistance between DATA and 3.3V (should be ~4.7kฮฉ).
Wrong GPIO pinCheck PIN_DS_SOLAR (GPIO32) and PIN_DS_POOL (GPIO33) in src/Config.hpp.Verify wiring matches the firmware configuration.
Sensor not connected to 3.3VEnsure VDD (red wire) is connected to 3.3V (not 5V!).Measure voltage between VDD and GND (should be ~3.3V).
Sensor not connected to GNDEnsure GND (black wire) is connected to GND.Measure continuity between sensor GND and ESP32 GND.

Debugging Steps

  1. Check the serial monitor (115200 baud) for sensor initialization messages.
  2. Test with a single sensor (disconnect one and test the other).

๐Ÿ”น My relay module doesn’t work

Possible Causes & Solutions

CauseSolutionHow to Test
Relay module not poweredEnsure VCC is connected to 5V and GND to GND.Measure voltage between VCC and GND (should be ~5V).
Wrong logic level (active-low)Ensure the relay module is active-low trigger compatible (firmware output is active-low).Check whether the relay clicks/energizes when GPIO goes LOW (LED behavior can vary by module).
Incorrect GPIO pinVerify PIN_RELAY_POOL (GPIO25) and PIN_RELAY_SOLAR (GPIO26).Check wiring matches firmware configuration.

๐Ÿ’ป Software & Firmware Issues

๐Ÿ”น How do I update the firmware?

Option A: Web Interface (OTA)

  1. Open Web Dashboard (http://<controller-ip>/).
  2. Go to Security & Update > OTA Firmware Update.
  3. Select the .bin file and click Update.

Option B: PlatformIO

  1. Open the pool-controller folder in VS Code with PlatformIO.
  2. Select the esp32dev environment.
  3. Run pio run -e esp32dev -t upload.

๐Ÿ”น My controller doesn’t connect to WiFi

Debugging Steps

  1. LED Status Codes:

    • Rapid blink (5 Hz): AP mode (no WiFi configured).
    • Slow blink (1 Hz): WiFi connecting.
    • Solid on: Fully connected.
  2. Reconnect via AP Mode:

    • Connect to Pool-Controller-Setup (open network).
    • Open http://192.168.4.1 and reconfigure WiFi.

๐Ÿ”น My controller doesn’t connect to MQTT

Debugging Steps

  1. Verify MQTT Host/IP and Port in Web Dashboard.

  2. Test MQTT manually:

    mosquitto_sub -h <broker-ip> -t "#" -v

๐Ÿ”น Home Assistant doesn’t discover my controller

Solution

  1. Upgrade to v3.3.0+ (Homie support removed).

  2. Clear retained MQTT messages:

    mosquitto_pub -h <broker> -t "homeassistant" -n -r
  3. Enable MQTT Discovery in Home Assistant.


๐ŸŒ Integration Guides

๐Ÿ”น How do I set up Mosquitto on Raspberry Pi?

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install mosquitto mosquitto-clients
sudo systemctl start mosquitto
sudo systemctl enable mosquitto

๐Ÿ”น How do I integrate with Node-RED?

  1. Install Node-RED:

    npm install -g node-red
    node-red
  2. Install MQTT nodes:

    • Menu > Manage palette > Install > node-red-node-mqtt

๐Ÿ”„ Operation & Usage

๐Ÿ”น How do I change the operation mode?

Via Web Dashboard

  1. Go to Configuration tab.
  2. Select Auto, Manual, Timer, or Boost.

Via MQTT

mosquitto_pub -h <broker-ip> -t "homeassistant/select/pool-controller/mode/set" -m "auto"

๐Ÿ“š Additional Resources


๐Ÿค Still Need Help?

  1. Search Discussions.
  2. Open a new issue.

๐Ÿ“„ License

This FAQ is part of the Smart Swimming Pool project, licensed under the MIT License.

Last updated on