Troubleshoot a AttributeError: 'NoneType' object has

Oct 03 10:02:21 home-assistant hass[20480]: AttributeError: ‘NoneType’ object has no attribute ‘service_id’.

How can I troubleshoot this error and find where it comes from.

The easiest is probably to use Notepad++ and do a “Find in Files” (Ctrl + Shift + F).
Search in your HA install directory, set a filter of *.yaml and search for service_id:
Find in Files

You are referring to service_id somewhere in the incorrect way

Thanks for the update and help. I run a MAC and did a

find . -name '*.yaml' -exec grep -H 'service_id:' {} \;
pi@home-assistant:/home/homeassistant/.homeassistant $

but the result was negativ, nothing. That’s why I ask

I recall this one vaguely… Do you have any template that no longer return values?

Hmmm nevermind.

Do you have an automation / condition / value template with shine sort of comparison? Any chance the comparison fails because the value is not yet populated? If so add “| int” after the value so that it returns 0 instead of none.