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

Classes

class  BleBoxCoverEntity
 

Functions

None async_setup_entry (HomeAssistant hass, BleBoxConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

dictionary BLEBOX_TO_COVER_DEVICE_CLASSES
 
dictionary BLEBOX_TO_HASS_COVER_STATES
 

Detailed Description

BleBox cover entity.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.blebox.cover.async_setup_entry ( HomeAssistant  hass,
BleBoxConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up a BleBox entry.

Definition at line 45 of file cover.py.

Variable Documentation

◆ BLEBOX_TO_COVER_DEVICE_CLASSES

dictionary homeassistant.components.blebox.cover.BLEBOX_TO_COVER_DEVICE_CLASSES
Initial value:
1 = {
2  "gate": CoverDeviceClass.GATE,
3  "gatebox": CoverDeviceClass.DOOR,
4  "shutter": CoverDeviceClass.SHUTTER,
5 }

Definition at line 24 of file cover.py.

◆ BLEBOX_TO_HASS_COVER_STATES

dictionary homeassistant.components.blebox.cover.BLEBOX_TO_HASS_COVER_STATES
Initial value:
1 = {
2  None: None,
3  # all blebox covers
4  BleboxCoverState.MOVING_DOWN: CoverState.CLOSING,
5  BleboxCoverState.MOVING_UP: CoverState.OPENING,
6  BleboxCoverState.MANUALLY_STOPPED: CoverState.OPEN,
7  BleboxCoverState.LOWER_LIMIT_REACHED: CoverState.CLOSED,
8  BleboxCoverState.UPPER_LIMIT_REACHED: CoverState.OPEN,
9  # extra states of gateController product
10  BleboxCoverState.OVERLOAD: CoverState.OPEN,
11  BleboxCoverState.MOTOR_FAILURE: CoverState.OPEN,
12  BleboxCoverState.SAFETY_STOP: CoverState.OPEN,
13 }

Definition at line 30 of file cover.py.