How to tell what is happening at the property, and control the system from somewhere else - or let it look after itself.
The system approach
Most systems, home-built or commercial, have three layers:
- Sensors and outputs at the pump and around the house: water level, flow and pressure, temperatures, embers; pump start/stop, valves.
- Microcomputers that read the sensors, drive the relays, and - ideally - keep defending on their own if everything else fails.
- A front end that brings it all to your phone: dashboard, alerts, history, remote control.
Keep the layers separate, so that the failure of the front end or the internet never stops the defence (see Threat model).
Microcomputers: Arduino, Raspberry Pi and other possibilities
| Option | Suits | Watch for |
| Arduino (e.g. UNO R4 WiFi) | Reading sensors and driving relays at the pump; simple, robust, restarts in a second and just runs its program; analog inputs built in | Limited memory; needs Wi-Fi or a cable link to pass readings on |
| ESP32 and similar Wi-Fi boards | Cheap; plenty of memory; can send readings straight to a front end over Wi-Fi (MQTT) | 3.3 V inputs: higher-voltage sensors need an optocoupler, divider or relay; analog inputs less accurate |
| Raspberry Pi | Running the front end (e.g. Home Assistant), internet access, logging, cameras and image processing | A full computer: slower to restart, SD cards can fail (boot from an SSD), no analog inputs; best kept indoors |
| PLC (industrial controller) | 24 V industrial sensors and relays; very reliable | Costly; different programming tools |
| GSM controller or alarm module | Starting a pump or sending an SMS on a contact closing, with little or no programming | Little logic; depends on mobile coverage |
A common combination is microcontrollers (Arduino or ESP32) at the pump for sensors and relays, with a Raspberry Pi in the house running the front end. Long links between them (house to pump shed) are best made by cable, e.g. RS-485.
Details: Monitoring a group of sensors with an Arduino or Raspberry Pi.
Front ends: Home Assistant and others
| Front end | What it gives | Depends on |
| Home Assistant | Open-source; dashboards on phone and computer, history, alerts (SMS, email, app), automations, cameras, remote control | A small computer at the house and an internet connection for remote access |
| Node-RED | Flow-based "wiring" from sensor messages to dashboards and notifications, with little programming | A small computer; usually used with an MQTT broker |
| Cloud IoT dashboards (e.g. Adafruit IO, Arduino Cloud, Blynk, ThingSpeak; or self-hosted nodrix) | Quick to set up; dashboards and phone notifications from the provider | The internet, and a third-party service staying up (and affordable) |
| SMS control (GSM controller or modem) | Start/stop and alerts by text message; no internet needed | Mobile coverage, which may itself fail in a fire |
| Commercial controller apps | The maker's own app with a packaged system (see Commercial systems) | The maker; usually limited to their own equipment |
Give alerts and control more than one path (for example, internet and SMS), and test them regularly.
The ARMAC approach with Home Assistant
ARMAC uses all three layers:
- At the pump shed: two Arduino UNO R4 WiFi boards. One (AR2) reads every sensor and broadcasts the readings by Wi-Fi every few seconds; the other (AR3) drives the relays for the pump and valves and runs autonomous mode.
- In the house: a third Arduino (AR1) linked to the shed by RS-485 over a buried multicore cable (with a backup link), and a Raspberry Pi running Home Assistant and the Mosquitto MQTT broker, with a mobile router as internet failover.
- The front end: Home Assistant dashboards on phone and computer for control and readings, SMS and email alerts, the fire-threat dashboard, and a camera. An SMS pump controller gives a second, independent way to start and stop the pump.
- When things fail: AR1 sends a heartbeat to the shed; if it stops for five minutes (internet down, Pi failed, autonomous switch turned on), AR3 runs the defence by itself from temperatures, water level and battery.
Details: Home Assistant for fire defence here, and Electronic modules, Home Assistant and the Raspberry Pi and Autonomous logic on ARMAC.AU.
Topics
Sensors
Controllers: Arduino, Raspberry Pi and others
Home Assistant and dashboards
Power and reliability
Pages here are kept under the Site Editor's control; see Contributing to add to them.
Discuss this page
Questions, corrections or your own experience of this topic? Add a comment below. You need to be signed in to the forum to comment.