Constant Invalid Config notification

Hey guys!

Long-time listener, first-time caller.

I’m usually pretty good at fault finding and figuring things out to the best of my research/knowledge but this one is killing me.

I’m tearing out what’s left of my hair at the moment as for the past few months I’ve been regularly getting the dreaded Invalid Config notification constantly.

It references google translate a bunch so it’s possibly something there?

Below is the error log and would love some help!

Logger: homeassistant.config
Source: config.py:454 
First occurred: 4:38:59 PM (8 occurrences) 
Last logged: 5:48:51 PM

Invalid config for [automation]: Invalid trigger configuration. Got OrderedDict([('default_config', {}), ('tts', [OrderedDict([('platform', 'google_translate')])]), ('automation', [OrderedDict([('id', '1631070715945'), ('alias', 'Trigger - Studio Blind Open'), ('description', ''), ('trigger', [OrderedDict([('platform', 'state'), ('entity_id', 'input_button.trigger_studio_blind_open')])]), ('condition', []), ('action', [OrderedDict([('device_id', '76c557499e5f74dc5fdd00cf7b32617d'), ('domain', 'cover'), ('entity_id', 'cover.studio_blind'), ('type', 'set_positi.... (See /config/configuration.yaml, line 8).
Invalid config for [automation]: Invalid trigger configuration. Got OrderedDict([('default_config', {}), ('automation', [OrderedDict([('id', '1631070715945'), ('alias', 'Trigger - Studio Blind Open'), ('description', ''), ('trigger', [OrderedDict([('platform', 'state'), ('entity_id', 'input_button.trigger_studio_blind_open')])]), ('condition', []), ('action', [OrderedDict([('device_id', '76c557499e5f74dc5fdd00cf7b32617d'), ('domain', 'cover'), ('entity_id', 'cover.studio_blind'), ('type', 'set_position'), ('position', 99)])]), ('mode', 'single')]), OrderedDic.... (See /config/configuration.yaml, line 8).


Post the yaml of this automation

It says the trigger is invalid so lets see it.

Here we go,

It looks ok to me, but again not super seasoned in yaml

- id: '1631070751246'
  alias: Trigger - Studio Blind Closed
  description: ''
  trigger:
  - platform: state
    entity_id: input_button.trigger_studio_blinds_closed
  condition: []
  action:
  - device_id: 76c557499e5f74dc5fdd00cf7b32617d
    domain: cover
    entity_id: cover.studio_blind
    type: set_position
    position: 1
  mode: single

It looks to me more like the indentation in your configuration.yaml file is incorrect as HA is attempting to load the tts integration as an automation.

Ah, interesting. Does this look wrong?


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

frontend:
  themes: !include_dir_merge_named themes

Yeah that looks fine (I misread the error), so does your blinds automation.

It’s definitely a problem with one of your automation triggers but impossible to say which one.

If you have a lot of automations, try commenting out half of them and then running a config check. If it passes you know the bad config is in the commented part. If it does not pass you know it is in the uncommented half. Keep halving the part with the problem until you narrow it down. It should only take a few iterations.

Possibly the one with this ID, as it doesn’t match the blind one you already showed us.