I suffered a corrupt microSD card in my RasberryPi so had to start afresh again. I thought I had enough notes and copy of setup files to get things running smoothly but I am getting the following error in my log and can’t work out why:
Invalid config for [automation]: [triger] is an invalid option for [automation]. Check: automation->triger. (See /home/homeassistant/.homeassistant/automation.yaml:6).
I have tried reading the documentation and feel that my script is ok and I am using the trigger option correctly.
I assume the “:6” bit means that it is my 6th automation in which case it will be the following:
- alias: "Welcome Home"
hide_entity: True
trigger:
platform: state
entity_id: group.all_devices
from: 'not_home'
to: 'home'
condition:
condition: state
entity_id: sun.sun
state: below_horizon
action:
service: script.all_lights_on
Essentially the script should turn the lights on when one of us comes home and if it is dark.
If the :6 does not mean the 6th automation, could someone help me identify which one it is or how I can narrow it down; there are 13 automatons in total in the script.
Ha! Don’t I feel stupid - I was staring at that line for ages trying to work out what was wrong.
The error was on line 81 though so and in ‘automation’ 8 so don’t know what the 6 meant?
Anyhow, thank you and I shall spend more time reading my code in future (I read somewhere that reading it backwards can help. Maybe I should try that!)
Yesterday i updated HA from 0.45.1 to 0.50.2 and i had some errors in my configuration:
One of the errors (automation one) is more or less the same than yours:
here the log:
2017-08-22 23:25:23 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [after] is an invalid option for [automation]. Check: automation->trigger->1->after. (See /config/configuration.yaml, line 102). Please check the docs at https://home-assistant.io/components/automation/
How did you find exacly the error? you were looking one by one each automation?