Missing SUN in HA

Hi,
I am newbie in HA and I have HA installed in VirtualBox and I missing SUN (sunrise and sunset) sensor.
I searched for it on google but no help :frowning:

I have
Home Assistant OS 7.4
core-2022.2.8
supervisor-2022.01.1

Does anyone know what it is?

Thak you
Karel

The Sun integration can not be set up via the user interface.

You have to add it to your configuration.yaml file as per:

It’s also in default_config. So if you have that in your configuration.yaml file you do not need to add the sun integration.

Hi,
I have the
sun:
in the config file, but it doesnot works. It has start working after adding to config file

homeassistant:
latitude:
longitude:
elevation:

Now it works :slight_smile:

Thank you :slight_smile: