Invalid config The following integrations and platforms could not be set up: automation

So just restarted HA and I am getting the following error

image

Logger: homeassistant.config
Source: config.py:416
First occurred: 15:22:25 (7 occurrences)
Last logged: 15:34:25

Invalid config for [automation]: not a valid value for dictionary value @ data['action'][3]['entity_id']. Got None. (See /config/configuration.yaml, line 240).

line 240 of configuration.yaml is

### INCLUDE ##

group: !include groups.yaml

I am up to date Home Assistant 2021.2.3
supervisor-2021.02.11

I have not made any changes to my Automations or configuratio.yaml so do not understand what is going on?

Is it an error with the configuration.yaml or one of my automations as the log is unclear?

The 4th action of one of your automations is missing an entity_id for a service call.

Thanks Tom, that was it I had made a change to one pf my camera entities

was

camera.back_garden

I changed it in error to

camera.back_garden-substream

Should have been

camera.back_garden_substream

How did you get to that conclusion from this?

Invalid config for [automation]: not a valid value for dictionary value @ data['action'][3]['entity_id']. Got None. (See /config/configuration.yaml, line 240).

The part “See /config/configuration.yaml” confused me?

Regards,

This says there is something wrong with an automation:

Invalid config for [automation]

This says there is something wrong with the data in the 4th action (the index starts counting at 0, so [3] is the 4th one.

not a valid value for dictionary value @ data['action'][3]

And this says what’s wrong, a missing entity_id:

['entity_id']. Got None.

The line numbers can be misleading if you have split your config.

2 Likes

A post was split to a new topic: Help with Pyscript Error