This repository contains configuration files and dashboards for managing
a freezer ("Gefriertruhe") in Home Assistant.
It includes: - Complete configuration (gefriertruhe.yaml) - A Lovelace
dashboard example (dashboard.yaml) - An experimental web barcode
scanner (scanner_20.html) as an add-on
Copy the content of gefriertruhe.yaml into your
Home Assistant configuration.yaml, or split it into your existing
structure.
This will install: - Helpers (input_number, input_text,
input_select) - Script to add freezer entries and increase IDs -
(Optional) Webhook automation for barcode scans
Restart Home Assistant after saving changes.
The supplied dashboard.yaml contains a Lovelace
grid layout with: - To-do list for freezer items - Helper controls -
Last scanned barcode
configuration.yaml.
Import this file via the Dashboard Editor or use YAML mode with a
separate file.
The file scanner_20.html provides a QR/Barcode
scanner that runs in the browser.
It is experimental and meant as an add-on:
- Uses your device (i.e. handy) camera to scan codes
- Can send results directly to Home Assistant via Webhook
- Includes optional product lookup using Open Food Facts
- Beware: only webhook is tested ....
- also browsers may only allow camera usage when using https://
-
Copy
scanner_20.htmlinto your Home Assistantwwwfolder:config/www/scanner.html -
Access it from your browser via:
https://<your-ha-url>:8123/local/scanner.htmlor using the buttons already placed in the dashboard (check the link if it's apropriate for you environment).
-
Configure the webhook endpoint inside the UI.
(By default, it expects thebarcode_scan_pwebhook from the Gefriertruhe config.)
- The scanner is experimental, some devices/browsers may not support all features (e.g. torch). - tried with Laptop, Moto 50 Handy, Samsung Flip Handy. - is not running on some fires with missing auto focus
- You can extend the food list in
input_select.speisenwith your own entries. - The
todo.gefriertruhe_2entity in the config must match your own To-do list integration. https://www.home-assistant.io/integrations/local_todo/
