Can I rename "sun" to something else? [solved]

I can’t seem to find a way to rename the “sun” component that tracks solar zenith angle. I’ve tried “friendly_name: Solar angle” and also tried to implement it under…

homeassistant:
  customize:
    sensor.yr_symbol:
        friendly_name: Weather
    sun:
        friendly_name: Solar angle

… without any luck (not sure what code/label to give it). I may be writing my code wrong or missing something obvious.

Has anyone had any luck with this?

Nevermind, I figured it out! It’s called sun.sun:

homeassistant:
  customize:
    sensor.yr_symbol:
        friendly_name: Weather
    sun.sun:
        friendly_name: Solar angle

You can get the entity-names by clicking the States-Symbol (< >) on your Home Assistant Page for the next naming-issues :slight_smile:

1 Like