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

Classes

class  CrownstoneLightEntity
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
int crownstone_state_to_hass (int value)
 
int hass_to_crownstone_state (int value)
 

Detailed Description

Support for Crownstone devices.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.crownstone.light.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up crownstones from a config entry.

Definition at line 34 of file light.py.

◆ crownstone_state_to_hass()

int homeassistant.components.crownstone.light.crownstone_state_to_hass ( int  value)
Crownstone 0..100 to hass 0..255.

Definition at line 58 of file light.py.

◆ hass_to_crownstone_state()

int homeassistant.components.crownstone.light.hass_to_crownstone_state ( int  value)
Hass 0..255 to Crownstone 0..100.

Definition at line 63 of file light.py.