Skip to the content
2 layers80 × 100 mmBaby remote, the printed circuit board in 3D

Baby care tracking suite: HA dashboards, n8n workflows, PostgreSQL, ESP32-C3 remote with 3D-printed enclosure

Size
80 × 100 mm
Copper layers
2
Thickness
1.6 mm
Parts
17
Nets
17
Pads
80
Tracks, vias
127, 7
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
30 May 2026
Updated
10 Jun 2026

Overview

Baby remote is an open-source printed circuit board by aamat09, from the aamat09/baby-tracker-suite repository on GitHub, published under the MIT licence. It is a 2-layer board of 80 × 100 mm with 17 parts on 17 nets, routed with 127 tracks and 7 vias.

It is built around the WS2812B. Its parts include 15 switches, 1 IC and 1 diode. It belongs with the home automation and IoT boards and the ESP32 and RISC-V boards of this library.

Main components

1

README

README.md

Baby Tracker Suite

Buy Me A Coffee License: MIT ESPHome status

A baby care tracking system built on Home Assistant, n8n, PostgreSQL, and ESP32. Born out of a contraction tracker built for labor, evolved into a full newborn care dashboard once my son arrived plus a ~$10 3D-printed physical remote for those 3am diaper-change logs.

Home Assistant baby tracker dashboard — summary stats and one-tap event buttons

Features

  • One-tap logging of feeds, diapers, sleep, baths, medicine, tummy time, weight, pumping, and notes. 17 event types across 8 categories
  • Multi-channel fan-out on every press: PostgreSQL, both phones, Echo Show, and Discord via a single n8n webhook
  • Live HA dashboard with daily stats (feeds/diapers today, sleep total, last feed/diaper) polled every 30s
  • 3D-printed physical remote ESP32-C3 + a 15-button 4x4 matrix + WS2812 feedback LED, MQTT over WiFi
  • Reproducible PCB fully-routed 2-layer KiCad board and a 3D-printed copper-tape groove board, both generated from script
  • 2-hour pump reminders with independent per-side timers
  • Retired contraction tracker the labor-day origin story, Ring panic button + on-demand Ollama labor-stage AI assessment

The Story

When my wife went into labor, we needed a way to log contractions without fumbling with phone apps. We paired a Ring Alarm Panic Button (Z-Wave) to our home automation stack where one press logged the contraction, timestamped it in PostgreSQL, notified both phones, posted to Discord, and announced it on the Echo Show. It worked beautifully for 700+ contractions over two weeks.

When we got to the hospital, the Ring button was back home. So we added intensity-coded buttons (Mild/Moderate/Strong/Intense) to the HA dashboard with color coding, stats (average gap, frequency), and an on-demand AI assessment powered by Ollama that would estimate the labor stage.

My son was born the next day. The contraction tracker was retired the same day and replaced with a baby tracker covering feeds, diapers, sleep, baths, medicine, tummy time, weight, pumping, and notes.

Keeping the same low-friction (high-WAF) style, we then built a 3D-printed physical remote with labeled buttons so nobody has to unlock a phone to log a diaper change at 3am.

Architecture

text
Physical Button / HA App / Siri Shortcut
        |
        v
   n8n Webhook (POST /webhook/baby-event)
        |
   +----+----+----+----+
   |    |    |    |    |
   v    v    v    v    v
  DB  Phone Phone Echo Discord
  PG   you   ptnr Show
        |
        v
   n8n Log API (GET /webhook/baby-log)
        |
        v
   HA REST Sensor (polls every 30s)
        |
        v
   HA Dashboard (stats + journal + buttons)

Components

Contraction Tracker (retired)

The original. Ring Panic Button press -> Z-Wave JS UI -> Python bridge -> MQTT + n8n webhook -> full pipeline.

FileDescription
contraction-tracker/zwave_panic_mqtt.pyPython bridge: Z-Wave WebSocket -> MQTT + webhook
contraction-tracker/n8n/contraction_tracker.jsonMain workflow: webhook -> Discord, DB, notifications
contraction-tracker/n8n/contraction_note_logger.jsonMQTT-triggered note logger
contraction-tracker/n8n/contraction_log_api.jsonGET API: returns entries + 2-hour stats
contraction-tracker/n8n/contraction_ai_assessment.jsonOn-demand Ollama AI labor stage assessment
contraction-tracker/ha/dashboard.jsonHA Lovelace dashboard (intensity buttons, journal, AI)
contraction-tracker/ha/configuration_snippets.yamlHA config: rest_command, input_text, REST sensor

