Quick-log feedings and diaper changes to Huckleberry from a Pebble watch — via your own Home Assistant.
Pebble watch (embeddedjs/main.js, Moddable XS / Piu)
│ fetch() — bridged through @moddable/pebbleproxy
▼
Phone (pkjs/index.js)
│ HTTPS POST /api/services/huckleberry/<service>
│ Authorization: Bearer <long-lived token>
▼
Home Assistant (with the Huckleberry HACS integration)
│ huckleberry-api Python library
▼
Huckleberry / Firestore
No custom server, no AppMessage protocol — the watch calls Home Assistant directly through the phone’s network.
A single screen on the watch:
| Button | Action |
|---|---|
| Up | Previous action in the list |
| Down | Next action in the list |
| Select | Log the current action |
| Back | Exit the app |
Actions cycle through diaper changes (Wet / Dirty / Both / Dry), Bottle (120 ml
formula), Nurse Left / Right, and End Nursing. Each maps to one HA service
under the huckleberry integration.
src/embeddedjs/main.js — watch app (Piu UI, button input, HTTP)src/embeddedjs/credentials.js — gitignored, holds your HA URL/token/device IDsrc/embeddedjs/credentials.js.example — template for credentials.jssrc/pkjs/index.js — phone companion, just the pebbleproxy bridgesrc/embeddedjs/credentials.js (copy from credentials.js.example) and fill in your three values. Never commit this file.emery (Pebble Time 2) and gabbro (Pebble 2 Duo).