Closed pilot1981 closed 10 months ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (image_processing
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
image_processing documentation image_processing source (message by IssueLinks)
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
Hi, I'm using image process to process images of my license plates.
to use it with automation I created these sensors templates:
template:
targhe auto
the result is:
some time I receive a gray/empty image
I have this errors in HA logs:
`Logger: homeassistant.helpers.event Source: helpers/template.py:570 First occurred: 7 ottobre 2023 alle ore 12:42:46 (57 occurrences) Last logged: 12:41:06
Error while processing template: Template<template=({% for package in states.sensor.seventeentrack_packages_in_transit.attributes.packages %} >- {{ package.friendly_name }} ({{ package.tracking_number }}): {{ package.info_text }} {% endfor %}) renders=236> Error while processing template: Template<template=({% for package in states.sensor.seventeentrack_packages_in_transit.attributes.packages %} >- {{ package.friendly_name }} ({{ package.tracking_number }}): {{ package.info_text }} {% endfor %}) renders=240> Error while processing template: Template<template=({% for package in states.sensor.seventeentrack_packages_in_transit.attributes.packages %} >- {{ package.friendly_name }} ({{ package.tracking_number }}): {{ package.info_text }} {% endfor %}) renders=244> Error while processing template: Template<template=({% for package in states.sensor.seventeentrack_packages_in_transit.attributes.packages %} >- {{ package.friendly_name }} ({{ package.tracking_number }}): {{ package.info_text }} {% endfor %}) renders=248> Error while processing template: Template<template=({% for package in states.sensor.seventeentrack_packages_in_transit.attributes.packages %} >- {{ package.friendly_name }} ({{ package.tracking_number }}): {{ package.info_text }} {% endfor %}) renders=252> Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 568, in async_render render_result = _render_with_context(self.template, compiled, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2198, in _render_with_context return template.render(kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render self.environment.handle_exception() File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception raise rewrite_traceback_stack(source=source) File "", line 1, in top-level template code jinja2.exceptions.UndefinedError: 'homeassistant.util.read_only_dict.ReadOnlyDict object' has no attribute 'packages'
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 694, in async_render_to_info render_info._result = self.async_render( ^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 570, in async_render raise TemplateError(err) from err homeassistant.exceptions.TemplateError: UndefinedError: 'homeassistant.util.read_only_dict.ReadOnlyDict object' has no attribute 'packages' `
What version of Home Assistant Core has the issue?
core-2023.9.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
image processing
Link to integration documentation on our website
https://www.home-assistant.io/integrations/image_processing/
Diagnostics information
home-assistant_2023-10-08T10-52-59.103Z.log
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response