Easy way to update automations

Hello. I’ve skipped a few versions and now all of my automations aren’t working post-latest update and DB upgrade script.

Does anyone have an easy way to fix them? Like doing a search and replace or something?

Or, is there a good tutorial out there for using the editor? I tried authoring a new automation but something is going on with my syntax and it doesn’t seem to be as straight forward as automations used to be.

Thanks in advance!

I should add, the front end gives this error:

The following components and platforms could not be set up:
automation
Please check your config

And the log is filled with entries like this:

2017-08-29 16:57:23 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [state] is an invalid option for [automation]. Check: automation->trigger->0->state. (See /home/homeassistant/.homeassistant/configuration.yaml, line 242). Please check the docs at Automation - Home Assistant

line 242, from my configuration.yaml:

automation: !include automation.yaml

In your triggers change state to to and after to at. Check out https://home-assistant.io/blog/2017/07/29/release-50/#breaking-changes for explanation.

1 Like