i exend my configuration of my home assistant and run into a problem with an automation that works for month. I cannot find the error, so i neat further assistance.
Testing configuration at /home/hass/.homeassistant
17-01-02 21:01:17 ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [automation]: expected a dictionary @ data['condition'][0]. Got None
extra keys not allowed @ data['conditions']. Got None. (See /home/hass/.homeassistant/automation.yaml:6). Please check the docs at https://home-assistant.io/components/automation/
Failed config
automation:
- action: [source /home/hass/.homeassistant/automation.yaml:17]
entity_id: switch.steckdose_dioder_switch_5_0
service: homeassistant.turn_on
alias: Beleuchtung eine Stunde vor Sonnenuntergang
condition: [source /home/hass/.homeassistant/automation.yaml:13]
condition: state
entity_id: group.all_devices
state: home
hide_entity: True
trigger: [source /home/hass/.homeassistant/automation.yaml:9]
platform: sun
event: sunset
offset: -01:00:00
- action: [source /home/hass/.homeassistant/automation.yaml:30]
- data: [source /home/hass/.homeassistant/automation.yaml:33]
brightness: 150
rgb_color: [source /home/hass/.homeassistant/automation.yaml:34]
- 255
- 255
- 255
entity_id: light.wohnzimmer_bloom, light.wohnzimmer_bodenlampe, light.geschenk
service: homeassistant.turn_on
- entity_id: switch.steckdose_flur_switch_6_0
service: homeassistant.turn_on
The offset are in ‘’ but the config validation removed it. As i understand the “automation.yaml:6” says, that there is an error on line 6. So here the first lines of my file:
############################################################################
#
# Sonnenuntergang
#
############################################################################
- alias: Beleuchtung eine Stunde vor Sonnenuntergang
hide_entity: True
trigger:
platform: sun
event: sunset
offset: '-01:00:00'
condition:
condition: state
entity_id: group.all_devices
state: 'home'
action:
service: homeassistant.turn_on
entity_id: switch.steckdose_dioder_switch_5_0
The error message at config validation:
hass@hass:~/.homeassistant$ hass --script check_config
Testing configuration at /home/hass/.homeassistant
17-01-03 22:21:06 ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [automation]: expected a dictionary @ data['condition'][0]. Got None
extra keys not allowed @ data['conditions']. Got None. (See /home/hass/.homeassistant/automation.yaml:6). Please check the docs at https://home-assistant.io/components/automation/
Failed config