I am running a newly installed HA in a vm that was installed with automated community script and the proxmox vm appears to have a homeassistant and many other docker containers running. I am trying to get the QR integration to work using link QR Code - Home Assistant
I am assuming that link and documentation is old because there are discussions on github that HA docker may already include zbar-tools. I have not yet tested if dependencies are missing but the system logs show no errors.
At the end of configuration.yaml I added
image_processing:
- platform: qrcode
source:
- entity_id: camera.ipcameraname
I created an automation
alias: QR Code Scan and Notify
description: Sends a notification when a QR code is detected and shows its content
triggers:
- entity_id: image_processing.qr_ipcameraname
from: unknown
to: null
trigger: state
conditions: []
actions:
- target:
entity_id: camera.ipcameraname
data:
filename: /config/www/snapshots/ipcameraname_qr_image.jpg
action: camera.snapshot
- data:
title: QR Code Detected
message: >
QR Code content: {{ states('image_processing.qr_ipcameraname') }}
action: notify.persistent_notification
mode: single
When I manually run this action the camera snapshot saves to file successfully.
Unfortunately the state always only shows “unknown” and the attribute shows only “friendly_name: QR ipcameraname”. The QR code is properly appearing in focus to the camera and I am checking developer tools states image_processing.qr_ipcameraname which always shows state “unknown” and the attribute is always “friendly_name: QR ipcameraname”.
HA core logs show no errors
INFO (MainThread) [homeassistant.components.automation.qrcodescantest] Initialized trigger QR Code Scan Test
INFO (MainThread) [homeassistant.components.automation.qrcodescantest] QR Code Scan Test: Running automation actions
INFO (MainThread) [homeassistant.components.automation.qrcodescantest] QR Code Scan Test: Executing step call service
What am I missing or doing wrong? What steps do I need to perform to debug?
Thanks