Features added during labor:

  • 4 color-coded intensity buttons (Mild/Moderate/Strong/Intense)
  • Real-time stats: contraction count, average gap, average intensity (last 2 hours)
  • On-demand AI assessment via Ollama (gpt-oss model) with timestamp
  • Press feedback: haptic vibration + button scale animation
  • iPhone home screen shortcut via Apple Shortcuts deep link

Baby Tracker (active)

Full newborn care tracker. 17 event types across 8 categories.

FileDescription
baby-tracker/n8n/baby_event_logger.jsonMain workflow: webhook -> DB + phone notifications
baby-tracker/n8n/baby_note_logger.jsonMQTT-triggered note logger
baby-tracker/n8n/baby_log_api.jsonGET API: returns entries + daily stats
baby-tracker/n8n/pump_reminder.json2-hour pump reminder (independent timers per pump)
baby-tracker/ha/dashboard.jsonHA Lovelace dashboard
baby-tracker/ha/configuration_snippets.yamlHA config snippets

Event types:

  • Feed: breast, bottle, solid
  • Pump: left, right (with 2h reminder)
  • Diaper: pee, poop, both, change
  • Other: sleep (toggle), bath, medicine, tummy_time, weight
  • Notes: regular, special (star-prefixed)

Stats tracked: last feed time/type, last diaper time/type, feeds today, diapers today, sleep total today, baths/medicines/tummy times/pumps today.

Baby Tracker App — Home Assistant add-on (separate repo)

A single-container Home Assistant app that bundles everything above with no n8n and no external database: an Ingress web UI (the colorful button dashboard), local SQLite storage, the same stats/journal, pump reminders, and native HA entities via MQTT discovery — and it still listens to the ESP32 remote. It lives in its own installable repo:

➡️ hms-homelab/hms-baby-tracker (FastAPI + SQLite; add the repo URL under Settings → Add-ons/Apps → Repositories).

Baby Tracker add-on Ingress web UI — summary stats, color-coded button grid, notes and journal Baby Tracker add-on running in Home Assistant — Info page with Ingress, start-on-boot and resource usage

The add-on's Ingress web UI (left) and its Home Assistant app page (right) — runs as a native HA add-on, no n8n or external DB.

The n8n + PostgreSQL path in this repo remains as the advanced/legacy backend; the app is the portable, one-click way to run the whole thing.

Baby Remote (in progress)

3D-printed physical remote control with ESP32-C3, 15 tactile buttons, RGB LED feedback, and a 0.96" OLED status screen.

3D-printed baby-remote — 15 labeled buttons and a 0.96-inch OLED showing last feed, last pump and the next-pump reminder

The remote with its 0.96" OLED — last feed, last pump and the next-pump reminder, pushed live over MQTT by n8n.

🎛️ Want one without building it? The remote is made in small batches — join the device waitlist →.

FileDescription
baby-remote/kicad/2-layer PCB (DRC-clean, Freerouting-routed) — the manufactured board
baby-remote/kicad/fab/baby-remote-jlcpcb.zipGerbers + drill, ready to upload to JLCPCB
baby-remote/scad/baby-remote-pcb.scadOpenSCAD 3D-printed PCB substrate (grooved board = device back; bottom feet)
baby-remote/scad/baby-remote-pcb-case.scadOpenSCAD snap-fit cap (walls + ledge + barrels + labels); board snaps in
baby-remote/scad/button_plunger.stlButton plunger (print 15×)
baby-remote/scad/led_window.stlLED window (print 1× in clear filament)
baby-remote/esphome/baby_remote.yamlESPHome firmware: matrix -> MQTT -> n8n / the app

See Hardware for the button layout, matrix wiring, PCB, and BOM.

Database

FileDescription
db/schema.sqlPostgreSQL schema for both tables

