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

Classes

class  TasmotaLight
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
float clamp (float value)
 
float scale_brightness (float brightness)
 

Variables

int DEFAULT_BRIGHTNESS_MAX = 255
 
int TASMOTA_BRIGHTNESS_MAX = 100
 

Detailed Description

Support for Tasmota lights.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.tasmota.light.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up Tasmota light dynamically through discovery.

Definition at line 44 of file light.py.

◆ clamp()

float homeassistant.components.tasmota.light.clamp ( float  value)
Clamp value to the range 0..255.

Definition at line 69 of file light.py.

◆ scale_brightness()

float homeassistant.components.tasmota.light.scale_brightness ( float  brightness)
Scale brightness from 0..255 to 1..100.

Definition at line 74 of file light.py.

Variable Documentation

◆ DEFAULT_BRIGHTNESS_MAX

int homeassistant.components.tasmota.light.DEFAULT_BRIGHTNESS_MAX = 255

Definition at line 40 of file light.py.

◆ TASMOTA_BRIGHTNESS_MAX

int homeassistant.components.tasmota.light.TASMOTA_BRIGHTNESS_MAX = 100

Definition at line 41 of file light.py.