I can’t start automation in the current version - 0.117.1. This error appears in the log. Do you know what it could be?
Logger: homeassistant.components.automation.nahravani
Source: helpers/service.py:140
Integration: Automatizace (documentation, issues)
First occurred: 19:30:35 (6 occurrences)
Last logged: 19:36:11
- Nahrávání: Error executing script. Unexpected error for call_service at pos 1: Error rendering data template: UndefinedError: ‘entity_id’ is undefined
- While executing automation automation.nahravani
Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/template.py”, line 421, in async_render render_result = compiled.render(kwargs) File “/usr/local/lib/python3.8/site-packages/jinja2/environment.py”, line 1090, in render self.environment.handle_exception() File “/usr/local/lib/python3.8/site-packages/jinja2/environment.py”, line 832, in handle_exception reraise(*rewrite_traceback_stack(source=source)) File “/usr/local/lib/python3.8/site-packages/jinja2/_compat.py”, line 28, in reraise raise value.with_traceback(tb) File “”, line 1, in top-level template code File “/usr/local/lib/python3.8/site-packages/jinja2/sandbox.py”, line 407, in getattr value = getattr(obj, attribute) jinja2.exceptions.UndefinedError: ‘entity_id’ is undefined The above exception was the direct cause of the following exception: Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 138, in async_prepare_call_from_config service_data.update(template.render_complex(config[conf], variables)) File “/usr/src/homeassistant/homeassistant/helpers/template.py”, line 99, in render_complex return { File “/usr/src/homeassistant/homeassistant/helpers/template.py”, line 100, in render_complex(key, variables): render_complex(item, variables) File “/usr/src/homeassistant/homeassistant/helpers/template.py”, line 104, in render_complex return value.async_render(variables) File “/usr/src/homeassistant/homeassistant/helpers/template.py”, line 423, in async_render raise TemplateError(err) from err homeassistant.exceptions.TemplateError: UndefinedError: ‘entity_id’ is undefined The above exception was the direct cause of the following exception: Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 253, in _async_step await getattr( File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 432, in _async_call_service_step domain, service, service_data = async_prepare_call_from_config( File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 140, in async_prepare_call_from_config raise HomeAssistantError(f"Error rendering data template: {ex}") from ex homeassistant.exceptions.HomeAssistantError: Error rendering data template: UndefinedError: ‘entity_id’ is undefined
thanks
R.