Both tables live in the maestro_hub database on PostgreSQL 17 at homelab.local.

Hardware

The Baby Remote is a 3D-printed, battery-powered ESP32-C3 keypad. 15 tactile switches on a diodeless 4x4 scan matrix (16th cell is the LED window), each press published over MQTT to the same n8n webhook the app and Siri use.

Button layout (4x4 grid, last cell = RGB LED):

text
 Breast  | Bottle  |  Solid  |  Sleep
 Pump L  | Pump R  |  Bath   |  Meds
  Pee    |  Poop   |  Both   | Change
 Tummy   | Weight  |  Note   |  [LED]

Matrix -> GPIO (firmware baby-remote/esphome/baby_remote.yaml == PCB):

SignalGPIONet
Rows (drive)GPIO0, GPIO1, GPIO3, GPIO4ROW0..3
Columns (sense)GPIO5, GPIO6, GPIO7, GPIO10COL0..3
WS2812B LEDGPIO8LED_DIN

PCB -- two interchangeable designs, both script-generated and reproducible:

  • KiCad (baby-remote/kicad/) fully-routed 2-layer board (rows on F.Cu, columns on B.Cu), DRC clean (0 violations / 0 unconnected / 0 parity), Freerouting-routed, JLCPCB-ready. Regenerate with gen_schematic.py -> pcbgen.py; route via Specctra DSN/SES.
  • OpenSCAD groove board (baby-remote/scad/baby-remote-pcb.scad) 3D-printed substrate with copper-tape/tinned-wire grooves; rows on the top face, columns on the bottom, switch legs bridging faces (crossing-free).

BOM (~$10):

PartQty
ESP32-C3 SuperMini1
TP4056 USB-C LiPo charger1
3.7V LiPo 500mAh1
6x6x5mm tactile switches15
WS2812B RGB LED1
Slide switch (power)1

Infrastructure

  • Home Assistant: KVM/VM at homeassistant.local (dashboards, scripts, REST sensors)
  • n8n: Native at homelab.local:5678 (workflow automation, webhooks)
  • PostgreSQL 17: Native at homelab.local:5432 (data storage)
  • EMQX: Native at homelab.local:1883 (MQTT broker)
  • Ollama: ollama.local:11434 (AI assessment, RTX 3050)
  • ESPHome: For ESP32 device firmware

Install as a Home Assistant App

The fastest path — no n8n, no PostgreSQL, no manual scripts:

  1. Settings → Add-ons → Add-on Store (shown as Apps on HA 2026.2+) → ⋮ → Repositories → add https://github.com/hms-homelab/hms-baby-tracker.
  2. Install Baby Tracker, then Start it.
  3. Open the Web UI (Ingress) — the button dashboard is right there.
  4. (optional) In the app's Configuration tab set notify_targets (e.g. mobile_app_your_phone) to get press + pump-reminder notifications, and adjust timezone / pump_hours.

It auto-connects to the HA Mosquitto broker, so the ESP32 remote keeps working (publishes to baby/remote/event) and native HA sensors/buttons appear automatically via MQTT discovery. Data lives in the add-on's /data (SQLite). Full reference: hms-baby-tracker DOCS.

Quick Start (advanced / legacy n8n backend)

1. Database

bash
psql -d maestro_hub -f db/schema.sql

2. n8n + Home Assistant

bash
# Import the n8n workflows (n8n UI or API)
#   baby-tracker/n8n/*.json
# Add the HA snippets to configuration.yaml
#   baby-tracker/ha/configuration_snippets.yaml
# Import the dashboard into HA storage (.storage/lovelace.<name>)
#   baby-tracker/ha/dashboard.json
# Create the HA scripts referenced by the dashboard (rest_command + input_text,
#   see baby-tracker/ha/configuration_snippets.yaml)

3. Flash the remote

bash
esphome run baby-remote/esphome/baby_remote.yaml

4. Build the remote

