I’ve been struggling to get an automation where a camera detects motion during the night that will trigger some lights for 15 minutes.
This is the error I get:
Invalid config for [automation]: [condition] is an invalid option for [automation]. Check: automation->trigger->0->condition. (See /config/configuration.yaml, line 39). Please check the docs at https://home-assistant.io/components/automation/
Invalid config for [automation]: [timer] is an invalid option for [automation]. Check: automation->timer. (See /config/configuration.yaml, line 39). Please check the docs at https://home-assistant.io/components/automation/
Thanks! I got passed that error message onto another.
Invalid config for [automation]: expected dict for dictionary value @ data[‘action’][0][‘data’]. Got None
extra keys not allowed @ data[‘entity_id’]. Got None
not a valid value for dictionary value @ data[‘action’][0][‘entity_id’]. Got None.
Error loading /config/configuration.yaml: while parsing a block collection
in “/config/automations.yaml”, line 22, column 1
expected , but found ‘?’
in “/config/automations.yaml”, line 84, column 1
I suspect I screwed up something within the timer section?
Error loading /config/configuration.yaml: while parsing a block collection in “/config/automations.yaml”, line 22, column 1 expected <block end>, but found ‘?’ in “/config/automations.yaml”, line 81, column 1
What do you use to edit your code?
I’ve had some similar errors when using (not-well-configured) notepad++.
Try deleting the whitespace in those lines and adding single spaces manually to fix the identation.
Is that still needed when it is in the automations.yaml? I though I has an issue with a prior automation when I kept that. It started to work once removed.