错误日志:
Testing configuration at /config
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up mqtt
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up introduction
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up http
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain mqtt took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up recorder
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain introduction took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up system_log
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up api
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up history
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up frontend
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up discovery
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up sun
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up sensor
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up group
2018-02-04 01:37:21 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: Entity ID sonoff_3 is an invalid entity id for dictionary value @ data['action'][0]['entity_id']. Got None. (See /config/configuration.yaml, line 155). Please check the docs at https://home-assistant.io/components/automation/
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up xiaomi_aqara
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up map
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up updater
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.1 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.1 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.1 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain xiaomi_aqara took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up tts
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up config
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up logbook
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up conversation
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up script
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up light
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setting up automation
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.0 seconds.
2018-02-04 01:37:21 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.0 seconds.
Failed config
automation:
- action: [source /config/automations.yaml:21]
entity_id: Sonoff_3
service: switch.toggle
alias: double_button
initial_state: True
trigger: [source /config/automations.yaml:15]
platform: event
event_data: [source /config/automations.yaml:18]
click_type: double
entity_id: binary_sensor.switch_158d0001bf2271
event_type: click