Sunrise/Sunset Switch
The Sunrise/Sunset Switch (ASTRO) has the value of a boolean tag (true or false) and switches depending on the position of the sun at the location.
The times are calculated astronomically for each day and thus automatically adapt to the season. No source or brightness sensor is required.
Typical applications are outdoor lighting, roller shutters and shading.
Function parameters
| Location | Geographic position for which sunrise and sunset are calculated. |
| Reference |
Defines which position of the sun counts as day: Sunrise / sunset: The upper edge of the sun touches the horizon (default) Civil twilight: The sun is 6° below the horizon. Until this point, it is still bright enough outdoors without artificial light (recommended for lighting). Nautical twilight: The sun is 12° below the horizon. Astronomical twilight: The sun is 18° below the horizon. |
| Sunrise offset | Shifts the switching time in the morning. Negative values switch earlier, positive values later. |
| Sunset offset | Shifts the switching time in the evening. Negative values switch earlier, positive values later. |
| Output active |
During the day: The output is on from sunrise to sunset. At night: The output is on from sunset to sunrise, e.g. for lighting. |
Local conditions
The calculation assumes a free, level horizon, as is also common practice with weather services. If mountains, buildings or trees block the sun, it actually rises later and sets earlier at the location. This can be compensated for using the offsets. Example: If the sun only appears in the valley 20 minutes after the calculated sunrise, enter 20 minutes for Sunrise offset.
Notes
- The calculation is performed in UTC. Daylight saving time is therefore taken into account automatically.
- North of the Arctic Circle and south of the Antarctic Circle, the sun does not rise or set at all on some days (polar night or midnight sun). The output then remains in the corresponding state for the whole day.
- The calculated times may differ by a few seconds from other sources, as providers use slightly different calculation methods.