I’ve just added an automation and keep getting the below error when checking config but can’t figure out why. I’ve commented out each condition separately but still get the error:
Error Log:
Logger: homeassistant.config
Source: config.py:457
First occurred: 10:10:06 AM (14 occurrences)
Last logged: 10:27:17 AM
Invalid config for [automation]: expected str for dictionary value @ data['condition'][0]['conditions'][3]['state']. Got None. (See /config/configuration.yaml, line 67).
Invalid config for [automation]: [entity_id] is an invalid option for [automation]. Check: automation->entity_id. (See /config/configuration.yaml, line 67).
Automation:
- alias: Front Door Light Activate Expected
id: front_door_light_activate_expected
mode: single
trigger:
platform: time
entity_id:
at: '17:00:00'
condition:
condition: and
conditions:
- condition: state
entity_id: person.rachel
state: 'Work'
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- sun
- condition: numeric_state
entity_id: sun.sun
attribute: elevation
below: -0.4
- condition: state
entity_id: light.front_door_light
state: 'off'
action:
- service: script.front_door_illuminate