Hi, I come from Vera Edge with very simple automation scene configuration, but after the device stopped working I’m now on Hass.io and Rpi.
My first automation looks like this…
automation:
alias: Light on
trigger:
platform: time
at: ‘19:30:00’
action:
service: switch.turn_on
entity_id:
- switch.roomxyz
But in HA it keeps saying “Invalid config”. What could possibly be wrong with this configuration?
Edit: When I save here at the forum all indentation in the text is gone?
automation:
alias: Light on
trigger:
platform: time
at: '19:30:00'
action:
service: switch.turn_on
entity_id: switch.roomxyz
Error log:
ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [automation] is an invalid option for [automation]. Check: automation->automation. (See /config/configuration.yaml, line 112). Please check the docs at https://home-assistant.io/components/automation/
You’re including that file in your main configuration.yaml? If so, don’t add automation: to the start of the file you’re including, since it’s already in the main configuration file…
Thanks Tinkerer, [quote=“Tinkerer, post:4, topic:24627, full:true”]
You’re including that file in your main configuration.yaml? If so, don’t add automation: to the start of the file you’re including, since it’s already in the main configuration file…
[/quote]