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

Classes

class  DevoloBatteryEntity
 
class  DevoloConsumptionEntity
 
class  DevoloGenericMultiLevelDeviceEntity
 
class  DevoloMultiLevelDeviceEntity
 

Functions

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

Variables

dictionary DEVICE_CLASS_MAPPING
 
dictionary STATE_CLASS_MAPPING
 

Detailed Description

Platform for sensor integration.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.devolo_home_control.sensor.async_setup_entry ( HomeAssistant  hass,
DevoloHomeControlConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Get all sensor devices and setup them via config entry.

Definition at line 40 of file sensor.py.

Variable Documentation

◆ DEVICE_CLASS_MAPPING

dictionary homeassistant.components.devolo_home_control.sensor.DEVICE_CLASS_MAPPING
Initial value:
1 = {
2  "battery": SensorDeviceClass.BATTERY,
3  "temperature": SensorDeviceClass.TEMPERATURE,
4  "humidity": SensorDeviceClass.HUMIDITY,
5  "current": SensorDeviceClass.POWER,
6  "total": SensorDeviceClass.ENERGY,
7  "voltage": SensorDeviceClass.VOLTAGE,
8 }

Definition at line 20 of file sensor.py.

◆ STATE_CLASS_MAPPING

dictionary homeassistant.components.devolo_home_control.sensor.STATE_CLASS_MAPPING
Initial value:
1 = {
2  "battery": SensorStateClass.MEASUREMENT,
3  "temperature": SensorStateClass.MEASUREMENT,
4  "light": SensorStateClass.MEASUREMENT,
5  "humidity": SensorStateClass.MEASUREMENT,
6  "current": SensorStateClass.MEASUREMENT,
7  "total": SensorStateClass.TOTAL_INCREASING,
8  "voltage": SensorStateClass.MEASUREMENT,
9 }

Definition at line 29 of file sensor.py.