This repository can be installed into home assistant and allow you to install a docker image with brother ql web.
Add-on documentation: https://developers.home-assistant.io/docs/add-ons
This repository uses a fork of brother ql web by FriedrichFroebel/brother_ql_web
Add the following code to configuration.yaml
in your home assistant config folder.
rest_command:
label_printer_print:
url: 'http://homeassistant.local:8013/api/print/text?text={{ text }}&font_size={{ font_size }}&font_family=DejaVu%20Serif%20(Book)&label_size={{ label_size }}'
method: GET
content_type: 'application/json; charset=utf-8'
Then you can add scripts like the following. It prints todays date to the label
print_todays_date_on_label_maker:
alias: 'Print: Print todays date on label maker'
sequence:
- action: rest_command.label_printer_print
metadata: {}
data:
text: '{{ now().strftime(''%d-%m-%y %H:%M:%S'') }}'
label_size: '17x87'
font_size: '100'
Example of button card
show_name: true
show_icon: true
type: button
name: Print label
tap_action:
action: perform-action
perform_action: script.print_todays_date_on_label_maker
icon: mdi:calendar
hold_action:
action: none
grid_options:
columns: 6
rows: 2