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

Classes

class  AmbilightEffect
 
class  PhilipsTVLightEntity
 

Functions

def _average_pixels (data)
 
def _get_cache_keys (PhilipsTV device)
 
def _get_settings (AmbilightCurrentConfiguration style)
 
None async_setup_entry (HomeAssistant hass, PhilipsTVConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

string EFFECT_AUTO = "Auto"
 
string EFFECT_EXPERT = "Expert"
 
dictionary EFFECT_EXPERT_STYLES = {"FOLLOW_AUDIO", "FOLLOW_COLOR", "Lounge light"}
 
string EFFECT_MODE = "Mode"
 
string EFFECT_PARTITION = ": "
 

Detailed Description

Component to integrate ambilight for TVs exposing the Joint Space API.

Function Documentation

◆ _average_pixels()

def homeassistant.components.philips_js.light._average_pixels (   data)
private
Calculate an average color over all ambilight pixels.

Definition at line 114 of file light.py.

◆ _get_cache_keys()

def homeassistant.components.philips_js.light._get_cache_keys ( PhilipsTV  device)
private
Return a cache keys to avoid always updating.

Definition at line 104 of file light.py.

◆ _get_settings()

def homeassistant.components.philips_js.light._get_settings ( AmbilightCurrentConfiguration  style)
private
Extract the color settings data from a style.

Definition at line 45 of file light.py.

◆ async_setup_entry()

None homeassistant.components.philips_js.light.async_setup_entry ( HomeAssistant  hass,
PhilipsTVConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up the configuration entry.

Definition at line 35 of file light.py.

Variable Documentation

◆ EFFECT_AUTO

string homeassistant.components.philips_js.light.EFFECT_AUTO = "Auto"

Definition at line 31 of file light.py.

◆ EFFECT_EXPERT

string homeassistant.components.philips_js.light.EFFECT_EXPERT = "Expert"

Definition at line 30 of file light.py.

◆ EFFECT_EXPERT_STYLES

dictionary homeassistant.components.philips_js.light.EFFECT_EXPERT_STYLES = {"FOLLOW_AUDIO", "FOLLOW_COLOR", "Lounge light"}

Definition at line 32 of file light.py.

◆ EFFECT_MODE

string homeassistant.components.philips_js.light.EFFECT_MODE = "Mode"

Definition at line 29 of file light.py.

◆ EFFECT_PARTITION

string homeassistant.components.philips_js.light.EFFECT_PARTITION = ": "

Definition at line 28 of file light.py.