oje, User weiß halt nicht immer was er tut 
haben den Eintrag nach oben gezogen und auch eine Dupletten-Eintrag gefunden.
Aber HA bleibt hartnäckig und mag die Konfiguration weiterhin nicht
neue Datei sollte unter altem Link oben zur Verfügung stehen.
raise ValueError(
ValueError: Template error: int got invalid input 'unknown' when rendering template '{% set raw_time = states('sensor.time_period_1_start') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}' 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 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: ValueError: Template error: int got invalid input 'unknown' when rendering template '{% set raw_time = states('sensor.time_period_1_start') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}' but no default was specified
2023-12-24 11:20:09.391 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: int got invalid input 'unknown' when rendering template '{% set raw_time = states('sensor.time_period_1_start') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}' but no default was specified') while processing template 'Template<template=({% set raw_time = states('sensor.time_period_1_start') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.time_period_1_start_time'
2023-12-24 11:20:09.393 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% set raw_time = states('sensor.time_period_1_end') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}) renders=2>
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 2231, 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 "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1944, in forgiving_int_filter
raise_no_default("int", value)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1626, in raise_no_default
raise ValueError(
ValueError: Template error: int got invalid input 'unknown' when rendering template '{% set raw_time = states('sensor.time_period_1_end') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}' 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 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: ValueError: Template error: int got invalid input 'unknown' when rendering template '{% set raw_time = states('sensor.time_period_1_end') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}' but no default was specified
2023-12-24 11:20:09.405 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: int got invalid input 'unknown' when rendering template '{% set raw_time = states('sensor.time_period_1_end') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}' but no default was specified') while processing template 'Template<template=({% set raw_time = states('sensor.time_period_1_end') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.time_period_1_end_time'
2023-12-24 11:20:09.420 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% set raw_time = states('sensor.time_period_2_start') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}) renders=2>
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 2231, 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 "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1944, in forgiving_int_filter
raise_no_default("int", value)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1626, in raise_no_default
raise ValueError(
ValueError: Template error: int got invalid input 'unknown' when rendering template '{% set raw_time = states('sensor.time_period_2_start') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}' 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 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: ValueError: Template error: int got invalid input 'unknown' when rendering template '{% set raw_time = states('sensor.time_period_2_start') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}' but no default was specified
2023-12-24 11:20:09.431 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: int got invalid input 'unknown' when rendering template '{% set raw_time = states('sensor.time_period_2_start') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}' but no default was specified') while processing template 'Template<template=({% set raw_time = states('sensor.time_period_2_start') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.time_period_2_start_time'
2023-12-24 11:20:09.433 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% set raw_time = states('sensor.time_period_2_end') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}) renders=2>
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 2231, 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 "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1944, in forgiving_int_filter
raise_no_default("int", value)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1626, in raise_no_default
raise ValueError(
ValueError: Template error: int got invalid input 'unknown' when rendering template '{% set raw_time = states('sensor.time_period_2_end') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}' 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 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: ValueError: Template error: int got invalid input 'unknown' when rendering template '{% set raw_time = states('sensor.time_period_2_end') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}' but no default was specified
2023-12-24 11:20:09.445 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: int got invalid input 'unknown' when rendering template '{% set raw_time = states('sensor.time_period_2_end') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}' but no default was specified') while processing template 'Template<template=({% set raw_time = states('sensor.time_period_2_end') | int %} {% set hours = raw_time // 256 %} {% set minutes = raw_time - (hours * 256) %} {{ strptime(hours | string + ":" + minutes | string, '%H:%M').time() }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.time_period_2_end_time'