Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.wilight.cover Namespace Reference

Classes

class  WiLightCover
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 
int hass_to_wilight_position (int value)
 
int wilight_to_hass_position (int value)
 

Detailed Description

Support for WiLight Cover.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.wilight.cover.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up WiLight covers from a config entry.

Definition at line 28 of file cover.py.

◆ hass_to_wilight_position()

int homeassistant.components.wilight.cover.hass_to_wilight_position ( int  value)
Convert hass position 0..100 to wilight 1..255 scale.

Definition at line 54 of file cover.py.

◆ wilight_to_hass_position()

int homeassistant.components.wilight.cover.wilight_to_hass_position ( int  value)
Convert wilight position 1..255 to hass format 0..100.

Definition at line 49 of file cover.py.