QR Code


The qrcode image processing integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] enables QR code recognition from cameras.

To get this running, please install zbar-tools (Ubuntu 18.04)

Configuration

To enable this, add the following lines to your configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI.[Learn more] file. After changing the configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI.[Learn more] file, restart Home Assistant to apply the changes.

# Example configuration.yaml entry
image_processing:
  - platform: qrcode
    source:
      - entity_id: camera.door

Configuration Variables

source list Required

List of image sources.

entity_id string Required

A camera entity id to get picture from.

name string (Optional)

This parameter allows you to override the name of your image_processing entity.

Basic example

An automation using this integration could look like this:

automation:
  - alias: "Catch QR code and arm the alarm system"
    trigger:
      - platform: state
        entity_id: image_processing.qr_front_door
        to: ARM_QR_CODE_VALUE
    action:
      - service: alarm_control_panel.alarm_arm_away
        target:
          entity_id: alarm_control_panel.home_alarm
        data:
          code: MY_ALARM_CODE