Update trigger.markdown for consistency with automation_sun.ma… (#11573)

Looks like a similar change was made to `automation_sun.markdown` in #10532, attributed to #10315.

As someone trying to add an automation for the sun's elevation, the inconsistency was confusing. I don't know if other parts of this page should be updated in a similar way.
This commit is contained in:
Dan Jackson 2019-12-30 12:35:19 -08:00 committed by Franck Nijhof
parent 4f88bf1ef5
commit 25d9e68286

View File

@ -216,7 +216,7 @@ automation:
trigger:
platform: numeric_state
entity_id: sun.sun
value_template: "{{ state.attributes.elevation }}"
value_template: "{{ state_attr('sun.sun', 'elevation') }}"
# Can be a positive or negative number
below: -4.0
action: