Automation error with question marks

Hi all,

In my notifcations, I see following error code:

The following integrations and platforms could not be set up:

Please check your config and logs.

When I look into my logs I see:

Logger: homeassistant.config
Source: config.py:454
First occurred: 17:58:59 (2 occurrences)
Last logged: 17:58:59

Invalid config for [automation]: required key not provided @ data[‘trigger’][1][‘platform’]. Got None. (See ?, line ?).

I have no clue where to look. Anyone know where to look since the log doesn’t mention the location of the error

Thanks in advance !

Kr,

Bart

How do you create automations? Through the UI? If so, it’s probably in the file automations.yaml in your configuration directory.

The error points to a bad trigger in your automations.yaml. the #1 indicates the second trigger I believe in one of your automations [I believe it starts as zero so one would be the second trigger). You’ll have to go through al your automations in that file and look at your triggers to see where something looks missing.

In addition to being the second trigger of one of your automations the error telling you the automation is missing or cannot resolve the trigger platform: for some reason.

HI @tom_l , @calisro, @pnbruckner ,

Thanks a lot for your replies ! I found the error. It was the conditions OR statement that was missing a ‘conditions:’ line in the code, twice :slight_smile:

Thanks again for your swift replies & help !

Kr,

Bart