@123 @basbrus
Adding @123 's recommended time only code caused a whole lot of errors in my other template sensors as well.
Home Assistant Core
2024-04-15 06:35:12.708 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ state_attr('weather.forecast_home_celsius_met', 'temperature') | float }}) renders=2>
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2218, in forgiving_float_filter
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 586, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2545, in _render_with_context
return template.render(**kwargs)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2221, in forgiving_float_filter
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1849, in raise_no_default
ValueError: Template error: float got invalid input 'None' when rendering template '{{ state_attr('weather.forecast_home_celsius_met', 'temperature') | float }}' but no default was specified
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 712, in async_render_to_info
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 588, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'None' when rendering template '{{ state_attr('weather.forecast_home_celsius_met', 'temperature') | float }}' but no default was specified
2024-04-15 06:35:12.725 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'None' when rendering template '{{ state_attr('weather.forecast_home_celsius_met', 'temperature') | float }}' but no default was specified') while processing template 'Template<template=({{ state_attr('weather.forecast_home_celsius_met', 'temperature') | float }}) renders=4>' for attribute '_temperature' in entity 'weather.forecast_home_celsius'
2024-04-15 06:35:12.730 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ states('sensor.jewish_calendar_upcoming_candle_lighting_3')|as_datetime - timedelta(minutes = 15) }}) renders=2>
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 586, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2545, in _render_with_context
return template.render(**kwargs)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 712, in async_render_to_info
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 588, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'
2024-04-15 06:35:12.738 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'') while processing template 'Template<template=({{ states('sensor.jewish_calendar_upcoming_candle_lighting_3')|as_datetime - timedelta(minutes = 15) }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.leave_for_mincha_friday'
2024-04-15 06:35:12.740 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ states('sensor.jewish_calendar_upcoming_candle_lighting_3')|as_datetime - timedelta(minutes = 45) }}) renders=2>
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 586, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2545, in _render_with_context
return template.render(**kwargs)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 712, in async_render_to_info
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 588, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'
2024-04-15 06:35:12.749 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'') while processing template 'Template<template=({{ states('sensor.jewish_calendar_upcoming_candle_lighting_3')|as_datetime - timedelta(minutes = 45) }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.before_shabbat_preparations'
2024-04-15 06:35:12.750 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ states('sensor.jewish_calendar_upcoming_candle_lighting_3')|as_datetime - timedelta(hours = 72) }}) renders=2>
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 586, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2545, in _render_with_context
return template.render(**kwargs)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 712, in async_render_to_info
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 588, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'
2024-04-15 06:35:12.759 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'') while processing template 'Template<template=({{ states('sensor.jewish_calendar_upcoming_candle_lighting_3')|as_datetime - timedelta(hours = 72) }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.to_do_list_shabbat_preparations'
2024-04-15 06:35:12.761 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ states('sensor.jewish_calendar_upcoming_candle_lighting_3')|as_datetime - timedelta(minutes = 5) }}) renders=2>
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 586, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2545, in _render_with_context
return template.render(**kwargs)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 712, in async_render_to_info
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 588, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'
2024-04-15 06:35:12.771 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'') while processing template 'Template<template=({{ states('sensor.jewish_calendar_upcoming_candle_lighting_3')|as_datetime - timedelta(minutes = 5) }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.early_shabbat_mode'
2024-04-15 06:35:12.772 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ states('sensor.jewish_calendar_upcoming_havdalah_3')|as_datetime - timedelta(minutes = 120) }}) renders=2>
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 586, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2545, in _render_with_context
return template.render(**kwargs)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 712, in async_render_to_info
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 588, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'
2024-04-15 06:35:12.781 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.timedelta'') while processing template 'Template<template=({{ states('sensor.jewish_calendar_upcoming_havdalah_3')|as_datetime - timedelta(minutes = 120) }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.havdalah_checker'
2024-04-15 06:35:12.783 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ states('sensor.jewish_calendar_upcoming_candle_lighting_3')|as_datetime + timedelta(hours = 23) + timedelta(minutes = 30)}}) renders=2>
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 586, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2545, in _render_with_context
return template.render(**kwargs)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 712, in async_render_to_info
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 588, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta'
2024-04-15 06:35:12.791 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta'') while processing template 'Template<template=({{ states('sensor.jewish_calendar_upcoming_candle_lighting_3')|as_datetime + timedelta(hours = 23) + timedelta(minutes = 30)}}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.leave_for_mincha_saturday'
2024-04-15 06:35:12.793 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ states('sensor.jewish_calendar_upcoming_candle_lighting_3')|as_datetime + timedelta(hours = 24) }}) renders=2>
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 586, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2545, in _render_with_context
return template.render(**kwargs)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 712, in async_render_to_info
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 588, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta'
2024-04-15 06:35:12.800 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta'') while processing template 'Template<template=({{ states('sensor.jewish_calendar_upcoming_candle_lighting_3')|as_datetime + timedelta(hours = 24) }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.mincha'
2024-04-15 06:35:12.806 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ states('sensor.jewish_calendar_upcoming_candle_lighting_3')|as_datetime > today_at('19:00:00') }}) renders=2>
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 586, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2545, in _render_with_context
return template.render(**kwargs)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 712, in async_render_to_info
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 588, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TypeError: '>' not supported between instances of 'NoneType' and 'datetime.datetime'
2024-04-15 06:35:12.815 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('TypeError: '>' not supported between instances of 'NoneType' and 'datetime.datetime'') while processing template 'Template<template=({{ states('sensor.jewish_calendar_upcoming_candle_lighting_3')|as_datetime > today_at('19:00:00') }}) renders=4>' for attribute '_state' in entity 'binary_sensor.next_candle_lighting_after_7pm'
2024-04-15 06:35:12.818 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=(= {% set time = as_timestamp(states('sensor.leave_for_mincha_friday'))|timestamp_custom('%-H:%M %p') %} {% set hour = time[:2]|int %} {{ '{:02d}:{} {}'.format(hour if hour == 12 else hour % 12, time[3:5], 'PM' if hour>11 else 'AM') }}) renders=2>
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2044, in forgiving_as_timestamp
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 586, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2545, in _render_with_context
return template.render(**kwargs)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2047, in forgiving_as_timestamp
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1849, in raise_no_default
ValueError: Template error: as_timestamp got invalid input 'unavailable' when rendering template '= {% set time = as_timestamp(states('sensor.leave_for_mincha_friday'))|timestamp_custom('%-H:%M %p') %} {% set hour = time[:2]|int %} {{ '{:02d}:{} {}'.format(hour if hour == 12 else hour % 12, time[3:5], 'PM' if hour>11 else 'AM') }}' but no default was specified
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 712, in async_render_to_info
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 588, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: as_timestamp got invalid input 'unavailable' when rendering template '= {% set time = as_timestamp(states('sensor.leave_for_mincha_friday'))|timestamp_custom('%-H:%M %p') %} {% set hour = time[:2]|int %} {{ '{:02d}:{} {}'.format(hour if hour == 12 else hour % 12, time[3:5], 'PM' if hour>11 else 'AM') }}' but no default was specified
2024-04-15 06:35:12.830 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: as_timestamp got invalid input 'unavailable' when rendering template '= {% set time = as_timestamp(states('sensor.leave_for_mincha_friday'))|timestamp_custom('%-H:%M %p') %} {% set hour = time[:2]|int %} {{ '{:02d}:{} {}'.format(hour if hour == 12 else hour % 12, time[3:5], 'PM' if hour>11 else 'AM') }}' but no default was specified') while processing template 'Template<template=(= {% set time = as_timestamp(states('sensor.leave_for_mincha_friday'))|timestamp_custom('%-H:%M %p') %} {% set hour = time[:2]|int %} {{ '{:02d}:{} {}'.format(hour if hour == 12 else hour % 12, time[3:5], 'PM' if hour>11 else 'AM') }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.leave_for_mincha_friday_am_pm'
2024-04-15 06:35:12.832 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=(= {% set time = as_timestamp(states('sensor.to_do_list_shabbat_preparations'))|timestamp_custom('%-H:%M %p') %} {% set hour = time[:2]|int %} {{ '{:02d}:{} {}'.format(hour if hour == 12 else hour % 12, time[3:5], 'PM' if hour>11 else 'AM') }}) renders=2>
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2044, in forgiving_as_timestamp
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 586, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2545, in _render_with_context
return template.render(**kwargs)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2047, in forgiving_as_timestamp
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1849, in raise_no_default
ValueError: Template error: as_timestamp got invalid input 'unavailable' when rendering template '= {% set time = as_timestamp(states('sensor.to_do_list_shabbat_preparations'))|timestamp_custom('%-H:%M %p') %} {% set hour = time[:2]|int %} {{ '{:02d}:{} {}'.format(hour if hour == 12 else hour % 12, time[3:5], 'PM' if hour>11 else 'AM') }}' but no default was specified
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 712, in async_render_to_info
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 588, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: as_timestamp got invalid input 'unavailable' when rendering template '= {% set time = as_timestamp(states('sensor.to_do_list_shabbat_preparations'))|timestamp_custom('%-H:%M %p') %} {% set hour = time[:2]|int %} {{ '{:02d}:{} {}'.format(hour if hour == 12 else hour % 12, time[3:5], 'PM' if hour>11 else 'AM') }}' but no default was specified
2024-04-15 06:35:12.842 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: as_timestamp got invalid input 'unavailable' when rendering template '= {% set time = as_timestamp(states('sensor.to_do_list_shabbat_preparations'))|timestamp_custom('%-H:%M %p') %} {% set hour = time[:2]|int %} {{ '{:02d}:{} {}'.format(hour if hour == 12 else hour % 12, time[3:5], 'PM' if hour>11 else 'AM') }}' but no default was specified') while processing template 'Template<template=(= {% set time = as_timestamp(states('sensor.to_do_list_shabbat_preparations'))|timestamp_custom('%-H:%M %p') %} {% set hour = time[:2]|int %} {{ '{:02d}:{} {}'.format(hour if hour == 12 else hour % 12, time[3:5], 'PM' if hour>11 else 'AM') }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.to_do_list_shabbat_preparations_am_pm'
2024-04-15 06:35:12.844 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=(= {% set time = as_timestamp(states('sensor.jewish_calendar_upcoming_candle_lighting_3'))|timestamp_custom('%-H:%M %p') %} {% set hour = time[:2]|int %} {{ '{:02d}:{} {}'.format(hour if hour == 12 else hour % 12, time[3:5], 'PM' if hour>11 else 'AM') }}) renders=2>
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2044, in forgiving_as_timestamp
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 586, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2545, in _render_with_context
return template.render(**kwargs)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2047, in forgiving_as_timestamp
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1849, in raise_no_default
ValueError: Template error: as_timestamp got invalid input 'unknown' when rendering template '= {% set time = as_timestamp(states('sensor.jewish_calendar_