Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.yeelight.device Namespace Reference

Classes

class  YeelightDevice
 

Functions

str _async_unique_name (dict capabilities)
 
str async_format_id (str|None id_)
 
str async_format_model (str model)
 
str async_format_model_id (str model, str|None id_)
 
def update_needs_bg_power_workaround (data)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

Support for Xiaomi Yeelight WiFi color bulb.

Function Documentation

◆ _async_unique_name()

str homeassistant.components.yeelight.device._async_unique_name ( dict  capabilities)
private
Generate name from capabilities.

Definition at line 47 of file device.py.

◆ async_format_id()

str homeassistant.components.yeelight.device.async_format_id ( str | None  id_)
Generate a more human readable id.

Definition at line 35 of file device.py.

◆ async_format_model()

str homeassistant.components.yeelight.device.async_format_model ( str  model)
Generate a more human readable model.

Definition at line 29 of file device.py.

◆ async_format_model_id()

str homeassistant.components.yeelight.device.async_format_model_id ( str  model,
str | None  id_ 
)
Generate a more human readable name.

Definition at line 41 of file device.py.

◆ update_needs_bg_power_workaround()

def homeassistant.components.yeelight.device.update_needs_bg_power_workaround (   data)
Check if a push update needs the bg_power workaround.

Some devices will push the incorrect state for bg_power.

To work around this any time we are pushed an update
with bg_power, we force poll state which will be correct.

Definition at line 53 of file device.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.yeelight.device._LOGGER = logging.getLogger(__name__)
private

Definition at line 25 of file device.py.