---
title: "Sun2"
description: "Sun2 is a Marketplace integration for Home Assistant. It has 1.5k installs sharing analytics, works locally and was last updated January 23, 2026."
canonical: "https://vulpo.app/integrations/marketplace/pnbruckner-ha-sun2"
url: "https://vulpo.app/integrations/marketplace/pnbruckner-ha-sun2.md"
last-updated: "2026-10-22"
version: "1.4"
---

# Sun2

> Sun2 is a Marketplace integration for Home Assistant. It has 1.5k installs sharing analytics, works locally and was last updated January 23, 2026.

Sun2 is a custom integration that creates sensors for sun-related events at one or more locations. It adds sensors for events such as dawn, dusk, daylight, night, azimuth and elevation, plus binary sensors that switch on when the sun's elevation is above a chosen threshold. Each location has its own latitude, longitude and time zone, and defaults to the Home Assistant location if none is given. Observer elevation can be set above ground level, or an obstruction such as a mountain can be described for the sunrise side, the sunset side, or both. Actions can reload the YAML configuration, read a location's options and update them. It runs locally and is set up through the UI or YAML, after being added as a custom repository.

Automatic summary of the README and code of pnbruckner/ha-sun2. Something wrong, or are you the maintainer and want your own text here? [Get in touch](https://vulpo.app/contact)

Not in the Marketplace catalog. Add <https://github.com/pnbruckner/ha-sun2> as a custom repository in the Marketplace.

## Supports

- **Works locally**: Talks to your devices on your own network. No vendor cloud in between.
- **From the Marketplace**: Installed through the Marketplace, formerly HACS.

## Setting it up

Add its repository to the Marketplace as a custom repository and install it, then restart Home Assistant and add it under Settings, Devices and services.

### Elevation at Time Sensor Options

- **input\_datetime entity ID**
- **Name**

### Elevation at Time Sensor Options

- **Time**
- **Name**

### Elevation Binary Sensor Options

- **Use horizon as elevation**

### Elevation Binary Sensor Options

- **Elevation**
- **Name**

### Location Options

- **Location**
- **Time zone**: See the "TZ identifier" column at https://en.wikipedia.org/wiki/List\_of\_tz\_database\_time\_zones\#List.

### Location Name

- **Name**

### Observer Elevation

- **Sunrise & dawn are affected by an obstruction**
- **Sunset & dusk are affected by an obstruction**

### Observer Elevation Values

- **Elevation**: Your elevation above GROUND level (not SEA level).
- **Distance to sunrise obstruction**
- **Relative height of sunrise obstruction**: Height relative to yourself, which may be negative if obstruction is below you.
- **Distance to sunset obstruction**
- **Relative height of sunset obstruction**: Height relative to yourself, which may be negative if obstruction is below you.

### After setup

- **input\_datetime entity ID**
- **Name**
- **Time**
- **Name**
- **Use horizon as elevation**
- **Elevation**
- **Name**
- **Location**
- **Time zone**: See the "TZ identifier" column at https://en.wikipedia.org/wiki/List\_of\_tz\_database\_time\_zones\#List.
- **Sunrise & dawn are affected by an obstruction**
- **Sunset & dusk are affected by an obstruction**
- **Elevation**: Your elevation above GROUND level (not SEA level).
- **Distance to sunrise obstruction**
- **Relative height of sunrise obstruction**: Height relative to yourself, which may be negative if obstruction is below you.
- **Distance to sunset obstruction**
- **Relative height of sunset obstruction**: Height relative to yourself, which may be negative if obstruction is below you.
- **Select entities to remove**

Texts from the code of [pnbruckner/ha-sun2](https://github.com/pnbruckner/ha-sun2).

## Entities

- **Sensors**: Astronomical daylight, Astronomical dawn, Astronomical dusk, Astronomical night, Azimuth, Civil daylight, Civil night, Daylight, Dawn, deCONZ daylight, Dusk, Elevation, and 14 more

## Actions

- **Get location**: Get location options.
  Fields: Location
- **Reload**: Reloads Sun2 from the YAML-configuration.
- **Update location**: Update location options. NOTE: If any of Latitude, Longitude & Time zone are specified, they must all be specified.
  Fields: Location, Latitude, Longitude, Time zone, Observer elevation

## From the README

> Creates sensors that provide information about various sun related events.
>
> Follow the installation instructions below. Then add one or more locations with desired sensors either via YAML, the UI or both.

From the README of [pnbruckner/ha-sun2](https://github.com/pnbruckner/ha-sun2#readme), [The Unlicense](https://spdx.org/licenses/Unlicense.html). Shortened.

## At a glance

- Kind: Marketplace integration
- Category: [Sensors](https://vulpo.app/integrations/category/sensors.md)
- Number: 1.5k installs sharing analytics; 309 GitHub stars
- Connection: Works locally
- Upkeep: No update in 6 to 18 months
- Needs: Added as a custom repository in the Marketplace
- Latest version: 3.4.3, last updated January 23, 2026
- Domain: `sun2`
- Source: <https://github.com/pnbruckner/ha-sun2>
- Issues: <https://github.com/pnbruckner/ha-sun2/issues>

In Vulpo: Chart card, Apple Watch

Independent directory, made by the developer of Vulpo. Not affiliated with Home Assistant or the Open Home Foundation. [About these numbers](https://vulpo.app/integrations/about)

Last updated 2026-10-22. Source: https://vulpo.app/integrations/marketplace/pnbruckner-ha-sun2

---

- HTML version of this page: https://vulpo.app/integrations/marketplace/pnbruckner-ha-sun2
- Site index for agents: https://vulpo.app/llms.txt
- Everything in one document: https://vulpo.app/llms-full.txt
- All pages: https://vulpo.app/sitemap.xml
