A small inventory for Home Assistant that answers one question: which box is it in?
Made for workshop parts and tools. It is deliberately small: location → cabinet → box → item, a fast search, and NFC tags on the boxes. No photos, prices, barcodes or warranty tracking.
Status: early pre-release (0.x). The data format has a migration path, but please export your inventory before updating.
- Own page in the sidebar, built for the phone first, in your Home Assistant theme. English and German, following your profile language.
- Location → cabinet → box → item. The location is a free text on the cabinet, so two "Cabinet 2" in the basement and the study stay apart.
- Fast entry: type a name, press Enter, type the next one. Quantity and unit are
optional (
40pcs,0.5kg,2rolls); units are suggested from the ones you already use. Item names are suggested as you type, so you do not create duplicates. - Search that ignores case and accents and matches parts of words:
m4 20findsM4x20 cylinder head. Hits showLocation › Cabinet › Boxand open the box. - A fixed address per box (
/better-inventory/box/<id>), which survives a reload and works ashomeassistant://navigate/better-inventory/box/<id>in the Companion app. - NFC with native Home Assistant tags. Assign a tag to a box, either by picking it from the tag list or by scanning it ("use the next scanned tag"). Scanning the tag sends a notification to the phone that scanned it; tapping it opens the box. A tag can be moved to another box at any time without rewriting the chip.
- Services for automations and Assist, including a
searchthat returns an answer. - One sensor with the total number of items. No entity per box or item.
- JSON export and import (merge or replace, with a preview first), CSV export.
- Data lives in Home Assistant's own storage and is part of every Home Assistant backup.
Requires Home Assistant 2026.11 or newer.
- In Home Assistant open Settings → Marketplace and add
https://github.com/Timmes123/ha-better-inventoryas a custom repository (category Integration). - Install Better Inventory and restart Home Assistant.
- Settings → Devices & services → Add integration → Better Inventory.
The page then appears in the sidebar as Inventory.
Better Inventory uses the tags Home Assistant already knows. Write a tag with the Companion app (Settings → Companion app → NFC), open a box, choose ⋮ → NFC tag and either pick the tag or use Use the next scanned tag and hold the phone to it within 60 seconds.
What happens on a scan:
| Platform | Steps |
|---|---|
| iOS | Tap the system banner "NFC tag". The app opens and jumps to the box. |
| Android | The scan fires directly and the app jumps to the box if it is open. |
Only the Companion app of the user who scanned reacts; a desktop browser never jumps. If no app page confirms the jump within a few seconds, a notification with the box link is sent to the scanning device instead, and tapping it opens the box. Scans from readers without a Companion app (for example ESPHome) are ignored.
iOS always asks for the tap on its banner; that is an operating system rule.
| Service | Fields | Purpose |
|---|---|---|
better_inventory.add_item |
box, name, quantity, unit, note |
Add an item to a box |
better_inventory.move_item |
item, box |
Move an item to another box |
better_inventory.remove_item |
item |
Delete an item |
better_inventory.search |
query, limit |
Find items and boxes, returns a response |
box accepts the box ID, its short label or its name; item accepts the item ID or its
name. If a name is not unique the service fails with the candidates instead of guessing.
script:
where_is:
fields:
thing:
selector:
text:
sequence:
- action: better_inventory.search
data:
query: "{{ thing }}"
response_variable: found
- stop: Done
response_variable: foundThe response contains matches (item, quantity, unit, box, label, cabinet, location and
the path of the box), count, and text, a ready-made sentence such as
Cable ties 200 mm (100 pcs): Basement, Cabinet 2, Box Cable ties (S2-B08).
⋮ → Export (JSON) on the overview saves the whole inventory. Import (JSON) always shows a preview first:
- Merge adds unknown entries and overwrites known ones (matched by ID). Nothing is deleted.
- Replace everything swaps the whole inventory for the file. Admins only.
The CSV export has one line per item, separated by semicolons.
QR codes, barcodes, label printing, photos, attachments, purchase data, prices, warranty, low-stock tracking, lending, inspection dates, a link to Home Assistant areas, and user permissions beyond "signed in may edit".
pip install -r requirements_test.txt
pytestThe tests need Linux or macOS, as Home Assistant itself does not run on Windows. SPEC.md (German) is the design document.