Print the case parts (baby-remote/scad/*.stl), fabricate the PCB (KiCad Gerbers or the OpenSCAD groove board), and assemble.

Related Projects

Part of the Smart Home Maestro homelab:

  • hms-cpap multi platform service for realtime visualization of sleep based data on cpap.
  • hms-claude-mem -- semantic memory MCP server (Redis vectorsets + Ollama)
  • hms-mm -- dual ESP32-C3 WiFi SD-card bridge
  • hms-scale-esp -- ESP32-C3 BLE scale gateway

License

MIT License -- see LICENSE for details.

Support

If this project is useful to you, consider buying me a coffee!

Buy Me A Coffee

Parts

17
QtyValueFootprintReferences
1BathButton_Switch_THT:SW_PUSH_6mm_H13mmSW7
1BothButton_Switch_THT:SW_PUSH_6mm_H13mmSW11
1BottleButton_Switch_THT:SW_PUSH_6mm_H13mmSW2
1BreastButton_Switch_THT:SW_PUSH_6mm_H13mmSW1
1ChangeButton_Switch_THT:SW_PUSH_6mm_H13mmSW12
1ESP32-C3 SuperMiniESP32-C3-SuperMini:MODULE_ESP32-C3_SUPERMINIU1
1MedsButton_Switch_THT:SW_PUSH_6mm_H13mmSW8
1NoteButton_Switch_THT:SW_PUSH_6mm_H13mmSW15
1PeeButton_Switch_THT:SW_PUSH_6mm_H13mmSW9
1PoopButton_Switch_THT:SW_PUSH_6mm_H13mmSW10
1PumpLButton_Switch_THT:SW_PUSH_6mm_H13mmSW5
1PumpRButton_Switch_THT:SW_PUSH_6mm_H13mmSW6
1SleepButton_Switch_THT:SW_PUSH_6mm_H13mmSW4
1SolidButton_Switch_THT:SW_PUSH_6mm_H13mmSW3
1TummyButton_Switch_THT:SW_PUSH_6mm_H13mmSW13
1WS2812BLED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mmLED1
1WeightButton_Switch_THT:SW_PUSH_6mm_H13mmSW14

Similar boards

  • 4 layers99 × 53.3 mmPSLab, the printed circuit board in 3D

    PSLab

    fossasia/pslab-hardware

    PSLab Hardware Design and Schematics https://pslab.io

    199 parts1.7kApache-2.0
  • 2 layers26 × 30 mmMicrocontroller, the printed circuit board in 3D

    Microcontroller

    FrameworkComputer/ExpansionCards

    Reference designs and documentation to create Expansion Cards for the Framework Laptop

    34 parts1.1kCC-BY-4.0
  • 4 layers82.6 × 82.5 mmJumperless2, the printed circuit board in 3D

    Jumperless2

    Architeuthis-Flux/Jumperless

    A jumperless breadboard

    208 parts914
  • 2 layers95.3 × 161.9 mmDfh badge, the printed circuit board in 3D

    Dfh badge

    tanaes/whopping_Voron_mods

    135 parts787GPL-3.0
  • 2 layers42.8 × 28.8 mmMM Skirt, the printed circuit board in 3D

    MM Skirt

    PrintersForAnts/Micron

    If you want to purchase full kits there are 3 available (Kits are slowly updating to R1 hardware just make sure to double check the included hardware in your kit and if you have any questions reach out in the discord)

    11 parts741GPL-3.0
  • 2 layers149.6 × 127.1 mmErgodash, the printed circuit board in 3D

    Ergodash

    omkbd/ErgoDash

    keyboard

    187 parts732MIT
  • 2 layers285.5 × 95 mmReviung46 ver1 1, the printed circuit board in 3D

    Reviung46 ver1 1

    gtips/reviung

    The REVIUNG41 is 41-key column staggered keyboard.

    119 parts517MIT
  • 2 layers177.7 × 144.5 mmCOMM PANEL, the printed circuit board in 3D

    COMM PANEL

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    275 parts431

Questions

How big is the Baby remote PCB?

It measures 80 × 100 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Baby remote use?

17 parts, built around the WS2812B. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Baby remote KiCad files?

From the aamat09/baby-tracker-suite repository on GitHub, at the commit this page was made from: the board is baby-remote/kicad/baby-remote.kicad_pcb and its schematic baby-remote/kicad/baby-remote.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Baby remote design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).