Sun elevation sensor

Since the Legacy binary sensor should not be used anymore it works like this now:

template:
  - sensor:
      - name: "Sonnenstand"
        unit_of_measurement: "°"
        state: >
          {{ state_attr('sun.sun', 'elevation') }}
2 Likes