When I restart my home assistant, after few weeks without change it, I have a error message in my logs :
Invalid config for [automation]: Unexpected value for condition: 'None'. Expected numeric_state, state, sun, template, time, zone, and, or, not, device @ data['condition'][0]['conditions'][0]. Got None. (See /config/configuration.yaml, line 144).
My issue is, in line 144, I put all my automation folder… And I don’t which automation failed. Do you have an idea to find it ?
Unfortunately no. All that error message tells you is that it is the first condition in one of your automations that is invalid. It looks like a pretty egregious error. You should be able to spot it.
I had a similar problem and my automations are in separate files, within a directory, so it was difficult to tell which automation in which file was the source of the problem. I removed files until I could isolate which file contained the defective automation.
LOL, in lieu of a better search technique, I would implement an error message that was more specific than just "Yo! Automation’s got a bad condition"
I’m OK with the “Rule of Halves” to isolate the culprit; it’s worked for me and isn’t too time-consuming or complicated to do (that’s not to say I enjoyed doing it, knowing my automations have names and why can’t the error message use them).