Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.moon.sensor Namespace Reference

Classes

class  MoonSensorEntity
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

string STATE_FIRST_QUARTER = "first_quarter"
 
string STATE_FULL_MOON = "full_moon"
 
string STATE_LAST_QUARTER = "last_quarter"
 
string STATE_NEW_MOON = "new_moon"
 
string STATE_WANING_CRESCENT = "waning_crescent"
 
string STATE_WANING_GIBBOUS = "waning_gibbous"
 
string STATE_WAXING_CRESCENT = "waxing_crescent"
 
string STATE_WAXING_GIBBOUS = "waxing_gibbous"
 

Detailed Description

Support for tracking the moon phases.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.moon.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the platform from config_entry.

Definition at line 26 of file sensor.py.

Variable Documentation

◆ STATE_FIRST_QUARTER

string homeassistant.components.moon.sensor.STATE_FIRST_QUARTER = "first_quarter"

Definition at line 16 of file sensor.py.

◆ STATE_FULL_MOON

string homeassistant.components.moon.sensor.STATE_FULL_MOON = "full_moon"

Definition at line 17 of file sensor.py.

◆ STATE_LAST_QUARTER

string homeassistant.components.moon.sensor.STATE_LAST_QUARTER = "last_quarter"

Definition at line 18 of file sensor.py.

◆ STATE_NEW_MOON

string homeassistant.components.moon.sensor.STATE_NEW_MOON = "new_moon"

Definition at line 19 of file sensor.py.

◆ STATE_WANING_CRESCENT

string homeassistant.components.moon.sensor.STATE_WANING_CRESCENT = "waning_crescent"

Definition at line 20 of file sensor.py.

◆ STATE_WANING_GIBBOUS

string homeassistant.components.moon.sensor.STATE_WANING_GIBBOUS = "waning_gibbous"

Definition at line 21 of file sensor.py.

◆ STATE_WAXING_CRESCENT

string homeassistant.components.moon.sensor.STATE_WAXING_CRESCENT = "waxing_crescent"

Definition at line 22 of file sensor.py.

◆ STATE_WAXING_GIBBOUS

string homeassistant.components.moon.sensor.STATE_WAXING_GIBBOUS = "waxing_gibbous"

Definition at line 23 of file sensor.py.