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

Classes

class  MyUplinkDevicePointSensor
 
class  MyUplinkEnumRawSensor
 
class  MyUplinkEnumSensor
 

Functions

None async_setup_entry (HomeAssistant hass, MyUplinkConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
SensorEntityDescription|None get_description (DevicePoint device_point)
 

Variables

 device_class
 
 key
 
int MARKER_FOR_UNKNOWN_VALUE = -32768
 
 native_unit_of_measurement
 
 state_class
 
 suggested_display_precision
 
 translation_key
 

Detailed Description

Sensor for myUplink.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.myuplink.sensor.async_setup_entry ( HomeAssistant  hass,
MyUplinkConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up myUplink sensor.

Definition at line 214 of file sensor.py.

◆ get_description()

SensorEntityDescription | None homeassistant.components.myuplink.sensor.get_description ( DevicePoint  device_point)
Get description for a device point.

Priorities:
1. Category specific prefix e.g "NIBEF"
2. Global parameter_unit e.g. "°C"
3. Default to None

Definition at line 194 of file sensor.py.

Variable Documentation

◆ device_class

homeassistant.components.myuplink.sensor.device_class

Definition at line 35 of file sensor.py.

◆ key

homeassistant.components.myuplink.sensor.key

Definition at line 34 of file sensor.py.

◆ MARKER_FOR_UNKNOWN_VALUE

int homeassistant.components.myuplink.sensor.MARKER_FOR_UNKNOWN_VALUE = -32768

Definition at line 140 of file sensor.py.

◆ native_unit_of_measurement

homeassistant.components.myuplink.sensor.native_unit_of_measurement

Definition at line 37 of file sensor.py.

◆ state_class

homeassistant.components.myuplink.sensor.state_class

Definition at line 36 of file sensor.py.

◆ suggested_display_precision

homeassistant.components.myuplink.sensor.suggested_display_precision

Definition at line 62 of file sensor.py.

◆ translation_key

homeassistant.components.myuplink.sensor.translation_key

Definition at line 98 of file sensor.py.