As a relative newbie and non-programmer I hammered out this value_template for a binary_sensor. It works well but looks like a big run-on sentence. Is there a way to format it in an easier to read indented stack? Thanks.
sensors:
day_night:
value_template: "{{ ((state_attr('sun.sun', 'elevation') | float > 0) and (state_attr('sun.sun', 'rising') == true)) or ((state_attr('sun.sun', 'elevation') | float > -5) and (state_attr('sun.sun', 'rising') == false)) }}"
PS, the intent is to turn on a helper at 0° sun angle in the morning and turn it off at -5° at night.