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

Classes

class  PairedSensorDescription
 
class  PairedSensorSensor
 
class  ValveControllerSensor
 
class  ValveControllerSensorDescription
 

Functions

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

Variables

tuple PAIRED_SENSOR_DESCRIPTIONS
 
string SENSOR_KIND_AVG_CURRENT = "average_current"
 
string SENSOR_KIND_BATTERY = "battery"
 
string SENSOR_KIND_INST_CURRENT = "instantaneous_current"
 
string SENSOR_KIND_INST_CURRENT_DDT = "instantaneous_current_ddt"
 
string SENSOR_KIND_TEMPERATURE = "temperature"
 
string SENSOR_KIND_TRAVEL_COUNT = "travel_count"
 
string SENSOR_KIND_UPTIME = "uptime"
 
tuple VALVE_CONTROLLER_DESCRIPTIONS
 

Detailed Description

Sensors for the Elexa Guardian integration.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.guardian.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up Guardian switches based on a config entry.

Definition at line 139 of file sensor.py.

Variable Documentation

◆ PAIRED_SENSOR_DESCRIPTIONS

tuple homeassistant.components.guardian.sensor.PAIRED_SENSOR_DESCRIPTIONS
Initial value:
1 = (
2  PairedSensorDescription(
3  key=SENSOR_KIND_BATTERY,
4  device_class=SensorDeviceClass.VOLTAGE,
5  entity_category=EntityCategory.DIAGNOSTIC,
6  native_unit_of_measurement=UnitOfElectricPotential.VOLT,
7  value_fn=lambda data: data["battery"],
8  ),
9  PairedSensorDescription(
10  key=SENSOR_KIND_TEMPERATURE,
11  device_class=SensorDeviceClass.TEMPERATURE,
12  native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
13  state_class=SensorStateClass.MEASUREMENT,
14  value_fn=lambda data: data["temperature"],
15  ),
16 )

Definition at line 68 of file sensor.py.

◆ SENSOR_KIND_AVG_CURRENT

string homeassistant.components.guardian.sensor.SENSOR_KIND_AVG_CURRENT = "average_current"

Definition at line 43 of file sensor.py.

◆ SENSOR_KIND_BATTERY

string homeassistant.components.guardian.sensor.SENSOR_KIND_BATTERY = "battery"

Definition at line 44 of file sensor.py.

◆ SENSOR_KIND_INST_CURRENT

string homeassistant.components.guardian.sensor.SENSOR_KIND_INST_CURRENT = "instantaneous_current"

Definition at line 45 of file sensor.py.

◆ SENSOR_KIND_INST_CURRENT_DDT

string homeassistant.components.guardian.sensor.SENSOR_KIND_INST_CURRENT_DDT = "instantaneous_current_ddt"

Definition at line 46 of file sensor.py.

◆ SENSOR_KIND_TEMPERATURE

string homeassistant.components.guardian.sensor.SENSOR_KIND_TEMPERATURE = "temperature"

Definition at line 47 of file sensor.py.

◆ SENSOR_KIND_TRAVEL_COUNT

string homeassistant.components.guardian.sensor.SENSOR_KIND_TRAVEL_COUNT = "travel_count"

Definition at line 48 of file sensor.py.

◆ SENSOR_KIND_UPTIME

string homeassistant.components.guardian.sensor.SENSOR_KIND_UPTIME = "uptime"

Definition at line 49 of file sensor.py.

◆ VALVE_CONTROLLER_DESCRIPTIONS

tuple homeassistant.components.guardian.sensor.VALVE_CONTROLLER_DESCRIPTIONS

Definition at line 84 of file sensor.py.