Nothing append in the abacus mode. the duration change a little but i have this error and the pump is always in action…
Enregistreur: homeassistant.helpers.event
Source: helpers/template.py:575
S'est produit pour la première fois: 17:32:35 (2 occurrences)
Dernier enregistrement: 17:32:35
Error while processing template: Template<template=(| | | |---|---:| | **Last auto filtration started at** : | *{{ as_timestamp(state_attr('automation.pool_filtration_cycle_start', 'last_triggered'))|timestamp_custom('%a, %B %-d, %H:%M', True) }}* | | **filtration ran today**:| *{{states('sensor.pompe_piscine_on_today') }}* hours | {% if is_state("switch.smartswitch_02_l3", "on") -%} | **Auto filtration will stop at**: | *{{(as_timestamp(now()+ timedelta( hours = states('sensor.auto_cycle_duration_abacus')|float(1) - states('sensor.pompe_piscine_on_today')|float(1)|float(1))))| timestamp_custom("%H:%M:%S")}}* | {%- else -%} | **Auto filtration will stop at**: |N/A| {%- endif %}) renders=194>
Error while processing template: Template<template=(| | | |---|---:| | **Last auto filtration started at** : | *{{ as_timestamp(state_attr('automation.pool_filtration_cycle_start', 'last_triggered'))|timestamp_custom('%a, %B %-d, %H:%M', True) }}* | | **filtration ran today**:| *{{states('sensor.pompe_piscine_on_today') }}* hours | {% if is_state("switch.smartswitch_02_l3", "on") -%} | **Auto filtration will stop at**: | *{{(as_timestamp(now()+ timedelta( hours = states('sensor.auto_cycle_duration_abacus')|float(1) - states('sensor.pompe_piscine_on_today')|float(1)|float(1))))| timestamp_custom("%H:%M:%S")}}* | {%- else -%} | **Auto filtration will stop at**: |N/A| {%- endif %}) renders=198>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1863, in forgiving_as_timestamp
return dt_util.as_timestamp(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/dt.py", line 132, in as_timestamp
raise ValueError("not a valid date/time.")
ValueError: not a valid date/time.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 573, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2364, in _render_with_context
return template.render(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 3, in top-level template code
File "/usr/local/lib/python3.12/site-packages/jinja2/sandbox.py", line 393, in call
return __context.call(__obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1866, in forgiving_as_timestamp
raise_no_default("as_timestamp", value)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1668, in raise_no_default
raise ValueError(
ValueError: Template error: as_timestamp got invalid input 'None' when rendering template '| | |
|---|---:|
| **Last auto filtration started at** : | *{{ as_timestamp(state_attr('automation.pool_filtration_cycle_start', 'last_triggered'))|timestamp_custom('%a, %B %-d, %H:%M', True) }}* |
| **filtration ran today**:| *{{states('sensor.pompe_piscine_on_today') }}* hours |
{% if is_state("switch.smartswitch_02_l3", "on") -%} | **Auto filtration will stop at**: | *{{(as_timestamp(now()+ timedelta( hours = states('sensor.auto_cycle_duration_abacus')|float(1) - states('sensor.pompe_piscine_on_today')|float(1)|float(1))))| timestamp_custom("%H:%M:%S")}}* | {%- else -%} | **Auto filtration will stop at**: |N/A| {%- endif %}' but no default was specified
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 699, in async_render_to_info
render_info._result = self.async_render(
^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 575, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: as_timestamp got invalid input 'None' when rendering template '| | |
|---|---:|
| **Last auto filtration started at** : | *{{ as_timestamp(state_attr('automation.pool_filtration_cycle_start', 'last_triggered'))|timestamp_custom('%a, %B %-d, %H:%M', True) }}* |
| **filtration ran today**:| *{{states('sensor.pompe_piscine_on_today') }}* hours |
{% if is_state("switch.smartswitch_02_l3", "on") -%} | **Auto filtration will stop at**: | *{{(as_timestamp(now()+ timedelta( hours = states('sensor.auto_cycle_duration_abacus')|float(1) - states('sensor.pompe_piscine_on_today')|float(1)|float(1))))| timestamp_custom("%H:%M:%S")}}* | {%- else -%} | **Auto filtration will stop at**: |N/A| {%- endif %}' but no default was specified