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

Classes

class  VenstarSensor
 
class  VenstarSensorEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
str temperature_unit (VenstarDataUpdateCoordinator coordinator)
 

Variables

dictionary RUNTIME_ATTRIBUTES
 
string RUNTIME_AUX1 = "aux1"
 
string RUNTIME_AUX2 = "aux2"
 
string RUNTIME_COOL1 = "cool1"
 
string RUNTIME_COOL2 = "cool2"
 
list RUNTIME_DEVICES
 
 RUNTIME_ENTITY
 
string RUNTIME_FC = "fc"
 
string RUNTIME_HEAT1 = "heat1"
 
string RUNTIME_HEAT2 = "heat2"
 
string RUNTIME_OV = "ov"
 

Detailed Description

Representation of Venstar sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.venstar.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up Venstar device sensors based on a config entry.

Definition at line 81 of file sensor.py.

◆ temperature_unit()

str homeassistant.components.venstar.sensor.temperature_unit ( VenstarDataUpdateCoordinator  coordinator)
Return the correct unit for temperature.

Definition at line 129 of file sensor.py.

Variable Documentation

◆ RUNTIME_ATTRIBUTES

dictionary homeassistant.components.venstar.sensor.RUNTIME_ATTRIBUTES
Initial value:
1 = {
2  RUNTIME_HEAT1: "Heating Stage 1",
3  RUNTIME_HEAT2: "Heating Stage 2",
4  RUNTIME_COOL1: "Cooling Stage 1",
5  RUNTIME_COOL2: "Cooling Stage 2",
6  RUNTIME_AUX1: "Aux Stage 1",
7  RUNTIME_AUX2: "Aux Stage 2",
8  RUNTIME_FC: "Free Cooling",
9  RUNTIME_OV: "Override",
10 }

Definition at line 50 of file sensor.py.

◆ RUNTIME_AUX1

string homeassistant.components.venstar.sensor.RUNTIME_AUX1 = "aux1"

Definition at line 34 of file sensor.py.

◆ RUNTIME_AUX2

string homeassistant.components.venstar.sensor.RUNTIME_AUX2 = "aux2"

Definition at line 35 of file sensor.py.

◆ RUNTIME_COOL1

string homeassistant.components.venstar.sensor.RUNTIME_COOL1 = "cool1"

Definition at line 32 of file sensor.py.

◆ RUNTIME_COOL2

string homeassistant.components.venstar.sensor.RUNTIME_COOL2 = "cool2"

Definition at line 33 of file sensor.py.

◆ RUNTIME_DEVICES

list homeassistant.components.venstar.sensor.RUNTIME_DEVICES
Initial value:
1 = [
2  RUNTIME_HEAT1,
3  RUNTIME_HEAT2,
4  RUNTIME_COOL1,
5  RUNTIME_COOL2,
6  RUNTIME_AUX1,
7  RUNTIME_AUX2,
8  RUNTIME_FC,
9  RUNTIME_OV,
10 ]

Definition at line 39 of file sensor.py.

◆ RUNTIME_ENTITY

homeassistant.components.venstar.sensor.RUNTIME_ENTITY
Initial value:
1 = VenstarSensorEntityDescription(
2  key="runtime",
3  state_class=SensorStateClass.MEASUREMENT,
4  uom_fn=lambda _: UnitOfTime.MINUTES,
5  value_fn=lambda coordinator, sensor_name: coordinator.runtimes[-1][sensor_name],
6  name_fn=lambda sensor_name: f"{RUNTIME_ATTRIBUTES[sensor_name]} Runtime",
7 )

Definition at line 226 of file sensor.py.

◆ RUNTIME_FC

string homeassistant.components.venstar.sensor.RUNTIME_FC = "fc"

Definition at line 36 of file sensor.py.

◆ RUNTIME_HEAT1

string homeassistant.components.venstar.sensor.RUNTIME_HEAT1 = "heat1"

Definition at line 30 of file sensor.py.

◆ RUNTIME_HEAT2

string homeassistant.components.venstar.sensor.RUNTIME_HEAT2 = "heat2"

Definition at line 31 of file sensor.py.

◆ RUNTIME_OV

string homeassistant.components.venstar.sensor.RUNTIME_OV = "ov"

Definition at line 37 of file sensor.py.