Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.home_connect.sensor Namespace Reference

Classes

class  HomeConnectSensor
 
class  HomeConnectSensorEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, HomeConnectConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
tuple BSH_PROGRAM_SENSORS
 
list EVENT_OPTIONS = ["confirmed", "off", "present"]
 
tuple EVENT_SENSORS
 
tuple SENSORS
 

Detailed Description

Provides a sensor for Home Connect.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.home_connect.sensor.async_setup_entry ( HomeAssistant  hass,
HomeConnectConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the Home Connect sensor.

Definition at line 252 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.home_connect.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 42 of file sensor.py.

◆ BSH_PROGRAM_SENSORS

tuple homeassistant.components.home_connect.sensor.BSH_PROGRAM_SENSORS
Initial value:
1 = (
2  HomeConnectSensorEntityDescription(
3  key="BSH.Common.Option.RemainingProgramTime",
4  device_class=SensorDeviceClass.TIMESTAMP,
5  sign=1,
6  translation_key="program_finish_time",
7  ),
8  HomeConnectSensorEntityDescription(
9  key="BSH.Common.Option.Duration",
10  device_class=SensorDeviceClass.DURATION,
11  native_unit_of_measurement=UnitOfTime.SECONDS,
12  sign=1,
13  ),
14  HomeConnectSensorEntityDescription(
15  key="BSH.Common.Option.ProgramProgress",
16  native_unit_of_measurement=PERCENTAGE,
17  sign=1,
18  translation_key="program_progress",
19  ),
20 )

Definition at line 57 of file sensor.py.

◆ EVENT_OPTIONS

list homeassistant.components.home_connect.sensor.EVENT_OPTIONS = ["confirmed", "off", "present"]

Definition at line 45 of file sensor.py.

◆ EVENT_SENSORS

tuple homeassistant.components.home_connect.sensor.EVENT_SENSORS

Definition at line 184 of file sensor.py.

◆ SENSORS

tuple homeassistant.components.home_connect.sensor.SENSORS

Definition at line 78 of file sensor.py.