Unknown error from log file

2018-06-28 20:14:01 ERROR (MainThread) [homeassistant.helpers.condition] Error during template condition: UndefinedError: 'None' has no attribute 'attributes'

Anyone have suggestions how to track this down? The log is pretty much entirely this with little time between entries.

Did you recently add an automation and/or script that uses a template condition? Might help to see what you’ve configured there to better pinpoint what the error is getting at. Running Check Config from the General Configuration screen might help point you in the right direction too (but it’s possible the config is valid and the template is just returning null).

Nothing new, I don’t know for how long those has been appearing in the log.

Check config is fine.

I suppose I can start commenting things out. That will take forever.

this is a templating error and it’s basically saying that HA cannot find attributes in an empty object.

So you need to look through all your templates in which you use states.<entity_id>.attributes.<attr> . One of those is giving you problems. And the problem is, that <entity_id> is bad or the component has not set it up yet.

typically you can prevent this in templates by adding an if statement wrapped around your object:

{% if states.device.domain %}
{{ states.device.domain.attributes.attr }}
{% else %}
Unknown
{% endif %}