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

Classes

class  DeviceSensor
 

Functions

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

Variables

tuple NETWORK_SENSORS
 
tuple SIGNAL_SENSORS
 

Detailed Description

Support for SMS dongle sensor.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.sms.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up all device sensors.

Definition at line 77 of file sensor.py.

Variable Documentation

◆ NETWORK_SENSORS

tuple homeassistant.components.sms.sensor.NETWORK_SENSORS

Definition at line 44 of file sensor.py.

◆ SIGNAL_SENSORS

tuple homeassistant.components.sms.sensor.SIGNAL_SENSORS
Initial value:
1 = (
2  SensorEntityDescription(
3  key="SignalStrength",
4  device_class=SensorDeviceClass.SIGNAL_STRENGTH,
5  entity_category=EntityCategory.DIAGNOSTIC,
6  native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS,
7  entity_registry_enabled_default=False,
8  state_class=SensorStateClass.MEASUREMENT,
9  ),
10  SensorEntityDescription(
11  key="SignalPercent",
12  translation_key="signal_percent",
13  native_unit_of_measurement=PERCENTAGE,
14  entity_registry_enabled_default=True,
15  state_class=SensorStateClass.MEASUREMENT,
16  ),
17  SensorEntityDescription(
18  key="BitErrorRate",
19  translation_key="bit_error_rate",
20  entity_category=EntityCategory.DIAGNOSTIC,
21  native_unit_of_measurement=PERCENTAGE,
22  entity_registry_enabled_default=False,
23  state_class=SensorStateClass.MEASUREMENT,
24  ),
25 )

Definition at line 18 of file sensor.py.