Don’t understand why my automation file is giving me so many problems… I also find it very difficult to find any documentation explaining proper syntax for declaring automations. The tutorials/examples seem to sometimes be deprecated and have invalid syntax. any advice on a good place to go with good up to date examples?
It was complaining about the “automation:” line stating that was an invalid keyword as well. But that is littered throughout the examples provided.
Currently the log file provides me with this error
2017-10-30 20:09:04 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [for] is an invalid option for [automation]. Check: automation->for. (See /home/homeassistant/.homeassistant/configuration.yaml, line 101). Please check the docs at https://home-assistant.io/components/automation/
This is what my automations.yaml file looks like… fairly simple.
#automation:
- alias: Humidity Alert
trigger:
- platform: numeric_state
entity_id: sensor.humidor_humidity
above: 38
below: 36
for:
minutes: 1
action:
service: ifttt.trigger
data: {"event": "Humidity_Alert", "value1": "sensor.humidor_humidity"}