Demo
I filmed this at my desk, first scanning products off a demo sheet on my laptop and then a real carton of 冰红茶, before scanning the carton a second time and moving to a second pantry.
Try it
This is a copy of the tracker’s screen that runs the same steps. Tap SCAN NOW and pick a product from the shelf to hold up to the scanner, then set when it expires and save it. You can also swipe a card to the left to delete it, and scanning something that is already on the list opens it instead.
The pantry, 4 items, sorted by what expires first.
Tap a product to scan it
The barcodes on the shelf are the products’ real EAN-13 codes, so the tracker itself can scan them off this page.
What it does
The tracker sits on the fridge door, and every screen below is a capture from it.

Scan a product
When you tap SCAN NOW and hold a barcode about a hand’s width from the scan window, the screen glows red while the scanner looks for a code. The tracker then shows the product’s name, brand, size and photo, which mostly come from Open Food Facts, while products sold in mainland China come from GS1 China through a free account.
You set the expiry with the arrows under Days, Weeks and Months and then tap SAVE.

See what to eat first
The home screen lists the pantry with the soonest expiry at the top, and the count turns red within a day of the date and amber within a week.

Scan again to open it
Scanning something that is already on the list opens it instead of adding it twice, so you can check its date or delete it from there.

Swipe to delete
Swiping an item from right to left shows a red bin to tap, and swiping from left to right anywhere takes you back.

Keep several pantries
The Pantry button switches between pantries such as the fridge, the freezer or a cupboard, and it can create a new one too.

A control centre
The status button at the top right opens the beep switch, the screen brightness and the battery level, and its house icon turns green when the tracker is connected to Home Assistant.
Manage it from a browser
The same list is on a web page, where you can add items by barcode, rename them and organise pantries from a computer or a phone. A small badge beside each name shows where it came from, such as OFF for Open Food Facts or GS1 for GS1 China.

Reminders in Home Assistant
Each pantry appears in Home Assistant as its own device, with its item count, what is expiring soon and the next item to expire. Every scan, add and delete also fires an event, so you can build your own automations on top of it, such as a reminder on your phone the day before something expires.

How it works
The tracker only handles the screen and the scanner, while a Docker container on the home network does the rest: it stores the list, looks up barcodes, caches product photos and publishes everything to Home Assistant over MQTT. I split it this way because the ESP32-S3 can’t run the GS1 China sign-in, and because keeping one list on the server means the tracker, the web page and Home Assistant always agree.


Hardware
- CoreS3 SEruns the tracker, with the touch screen and WiFi.
- Module13.2 QRCodereads 1D and 2D barcodes and stacks under the CoreS3 SE.
- A battery basegoes underneath, so it runs on the fridge without a cable.

You also need a computer that stays on for the server, and Home Assistant if you want reminders.
Setting one up
Everything you need is free to download: the firmware flashes from your browser, and the server comes as a Docker bundle with its images included, so nothing has to be pulled from Docker Hub while it installs.
On the QRCode module, slide the interface toggle to UART and switch on number 2 in both the TX and RX DIP blocks, then stack the three parts.

Open Flashdeck in Chrome or Edge, choose Pantry, plug the CoreS3 SE in over USB-C and press Install, which flashes the firmware straight from the browser.
Download the server for the computer that will run it, either the bundle for Intel and AMD computers or the bundle for Apple Silicon Macs and a Raspberry Pi. Unpack it, set
TZindocker-compose.ymlto your time zone and run./install.shin that folder.Turn the tracker on, scan the QR code on its screen with your phone, and enter your WiFi and the server address, for example
http://192.168.1.20:8080.
Tap SCAN NOW and scan this code once, which switches the scan engine from USB to serial.

In Home Assistant, add the MQTT integration with the server’s IP address and port 1883.
For Chinese barcodes, add a free gds.org.cn account under Settings on the server’s web page and sign in once.
The GitHub repository has the full guide in its README, along with the firmware and server code if you would rather build them yourself.
Product names and photos on this page come from Open Food Facts (CC BY-SA) and GS1 China.





