Intel NUC shutdown due to this error

My Intel NUC has been shutting down recently giving this error:
Logger: homeassistant.helpers.event
Source: helpers/template.py:646
First occurred: 6:13:34 PM (2 occurrences)
Last logged: 6:13:35 PM

  • Error while processing template: Template<template=({{ ( states(‘sensor.disk_use’)|float + states(‘sensor.disk_free’)|float )| round (1) }}) renders=2>
  • Error while processing template: Template<template=({%- set up_time = as_timestamp(now())-as_timestamp(states(‘sensor.uptime’)) %} {%- macro phrase(name, divisor, mod=None) %} {%- set value = ((up_time // divisor) % (mod if mod else divisor)) | int %} {%- set end = ‘s’ if value > 1 else ‘’ %} {{- ‘{} {}{}’.format(value, name, end) if value | int > 0 else ‘’ }} {%- endmacro %} {%- set values = [ phrase(‘week’, 6060247), phrase(‘day’, 606024, 7), phrase(‘hour’, 6060, 24), phrase(‘min’, 60) ] | select(‘!=’,‘’) | list %} {{ values[:-1] | join(', ') ~ ’ and ’ ~ values[-1] if values | length > 1 else values | first }}) renders=2>
    Can anyone explain what is going wrong with the template (apparently) referred to in this log posting?
    Thanks for the help.

It is highly unlikely those template errors cause a shutdown, unless the disk is so defective that getting the disk use triggers some critical error.

1 Like

Hello Glenn Tracy,

This might help find the actual reason for shutdown if it’s not a worn out SDcard or somethng.

1 Like

Thanks for this your grace. I’ll check into tomorrow and see what I can come up with.