I’m following the basic tutorial for a trigger event. I just added the following to my configuration.yaml and restarted HA.
The logs show an error message. What am I doing wrong? There is nothing beyond this in my configuration file.
automation:
- alias: Home Assistant is starting
trigger:
platform: event
event_type: homeassistant_start
Logs:
16-12-02 15:05:27 homeassistant.bootstrap: Invalid config for [automation]: required key not provided @ data[‘action’]. Got None. (See /home/hass/.homeassistant/configuration.yaml:57). Please check the docs at https://home-assistant.io/components/automation/
Got it to work, but do feel that the documentation is a bit lacking.
It would be good if it was mentioned that action is a mandatory key for a trigger. Same goes for the Zwave configuration page. https://home-assistant.io/getting-started/z-wave/ Also note that most examples here don’t have the action key.
What I ended up doing was creating a logbook entry as per example configuration below. Unless there is another way to log an event in a standard way?
This