Show sun elevation on dashboard

HI,
Im trying to do something that seems like it should be very simple.
I would like to display the sun elevation value on a dashboard.

I’ve looked at the following and took the idea to display this as way to understand how elevation works and how I can set up triggers and conditions that relate to sun.

I’ve tried simply adding an Entities card and using the sub entity, but I dont see how to select the elevation attribute there.

How should I do this?

Besides simply displaying it, there’s also this:

2 Likes
  - platform: template
    sensors:
      solar_angle:
        friendly_name: "Sun angle"
        unit_of_measurement: "degrees"
        value_template: "{{ state_attr('sun.sun', 'elevation') }}"

      sunrise:
        value_template: "{{ state_attr('sun.sun', 'next_rising') }}"

I used a template to turn the attributes into entities.


Looks like you can just install sun integration now and have all those attibutes as entities now without yaml.

1 Like

Screenshot 2024-08-02 214923

@wolf99

This is in the FAQ on how to do this and the link is directly in the blueprint. Click Here

Blacky :smiley:

The Sun integration is installed by default fr my installlation at least (home assistant green).
Your screenshot prompted me to go look at the entities in the integration though.
I saw that some of the sensors are disabled by default.
I’ve enabled them now and they show up as available to add to the entities card :smiley:

1 Like

Thanks - my problem was not how to add the entitiesto the card, it was that the entities were not shown as available to add. (I’ve since found this was because they were disabled by default).

1 Like