Skip to content

Sun.Sun::elevation #38

Answered by dbuezas
ChrisKoh83 asked this question in Q&A
May 3, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Interesting, HomeAssistant only includes the "friendly_name" attribute in its response.

Here's the network tab in chrome:

This used to work in previous home assistant versions. And it is specific for the sun.sun entity. All other I have work perfectly.

The only solution I see at the moment is too add a template sensor to your configuration.yaml:

platform: template
    sensors:
      sun_sun_elevation:
        value_template: "{{state_attr(‘sun.sun’, ‘elevation’)}}"

I'd say this is a bug in home assistant.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ChrisKoh83
Comment options

Answer selected by dbuezas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants