Skip to content

Release v0.5.0

Choose a tag to compare

@github-actions github-actions released this 25 Feb 19:11
v0.5.0
54c2d1a

What's Changed

SQLite storage

Inventory data is now stored in SQLite (aiosqlite) instead of JSON files. Existing data is automatically migrated from the legacy JSON store on first load — no action required. The new dependency aiosqlite==0.22.1 is declared in manifest.json.

WebSocket API

A full WebSocket API enables real-time communication with frontend dashboards. Supported commands include listing/getting items, history queries, import/export, barcode operations, and consumption rates.

Consumption tracking & analytics

  • Every quantity change is recorded in a consumption_history table
  • New service get_item_consumption_rates returns daily/weekly usage rates, days until depletion, average restock interval, and spend rates
  • New HA events: simple_inventory_item_depleted, simple_inventory_item_restocked, simple_inventory_item_quantity_changed, simple_inventory_item_added, simple_inventory_item_removed

Barcode scanning

  • New scan_barcode service and WebSocket command — scan a barcode to automatically increment, decrement, or look up the matched item across all inventories
  • New lookup_by_barcode and lookup_barcode_product services
  • Items now have an optional price field recorded on history events and rolled up into inventory statistics (total_value)

Multiple barcode lookup providers

Product lookups now query multiple databases in parallel: Open Food Facts, Open Beauty Facts, and Open Pet Food Facts. Provider preference is configurable.

Bug fixes

  • Fixed item deletion failing in some cases
  • Fixed regression in quantity handling
  • Fixed decrement via barcode not resolving the correct item

Full changelog: v0.4.0...v0.5.0