Skip to content

About

Niimbot Label Printer Home Assistant Integration

Topics

Resources

Contributing

Stars

144 stars

Watchers

4 watching

Forks

Repository files navigation

Niimbot for Home Assistant

A Home Assistant custom integration that prints labels on Niimbot Bluetooth printers using imagespec layouts.

English | 한국어

Release HACS Default Home Assistant minimum Tests Validate License Downloads

B1 / B1 Pro B21 Pro D110
B1 / B1 Pro B21 Pro D110

Requirements

  • Home Assistant: 2025.1.0 or later.
  • Python: 3.13 or later for the existing runtime dependencies. Home Assistant 2025.1 installations using Python 3.12 need a compatible runtime.
  • Bluetooth: A connectable Home Assistant Bluetooth adapter or an active ESPHome Bluetooth proxy.
  • Device: A supported Niimbot BLE printer.

Installation

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

  1. Click the badge above to open the repository in Marketplace.
  2. If you need to add it yourself, go to Settings → Marketplace → Add from link and enter https://github.com/eigger/hass-niimbot. Connect GitHub if prompted.
  3. Select Install. Restart Home Assistant if prompted, then continue to Configuration.

Configuration

Turn the printer on, wake it and disconnect the NIIMBOT phone app. Select Settings → Devices & services → Add integration → Niimbot and choose a discovered printer.

See Bluetooth proxy setup, Niimbot setup and troubleshooting.

Quick start

Enable Fetch Label Info Online in the integration options to automatically use the loaded label's size after a successful lookup. Run this from Developer tools → Actions and replace the target with your printer:

action: niimbot.print
target:
  device_id: <your device>
data:
  payload:
    - type: text
      value: Hello World!
      x: 10
      y: 10
      size: 28

See payload guide and examples for more print and automation recipes. See Actions for parameters and imagespec's element reference for payload syntax.

AI agents / MCP

The integration registers a Niimbot LLM API, so an AI agent can see your label printers, design a label and preview it. Enable it in either place:

  • Assist: Settings > Voice assistants > your assistant > Control Home Assistant > add Niimbot.
  • MCP Server: add the Model Context Protocol Server integration and select Niimbot as an exposed API (the API-specific endpoint is /api/mcp/niimbot).

Tools: list_printers (printers, label size, supplies, battery, last error), get_payload_guide (the element reference for 1-bit black and white labels) and print_label.

  • Administrators only. Every tool checks that the caller is an active administrator.
  • Preview first. print_label renders only and returns the picture by default (preview=true). Nothing is printed until the agent repeats the call with preview=false.
  • Printing is opt-in per printer. Printing consumes labels and cannot be undone, so Allow AI printing (Settings > Devices & services > Niimbot > Configure) is off by default. While it is off an agent can still list printers and preview.
  • Limits. At most 3 copies per call, one print per printer every 30 s (one preview every 5 s). A label wider than the printhead is refused before the printer is contacted.
  • Untrusted payloads. What an agent writes is rendered in a resource-limited child process with a reduced element set (everything except plot), no local files and only public https images.

Important limitations

B1, B1 Pro, B2 Pro, B21 Pro and D110 are the representative verified models; other models and firmware may behave differently. See model settings and label sizing and the full device reference.

Online label lookup is optional and off by default. When enabled, only the label product barcode is sent to NIIMBOT's catalogue. If lookup fails, specify dimensions explicitly: the legacy 400×240 px fallback does not fit every roll. A reported BLE success does not verify physical print quality.

Documentation

Support

  • Issues: Report bugs or request features.
  • Discussions: Ask questions and share your experience.

Related Projects

  • imagespec: payload renderer and element reference
  • niimblue: Niimbot protocol implementation
  • Stash: inventory manager with Niimbot printing support

License

Released under the MIT License.

About

Niimbot Label Printer Home Assistant Integration

Topics

Resources

Contributing

Stars

144 stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages