Home Assistant Unofficial Reference 2024.12.1
sun.py File Reference

Go to the source code of this file.

Namespaces

 homeassistant.helpers.sun
 

Functions

datetime.datetime|None homeassistant.helpers.sun.get_astral_event_date (HomeAssistant hass, str event, datetime.date|datetime.datetime|None date=None)
 
datetime.datetime homeassistant.helpers.sun.get_astral_event_next (HomeAssistant hass, str event, datetime.datetime|None utc_point_in_time=None, datetime.timedelta|None offset=None)
 
tuple[astral.location.Location, astral.Elevation] homeassistant.helpers.sun.get_astral_location (HomeAssistant hass)
 
datetime.datetime homeassistant.helpers.sun.get_location_astral_event_next (astral.location.Location location, astral.Elevation elevation, str event, datetime.datetime|None utc_point_in_time=None, datetime.timedelta|None offset=None)
 
bool homeassistant.helpers.sun.is_up (HomeAssistant hass, datetime.datetime|None utc_point_in_time=None)
 

Variables

 homeassistant.helpers.sun._AstralSunEventCallable
 
tuple homeassistant.helpers.sun.ELEVATION_AGNOSTIC_EVENTS = ("noon", "midnight")