Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.everlights.light Namespace Reference

Classes

class  EverLightsLight
 

Functions

None async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 
tuple[int, int, int] color_int_to_rgb (int value)
 
int color_rgb_to_int (int red, int green, int blue)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 PLATFORM_SCHEMA
 
 SCAN_INTERVAL = timedelta(minutes=1)
 

Detailed Description

Support for EverLights lights.

Function Documentation

◆ async_setup_platform()

None homeassistant.components.everlights.light.async_setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the EverLights lights from configuration.yaml.

Definition at line 49 of file light.py.

◆ color_int_to_rgb()

tuple[int, int, int] homeassistant.components.everlights.light.color_int_to_rgb ( int  value)
Return an RGB tuple from an integer.

Definition at line 44 of file light.py.

◆ color_rgb_to_int()

int homeassistant.components.everlights.light.color_rgb_to_int ( int  red,
int  green,
int  blue 
)
Return a RGB color as an integer.

Definition at line 39 of file light.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.everlights.light._LOGGER = logging.getLogger(__name__)
private

Definition at line 30 of file light.py.

◆ PLATFORM_SCHEMA

homeassistant.components.everlights.light.PLATFORM_SCHEMA
Initial value:
1 = LIGHT_PLATFORM_SCHEMA.extend(
2  {vol.Required(CONF_HOSTS): vol.All(cv.ensure_list, [cv.string])}
3 )

Definition at line 34 of file light.py.

◆ SCAN_INTERVAL

homeassistant.components.everlights.light.SCAN_INTERVAL = timedelta(minutes=1)

Definition at line 32 of file light.py.