Hi everyone,
I’m Matteo, a software engineer. This is Metron, a food diary and weight tracker for the whole household, inside Home Assistant.

Why I built it
I’ve been overweight for most of my life, and I track my calories and weight closely. The commercial apps I tried were riddled with ads and kept my data on their servers, with little way to use it.
I wanted that data in my own Home Assistant, fully private, to chart, analyse and automate. So I built Metron. I hope it helps people in a similar situation, and any household that just wants to stay in shape.
What it does
- A diary for everyone. Each person has their own diary, goals and weight. Saved foods and meals are shared by the household.
- Six dashboard cards: food diary, saved foods, saved meals, weight, trends and summary.
- Quick logging: saved foods and meals, quick adds, copying a meal from another day, barcode scanning in the Home Assistant app, and Open Food Facts search.
- Goals that follow you: a calorie goal that adjusts as your weight changes, or your own, with your own macro split.
- Sensors and actions: per-person sensors with long-term statistics, and
metron.log_weight,log_food,log_mealandget_dayfor automations and Assist. A smart scale can log every weigh-in. - Your history in, your data out: import from MyFitnessPal or from your recorder’s history, and export as CSV.
- 11 languages, light and dark themes, kg or lb.
Private by design
Your data lives in SQLite in your configuration folder, included in Home Assistant’s backups, or in your own Postgres. No account, no cloud, no ads; the only outside service is Open Food Facts, when you look up a food.
Engineered, with the help of AI
AI (Claude) helps me write the code. I design and test it, and I understand every line.
- Every query and database upgrade is tested on both SQLite and Postgres, and an upgrade is saved whole or not at all.
- End-to-end tests drive the cards in Chromium, and in the Home Assistant app on an Android emulator.
- CI fails if the integration tests cover less than 90% of the code.
Status and install
Metron is at 0.5.1 and in early development: everything above works, but expect changes. It needs Home Assistant 2025.3 or later.
If you track food or weight today, I’d love to hear what Metron would need before you’d switch.