Help needed: How to track down error in template condition

Where could I find out, what is causing below message in the logs?

It’s shown as a warning, log level is set to info.

Logger: homeassistant.helpers.script
Quelle: helpers/script.py:859
Erstmals aufgetreten: 13. November 2024 um 16:30:00 (30 Vorkommnisse)
Zuletzt protokolliert: 08:00:00

Error in 'if[1]' evaluation: In 'template' condition: TypeError: unhashable type: 'list'

How do I know which template helper is causing the issue?

Look for an “if” statement in an action that has two conditions. The second one will be a template condition.

other than that it’s hard to know.

Thanks
ok. you think the error happens in an action?

I assumed it’s in the template of a helper. and I am wondering which of the dozens of helpers is causing the issue …

I guess it could be if you have an ‘if’ statement in a helper template.

The only way to know that is to look thru them and see which ones might have an ‘if’ statement in them.

if all else fails then you need to disable/remove them one at a time until the error goes away.

I have no idea how complicated that will be if they are created via the UI. I create all of mine in YAML and it’s as easy as commenting them out and reloading the yaml. I don’t know if there is an equally simple way of doing that for UI created items. My guess is that there likely isn’t.

Or again it could be in an automation too.

1 Like