Hey,
I get this error in the log :
Logger: homeassistant.helpers.event
Source: helpers/template/__init__.py:463
First occurred: 08:59:30 (9 occurrences)
Last logged: 10:49:39
Error while processing template: Template<template=({% set boiler = states.get('switch.boiler') %} {% if is_state('switch.boiler','off') and is_state('input_boolean.toggle_boiler_uit_wegens_capaciteitstarief','on') %} (Onderbroken) {% endif %} {% if boiler %} {% set local_time = boiler.last_changed.astimezone() %} {% if is_state('switch.boiler','on') %} Aan om {{ local_time.strftime('%H:%M') }} ({{ states('sensor.boiler_power') | replace('.',',') }} W) {% else %} {% set now_time = now().astimezone() %} {% if local_time.date() == now_time.date() %} Uit om {{ local_time.strftime('%H:%M') }} {% endif %} {% endif %} {% endif %}) renders=4>
Error while processing template: Template<template=({% set boiler = states.get('switch.boiler') %} {% if is_state('switch.boiler','off') and is_state('input_boolean.toggle_boiler_uit_wegens_capaciteitstarief','on') %} (Onderbroken) {% endif %} {% if boiler %} {% set local_time = boiler.last_changed.astimezone() %} {% if is_state('switch.boiler','on') %} Aan om {{ local_time.strftime('%H:%M') }} ({{ states('sensor.boiler_power') | replace('.',',') }} W) {% else %} {% set now_time = now().astimezone() %} {% if local_time.date() == now_time.date() %} Uit om {{ local_time.strftime('%H:%M') }} {% endif %} {% endif %} {% endif %}) renders=10>
Error while processing template: Template<template=({% set boiler = states.get('switch.boiler') %} {% if is_state('switch.boiler','off') and is_state('input_boolean.toggle_boiler_uit_wegens_capaciteitstarief','on') %} (Onderbroken) {% endif %} {% if boiler %} {% set local_time = boiler.last_changed.astimezone() %} {% if is_state('switch.boiler','on') %} Aan om {{ local_time.strftime('%H:%M') }} ({{ states('sensor.boiler_power') | replace('.',',') }} W) {% else %} {% set now_time = now().astimezone() %} {% if local_time.date() == now_time.date() %} Uit om {{ local_time.strftime('%H:%M') }} {% endif %} {% endif %} {% endif %}) renders=14>
Error while processing template: Template<template=({% set boiler = states.get('switch.boiler') %} {% if is_state('switch.boiler','off') and is_state('input_boolean.toggle_boiler_uit_wegens_capaciteitstarief','on') %} (Onderbroken) {% endif %} {% if boiler %} {% set local_time = boiler.last_changed.astimezone() %} {% if is_state('switch.boiler','on') %} Aan om {{ local_time.strftime('%H:%M') }} ({{ states('sensor.boiler_power') | replace('.',',') }} W) {% else %} {% set now_time = now().astimezone() %} {% if local_time.date() == now_time.date() %} Uit om {{ local_time.strftime('%H:%M') }} {% endif %} {% endif %} {% endif %}) renders=18>
Error while processing template: Template<template=({% set boiler = states.get('switch.boiler') %} {% if is_state('switch.boiler','off') and is_state('input_boolean.toggle_boiler_uit_wegens_capaciteitstarief','on') %} (Onderbroken) {% endif %} {% if boiler %} {% set local_time = boiler.last_changed.astimezone() %} {% if is_state('switch.boiler','on') %} Aan om {{ local_time.strftime('%H:%M') }} ({{ states('sensor.boiler_power') | replace('.',',') }} W) {% else %} {% set now_time = now().astimezone() %} {% if local_time.date() == now_time.date() %} Uit om {{ local_time.strftime('%H:%M') }} {% endif %} {% endif %} {% endif %}) renders=22>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template/__init__.py", line 461, in async_render
render_result = render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template/context.py", line 45, in render_with_context
return template.render(**kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/jinja2/environment.py", line 1295, in render
self.environment.handle_exception()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/jinja2/environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/local/lib/python3.14/site-packages/jinja2/sandbox.py", line 401, in call
return __context.call(__obj, *args, **kwargs)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template/__init__.py", line 825, in __getattr__
return _get_state_if_valid(self._hass, f"{self._domain}.{name}")
File "/usr/src/homeassistant/homeassistant/helpers/template/__init__.py", line 1054, in _get_state_if_valid
raise TemplateError(f"Invalid entity ID '{entity_id}'")
homeassistant.exceptions.TemplateError: Invalid entity ID 'get.__call__'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template/__init__.py", line 579, in async_render_to_info
render_info._result = self.async_render( # noqa: SLF001
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
variables, strict=strict, log_fn=log_fn, **kwargs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/template/__init__.py", line 463, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TemplateError: Invalid entity ID 'get.__call__'
Meanwhile I did change the code on my dashboard (secondary section) :
- type: custom:mushroom-template-card
primary: >-
{% if is_state('input_boolean.toggle_boiler_is_opgewarmd',
'on') %} Opgewarmd ! {% else %}
{% set tijd = states('input_datetime.tijdstip_boiler_starttijd') %}
{% set tijd_dt = tijd | as_datetime(default=None) %}
{% if tijd_dt and tijd_dt.date() == now().date() %}
Gepland om {{ tijd_dt | as_timestamp | timestamp_custom('%H:%M', True) }}
{% else %}
Nog niet gepland
{% endif %}
{% endif %}
secondary: >-
{% set boiler = states.switch.boiler %}
{% if is_state('switch.boiler','off') and
is_state('input_boolean.toggle_boiler_uit_wegens_capaciteitstarief','on')
%} (Onderbroken) {% endif %}
{% if boiler %} {% set local_time =
boiler.last_changed.astimezone() %}
{% if is_state('switch.boiler','on') %} Aan om {{
local_time.strftime('%H:%M') }} ({{
states('sensor.boiler_power') | replace('.',',') }} W) {% else
%} {% set now_time = now().astimezone() %} {% if
local_time.date() == now_time.date() %} Uit om {{
local_time.strftime('%H:%M') }} {% endif %} {% endif %}
{% endif %}
icon: mdi:power-plug
tap_action:
action: none
hold_action:
action: toggle
entity: switch.boiler
multiline_secondary: true
double_tap_action:
action: perform-action
perform_action: script.boiler_inschakeltijd_manueel_bepalen
target: {}
color: |-
{% if is_state('switch.boiler', 'on') %}
red
{% else %}
grey
{% endif %}
features_position: bottom
But even then the error won’t go away. I restarted home assistant, even restarted the server…nothing helps.
And yes I already did a search in raw configuration editor of my dashboard…even in studio code server.
Any idea ?