Trying to check the config results in the following error message:
Invalid config for [automation]: not a valid value for dictionary value @ data[‘condition’][0][‘condition’]. Got None. (See /config/configuration.yaml, line 201). Please check the docs at Automation - Home Assistant
and since the automations are all in the automation.yaml file I guess the error is in there.
Now what does the error message mean, really? Is there a
condition:
condition:
missing?
Is there a better means to troubleshoot this than commenting out all automations until the error goes away? yamllint doesn’t show any syntactical errors in automations.yaml.
Found it. The value_template: '{{ states.sensor.temperature_158d00022cc550 < 20 }}' was the offending line. It now reads:
condition:
# only if outside temp is less than 20°C
condition: numeric_state
entity_id: sensor.temperature_158d00022cc550
value_template: '{{ states.sensor.temperature_158d00022cc550 }}'
below: 20