How detect Invalid config: History, recorder, and logbook could not be set up in automation?

Like this: