A feeder that counts, and a litter box that weighs
We have a white cat, about two years old, who eats from an automatic feeder. For a while that was the whole system. The feeder ran its own schedule from its own app, and anyone in the house could walk past and press the button on top. Nobody knew how much he actually ate in a day, me included.
The hardware, since people always ask: the feeder is an Aqara Pet Feeder C1, a dry-food hopper that dispenses in small fixed portions, and the litter box is a Litter-Robot EVO, a self-cleaning box with a built-in scale. Neither needed anything extra to talk to Home Assistant.
This post covers two pieces built about a month apart. The feeder went into Home Assistant in early October. The weight tracking came at the start of November, once the new litter box had been in long enough to be useful.

Getting the feeder out of its app
The feeder is an Aqara C1, and it was paired to Aqara’s own hub. I looked at the obvious ways to get it into Home Assistant from there and none of them worked. Matter has no device type for a pet feeder. HomeKit would have meant taking the whole hub out of Apple Home, and all I’d have got back was a bare “feed” switch.
So I removed it from the Aqara app and paired it straight to Home Assistant’s own Zigbee stick. It was the first device on that radio. Through ZHA it shows up properly: a feed button, a portions-today counter, a problem sensor, a child lock, and a setting for how many servings each press dispenses. I set the feeder’s own mode to Manual, so Home Assistant is the only thing that decides when he eats.
The serving size was wrong
Before choosing amounts I wanted to know what one “serving” weighs. The app says 8 grams. I dispensed five servings onto a kitchen scale and got 19.8 g, so a serving is about 4 grams, half what the app claims.
That would have mattered. My first plan was three servings a meal, which on the app’s numbers is a reasonable 24 g. In real grams it’s 12 g, about 50 calories, which is a hungry cat.
With a real serving size, the rest is arithmetic. He weighed 11.8 lb. A common rule of thumb is about 20 calories per pound of ideal weight, so roughly 235 a day. His food is 403 calories a cup and a cup weighs 99 g, which is 4.07 calories a gram. That comes to about 58 g a day. I rounded to 15 servings, 60 g, around 245 calories.

Three meals and a cap
It started as two meals, 7 AM and 7 PM. Within the day it became three: 7 AM, 1 PM and 7 PM, five servings each. Cats naturally eat lots of small meals, smaller meals mean less wolfing it down and bringing it back up, and with an automatic feeder a third meal is free.
The button was the real problem. Most evenings my wife or our daughter presses it to coax him out of the bedroom. That’s a perfectly good use of a treat, but it’s food, and nothing was counting it.
Now everything gets counted. Every dispense, whether it’s a scheduled meal, the
physical button, or a tap in the app, goes into a daily total and a logbook line
saying when, how many servings, how many grams, and where it came from. Before
each meal the schedule works out min(servings per meal, 15 − servings already
given). If some of the day’s food has already gone out, the meal is reduced.
If it has all gone out, the meal is skipped. Either way the logbook records
why, and my phone gets a notification. A treat before 7 PM therefore comes out of
dinner automatically. A treat after dinner still counts toward that day, but by
then nothing is left to take it from.
Off-schedule feeds also send me a quiet notification. When the treat comes from the app or the dashboard, the log records which person pressed it. The physical button can’t tell who pressed it, so those show up as “feeder button”.
The feeder doesn’t get trusted either. After every meal Home Assistant checks that the feeder’s portion count actually went up. If it didn’t, or the feeder reports a jam or an empty hopper, I get a time-sensitive alert. A missed meal is the one failure I really don’t want to find out about at bedtime.
The chart that blamed the wrong day
A week in, the 14-day “grams per day” chart showed 40 g scheduled and 20 g from the app at 6:50 in the morning, before anything had been fed. Every bar was carrying over the day before.
The chart used each day’s maximum of a counter that resets at midnight. Home Assistant’s daily maximum includes the value it holds at 00:00, just before the reset, so every day carried yesterday’s total. The fix was to mark those sensors as running totals and chart the daily change instead, so a reset to zero starts a fresh count rather than ending the old one. I cleared the bad history, and the chart has been correct since.
Then the litter box started weighing him
In mid-October we replaced the litter box with a Litter-Robot EVO, which has a scale in the base and reports the cat’s weight every time he uses it, four or five times a day. Home Assistant already had an integration for it.

The raw numbers need cleaning up. Mixed in with real readings are 0, 2.96, 3.33, 7.9 and 9.88 lb. Those are partial step-ins, like a front half on the scale or a paw on the step. So there are two derived sensors:
- Cat weight accepts anything from 10.5 to 15 lb. Anything outside that range is ignored, and the sensor keeps its last good value.
- Cat weight, 7-day is the median of the raw feed over a week. A median ignores junk readings in a way an average can’t. One 2.96 would drag an average down, but it barely moves a median.
The box had been running since about October 14, but I only built the sensors on November 1. So I backfilled their long-term history from the raw sensor’s clean hourly statistics, about 395 hours of them, plus the 11.8 lb from the kitchen scale on October 3. The chart starts where the box did.

What the weight said
At the start of November the line had climbed from 11.8 to about 12.2–12.3 lb. On the old setup I’d have cut his food right away. Instead I decided to watch it for two more weeks first, and the panel shows why that was the right call: it came back down on its own. The weekly median is 11.78 lb today, essentially where he started, on the same 60 g a day.
So the servings stay where they are. If they ever do need to change, it’s one number on the settings card, and the cap, the schedule and the chart all follow from it.
The feeder was the easy half. Any feeder can drop food on a timer. What I didn’t have was any way to check whether the amount was right. I couldn’t have told you how much food was going out, or what it was doing to him. Counting every serving, including the treats, gave me the first number, and the litter box gave me the second. With both, changing his food is a decision I can make from evidence.