QR Code qrcode image processing integration enables recognition from cameras

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

It’s hard to read when it’s not formatted correctly using the </> button.
But it seems you are saving an image and then try to read it just after?
I would suggest adding a delay in between

Hi,
I was editing the post and then saw you replied.

I added a delay but I believe the problem has to do with the image_processing.qr_ because it returns unknown.

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
  - delay:
      hours: 0
      minutes: 0
      seconds: 5
      milliseconds: 0
    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

By the looks of it you have tried to edit the yaml manually and failed.
Your delay is in the middle of the camera snapshot action.

Edit:

I was able to get image_processing.qr to provide the qr payload. I will continue to work on the yaml.