Skip to content

Templates

A template is a saved label with blanks. You fill them in on the panel, on the dashboard card, through brAIn or from an automation, and it prints on the label it was made for.

The Templates tab: Moving box, Pantry jar and Freezer bag cards, with Pantry jar open on the right, its Contents and Link boxes filled in, Copies, Print, Edit design and Delete, and a preview showing Basmati rice, Filled 2026-11-27 and a QR code

Make a template

  1. On the Quick or Design tab, write {{contents}} where the blank goes. A blank works in a text, a barcode’s data or a QR code’s data.
  2. Press Save as template and give it a name. Automations and the card use that name.
  3. Open the Templates tab. The template has a box called contents.
You write You get
{{anything}} A box with that name on the form
{{date}}, {{time}}, {{datetime}} Filled in at print time, as 2026-11-27, 14:05 and 2026-11-27 14:05
One number and no blanks, such as Box 3 A field called number

The form always matches the label. Delete a placeholder and its box goes away. Two different numbers on one label (Box 3 of 12) are left alone, so write {{field}} for the one you mean.

Open it on the Templates tab, fill in the boxes, set Copies and press Print. The preview updates as you type. With only one template saved, the tab opens straight into it.

While a box is empty, a note under the preview names it, and Print is refused until you fill it in. Edit design opens the label in the designer, and Delete removes the template.

The Moving box template open on the Templates tab with From set to 1 and To set to 25, the line Prints 1–25, 25 labels, and a preview reading Box 1

A numbered template shows From and To. Enter 1 and 25, and the panel says Prints 1–25, 25 labels before anything prints. Leave To empty to print one label.

A run of more than 10 labels asks you to confirm. History shows the run as one row.

action: bruh_print.print_template
data:
template: Freezer bag
fields:
contents: "{{ states('input_text.leftovers') }}"
copies: 2
Situation What happens
A field is empty The print is refused, with the missing field named
You send a field the template does not have It prints, and the answer carries a note naming that field and the ones the template takes
A numbered template, no number sent It prints the number it was saved with. fields: {number: 29} prints Box 29.
The name’s capitals differ It still matches. Template names are not case-sensitive.
The template’s label is not in the printer The print is refused, naming both stocks

You never name a roll. The template remembers its label, and BRUH Print knows which roll holds it.

  • The dashboard card can be a form for one template (mode: template) or a button per saved template (show_templates: true).
  • brAIn reads the templates and their fields before it prints. “Print three freezer-bag labels for bolognese” uses the template that exists.

The History tab: rows for Spare keys with 2 prints, a Moving box run of 5 labels with Print all 5 again, Pantry jar, Chili from the Freezer bag template, Spare batteries with Print these 2 again, and Attic, each with a thumbnail, the date, the roll and Edit

Every print lands on the History tab with a thumbnail, the date, the count and the roll.

To do this Do this
Print it again Press the button on its row. It says how many it will print: Print this again, Print these 2 again or Print all 5 again.
Change it first Edit opens the label in the designer
Reprint from an automation bruh_print.reprint, with an entry or with none for the most recent
Empty the list Clear the history

Repeat prints of one label fold into a single row (2 prints, last Nov 27). A numbered run keeps its own row.