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

Classes

class  SwitchBeeLightEntity
 

Functions

int _hass_brightness_to_switchbee (int value)
 
int _switchbee_brightness_to_hass (int value)
 
None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

int MAX_BRIGHTNESS = 255
 

Detailed Description

Support for SwitchBee light.

Function Documentation

◆ _hass_brightness_to_switchbee()

int homeassistant.components.switchbee.light._hass_brightness_to_switchbee ( int  value)
private
Convert hass brightness to SwitchBee.

Definition at line 23 of file light.py.

◆ _switchbee_brightness_to_hass()

int homeassistant.components.switchbee.light._switchbee_brightness_to_hass ( int  value)
private
Convert SwitchBee brightness to hass.

Definition at line 30 of file light.py.

◆ async_setup_entry()

None homeassistant.components.switchbee.light.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up SwitchBee light.

Definition at line 37 of file light.py.

Variable Documentation

◆ MAX_BRIGHTNESS

int homeassistant.components.switchbee.light.MAX_BRIGHTNESS = 255

Definition at line 20 of file light.py.