DIY or Buy Your S0tool
Choose the approach that fits you best: build your own S0tool from affordable, off-the-shelf components, or order a fully assembled PCB from the Huizebruin shop. Both options give you a local, ESPHome-compatible water and energy meter for Home Assistant.
Build It Yourself
Use a Wemos D1 Mini (ESP8266) with a 5V NPN proximity sensor and a 10KΩ resistor — total cost under €10. Perfect for DIY enthusiasts and hobbyists.
- Connect one end of the 10KΩ resistor to
5V. - Connect the other end to
D2. - Attach
D2to the signal wire of the NPN sensor. - Connect the sensor's GND wire to
GND.
Minimum ESPHome: 2026.8.0 — Minimum Home Assistant: 2026.8.x
Alternative: Cyble Sensor V2
Can't get hold of a 5V NPN sensor? A Cyble Sensor V2 reed switch works with S0tool too — it just needs the pull-up resistor wired the other way around.
- Connect the 10KΩ resistor between
GNDandD2(not5VandD2as with the NPN sensor above). - Connect the Cyble sensor's two wires to
D2andGND.
Shopping List
| Part | Where to Buy |
|---|---|
| Wemos D1 Mini (ESP8266) | AliExpress · Amazon |
| NPN Proximity Sensor (5V) | AliExpress · Amazon · Opencircuit (NL) |
| 10KΩ Resistor | AliExpress · Amazon · Opencircuit (NL) |
| USB Cable + 5V Adapter | Any Micro-B phone charger |
Wiring Schematics
Click image to enlarge
Wiring Schematic wemos d1 and npn sensor
Click image to enlarge
Buy a Ready-Made S0tool
Skip soldering and order a fully assembled S0tool PCB. Comes with the 10KΩ resistor pre-installed. Shipping currently available to Netherlands, Belgium, Germany, and Estonia. For other countries, contact us by email.
Order from Huizebruin ShopkWh Meter Integration
- Ensure your kWh meter has an S0 output port.
- Connect a 10KΩ resistor between
GNDandD5. - Connect
5Vto port 20 of the S0 terminal. - Connect
D5to port 21 of the S0 terminal.
Don't Have a kWh Meter Yet?
Any meter with an S0 pulse output works. Solar panels, heat pumps, and standalone energy meters all qualify — here are a few known-good options:
| Rating | Pulse Rate | Where to Buy |
|---|---|---|
| 45A kWh Meter | 1000 imp/kWh | Bol.com |
| 40A kWh Meter | 2000 imp/kWh | Bol.com |
| 32A kWh Meter | 2000 imp/kWh | Amazon |
| 40A kWh Meter | 1000 imp/kWh | Amazon |