Invalid config for [automation]: expected float for dictionary value @ data['condition'][1]['below']. Got None
expected float for dictionary value @ data['trigger'][0]['below']. Got None. (See /config/configuration.yaml, line 151)
It is reporting that it expected to get a numeric value for below in condition and below in trigger but it did not get one. That’s because you entered a template and assumed below supports templates. However, the documentation does not indicate below, or above, support templates.
Change the initial test {% if false %} to {% if true %} and observe how Jinja2 interprets {{true}} as a binary value (True and False). Put the initial test back to {% if false %}.
Remove the surrounding “{{ }}” from {{true}} and {{false}} and observe how the result changes from True and False (Jinja2 interprets them as binary values) to true and false (Jinja2 interprets them as strings).
Remove the entire else section and notice how if the test is for false there will be no result produced.