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

Classes

class  NetgearRouterSensorEntity
 
class  NetgearSensorEntity
 
class  NetgearSensorEntityDescription
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
list SENSOR_LINK_TYPES
 
list SENSOR_SPEED_TYPES
 
list SENSOR_TRAFFIC_TYPES
 
dictionary SENSOR_TYPES
 
list SENSOR_UTILIZATION
 

Detailed Description

Support for Netgear routers.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.netgear.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up device tracker for Netgear component.

Definition at line 272 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.netgear.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 43 of file sensor.py.

◆ SENSOR_LINK_TYPES

list homeassistant.components.netgear.sensor.SENSOR_LINK_TYPES
Initial value:
1 = [
2  NetgearSensorEntityDescription(
3  key="NewEthernetLinkStatus",
4  translation_key="ethernet_link_status",
5  entity_category=EntityCategory.DIAGNOSTIC,
6  ),
7 ]

Definition at line 263 of file sensor.py.

◆ SENSOR_SPEED_TYPES

list homeassistant.components.netgear.sensor.SENSOR_SPEED_TYPES
Initial value:
1 = [
2  NetgearSensorEntityDescription(
3  key="NewOOKLAUplinkBandwidth",
4  translation_key="uplink_bandwidth",
5  entity_category=EntityCategory.DIAGNOSTIC,
6  native_unit_of_measurement=UnitOfDataRate.MEGABITS_PER_SECOND,
7  device_class=SensorDeviceClass.DATA_RATE,
8  ),
9  NetgearSensorEntityDescription(
10  key="NewOOKLADownlinkBandwidth",
11  translation_key="downlink_bandwidth",
12  entity_category=EntityCategory.DIAGNOSTIC,
13  native_unit_of_measurement=UnitOfDataRate.MEGABITS_PER_SECOND,
14  device_class=SensorDeviceClass.DATA_RATE,
15  ),
16  NetgearSensorEntityDescription(
17  key="AveragePing",
18  translation_key="average_ping",
19  entity_category=EntityCategory.DIAGNOSTIC,
20  native_unit_of_measurement=UnitOfTime.MILLISECONDS,
21  ),
22 ]

Definition at line 223 of file sensor.py.

◆ SENSOR_TRAFFIC_TYPES

list homeassistant.components.netgear.sensor.SENSOR_TRAFFIC_TYPES

Definition at line 84 of file sensor.py.

◆ SENSOR_TYPES

dictionary homeassistant.components.netgear.sensor.SENSOR_TYPES
Initial value:
1 = {
2  "type": SensorEntityDescription(
3  key="type",
4  translation_key="link_type",
5  entity_category=EntityCategory.DIAGNOSTIC,
6  ),
7  "link_rate": SensorEntityDescription(
8  key="link_rate",
9  translation_key="link_rate",
10  native_unit_of_measurement="Mbps",
11  entity_category=EntityCategory.DIAGNOSTIC,
12  ),
13  "signal": SensorEntityDescription(
14  key="signal",
15  translation_key="signal_strength",
16  native_unit_of_measurement=PERCENTAGE,
17  entity_category=EntityCategory.DIAGNOSTIC,
18  ),
19  "ssid": SensorEntityDescription(
20  key="ssid",
21  translation_key="ssid",
22  entity_category=EntityCategory.DIAGNOSTIC,
23  ),
24  "conn_ap_mac": SensorEntityDescription(
25  key="conn_ap_mac",
26  translation_key="access_point_mac",
27  entity_category=EntityCategory.DIAGNOSTIC,
28  ),
29 }

Definition at line 45 of file sensor.py.

◆ SENSOR_UTILIZATION

list homeassistant.components.netgear.sensor.SENSOR_UTILIZATION
Initial value:
1 = [
2  NetgearSensorEntityDescription(
3  key="NewCPUUtilization",
4  translation_key="cpu_utilization",
5  entity_category=EntityCategory.DIAGNOSTIC,
6  native_unit_of_measurement=PERCENTAGE,
7  state_class=SensorStateClass.MEASUREMENT,
8  ),
9  NetgearSensorEntityDescription(
10  key="NewMemoryUtilization",
11  translation_key="memory_utilization",
12  entity_category=EntityCategory.DIAGNOSTIC,
13  native_unit_of_measurement=PERCENTAGE,
14  state_class=SensorStateClass.MEASUREMENT,
15  ),
16 ]

Definition at line 246 of file sensor.py.