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

Classes

class  WeheatHeatPumpSensor
 
class  WeHeatSensorEntityDescription
 

Functions

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

Variables

list DHW_SENSORS
 
list SENSORS
 

Detailed Description

Platform for sensor integration.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.weheat.sensor.async_setup_entry ( HomeAssistant  hass,
WeheatConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the sensors for weheat heat pump.

Definition at line 170 of file sensor.py.

Variable Documentation

◆ DHW_SENSORS

list homeassistant.components.weheat.sensor.DHW_SENSORS
Initial value:
1 = [
2  WeHeatSensorEntityDescription(
3  translation_key="dhw_top_temperature",
4  key="dhw_top_temperature",
5  native_unit_of_measurement=UnitOfTemperature.CELSIUS,
6  device_class=SensorDeviceClass.TEMPERATURE,
7  state_class=SensorStateClass.MEASUREMENT,
8  suggested_display_precision=DISPLAY_PRECISION_WATER_TEMP,
9  value_fn=lambda status: status.dhw_top_temperature,
10  ),
11  WeHeatSensorEntityDescription(
12  translation_key="dhw_bottom_temperature",
13  key="dhw_bottom_temperature",
14  native_unit_of_measurement=UnitOfTemperature.CELSIUS,
15  device_class=SensorDeviceClass.TEMPERATURE,
16  state_class=SensorStateClass.MEASUREMENT,
17  suggested_display_precision=DISPLAY_PRECISION_WATER_TEMP,
18  value_fn=lambda status: status.dhw_bottom_temperature,
19  ),
20 ]

Definition at line 148 of file sensor.py.

◆ SENSORS

list homeassistant.components.weheat.sensor.SENSORS

Definition at line 36 of file sensor.py.