Sun.sun alternative

I actually liked the sun.sun sensor, to see when it’s down, but also to see the predictions when clicked on in. Especially when I’m in another time region. And it would be nice to automate this when I will get more familiar with HASS in the fture.

But for now I would like to see a few things a bit diffrently. I Like how the official sun.sun sensor is changing color (“on” for above horizon and “off” for below).

But I would also like to have change the icon with it.

I’ve found this piece of yaml in official HASS documentation for this:

- platform: template
  sensors:
    day_night:
      friendly_name: "Day / Night"
      value_template: >-
        {% if is_state('sun.sun', 'above_horizon') %}
          Day
        {% else %}
          Night
        {% endif %}
      icon_template: >-
        {% if is_state('sun.sun', 'above_horizon') %}
          mdi:weather-sunny
        {% else %}
          mdi:weather-night
        {% endif %}

But then it does not change color annymore. I’m also missing the sun.sun sensor information when clicked on it now (the daily prediction).
I’ve tried to look around to achief this on google and other HASS topics. There’s a lot of color related information to be found. But I can’t seem to get it working within this template setup.

So in short: I would like to have the color set to yellow when the sun is above the horizon, and get the sun.sun sensor information when clicked on it.

Is this somehow possible?