Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge Class Reference
Inheritance diagram for homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge:
[legend]
Collaboration diagram for homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge:
[legend]

Public Member Functions

None __init__ (self, dict[str, Any] conf, ClientSession session)
 
None async_connect (self)
 
None async_disconnect (self)
 
dict[str, dict[str, Any]] async_get_available_sensors (self)
 
dict[str, WrtDeviceasync_get_connected_devices (self)
 
bool is_connected (self)
 
- Public Member Functions inherited from homeassistant.components.asuswrt.bridge.AsusWrtBridge
None __init__ (self, str host)
 
str|None firmware (self)
 
str host (self)
 
str|None label_mac (self)
 
str|None model (self)
 

Private Member Functions

list[str] _get_available_cpu_sensors (self)
 
list[str] _get_available_temperature_sensors (self)
 
Any _get_bytes (self)
 
Any _get_cpu_usage (self)
 
Any _get_load_avg (self)
 
list[str] _get_loadavg_sensors_availability (self)
 
Any _get_memory_usage (self)
 
Any _get_rates (self)
 
Any _get_temperatures (self)
 
dict[str, Any] _get_uptime (self)
 

Static Private Member Functions

AsusWrtHttp _get_api (dict[str, Any] conf, ClientSession session)
 

Private Attributes

 _firmware
 
 _label_mac
 
 _model
 

Additional Inherited Members

- Static Public Member Functions inherited from homeassistant.components.asuswrt.bridge.AsusWrtBridge
AsusWrtBridge get_bridge (HomeAssistant hass, dict[str, Any] conf, dict[str, Any]|None options=None)
 

Detailed Description

The Bridge that use HTTP library.

Definition at line 307 of file bridge.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge.__init__ (   self,
dict[str, Any]  conf,
ClientSession  session 
)
Initialize Bridge that use HTTP library.

Definition at line 310 of file bridge.py.

Member Function Documentation

◆ _get_api()

AsusWrtHttp homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge._get_api ( dict[str, Any]  conf,
ClientSession  session 
)
staticprivate
Get the AsusWrtHttp API.

Definition at line 316 of file bridge.py.

◆ _get_available_cpu_sensors()

list[str] homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge._get_available_cpu_sensors (   self)
private
Check which cpu information is available on the router.

Definition at line 390 of file bridge.py.

◆ _get_available_temperature_sensors()

list[str] homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge._get_available_temperature_sensors (   self)
private
Check which temperature information is available on the router.

Definition at line 407 of file bridge.py.

◆ _get_bytes()

Any homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge._get_bytes (   self)
private
Fetch byte information from the router.

Definition at line 437 of file bridge.py.

◆ _get_cpu_usage()

Any homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge._get_cpu_usage (   self)
private
Fetch cpu information from the router.

Definition at line 457 of file bridge.py.

◆ _get_load_avg()

Any homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge._get_load_avg (   self)
private
Fetch cpu load avg information from the router.

Definition at line 447 of file bridge.py.

◆ _get_loadavg_sensors_availability()

list[str] homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge._get_loadavg_sensors_availability (   self)
private
Check if load avg is available on the router.

Definition at line 426 of file bridge.py.

◆ _get_memory_usage()

Any homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge._get_memory_usage (   self)
private
Fetch memory information from the router.

Definition at line 462 of file bridge.py.

◆ _get_rates()

Any homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge._get_rates (   self)
private
Fetch rates information from the router.

Definition at line 442 of file bridge.py.

◆ _get_temperatures()

Any homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge._get_temperatures (   self)
private
Fetch temperatures information from the router.

Definition at line 452 of file bridge.py.

◆ _get_uptime()

dict[str, Any] homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge._get_uptime (   self)
private
Fetch uptime from the router.

Definition at line 466 of file bridge.py.

◆ async_connect()

None homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge.async_connect (   self)
Connect to the device.

Reimplemented from homeassistant.components.asuswrt.bridge.AsusWrtBridge.

Definition at line 332 of file bridge.py.

◆ async_disconnect()

None homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge.async_disconnect (   self)
Disconnect to the device.

Reimplemented from homeassistant.components.asuswrt.bridge.AsusWrtBridge.

Definition at line 342 of file bridge.py.

◆ async_get_available_sensors()

dict[str, dict[str, Any]] homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge.async_get_available_sensors (   self)
Return a dictionary of available sensors for this bridge.

Reimplemented from homeassistant.components.asuswrt.bridge.AsusWrtBridge.

Definition at line 354 of file bridge.py.

◆ async_get_connected_devices()

dict[str, WrtDevice] homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge.async_get_connected_devices (   self)
Get list of connected devices.

Reimplemented from homeassistant.components.asuswrt.bridge.AsusWrtBridge.

Definition at line 346 of file bridge.py.

◆ is_connected()

bool homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge.is_connected (   self)
Get connected status.

Reimplemented from homeassistant.components.asuswrt.bridge.AsusWrtBridge.

Definition at line 328 of file bridge.py.

Member Data Documentation

◆ _firmware

homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge._firmware
private

Definition at line 339 of file bridge.py.

◆ _label_mac

homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge._label_mac
private

Definition at line 338 of file bridge.py.

◆ _model

homeassistant.components.asuswrt.bridge.AsusWrtHttpBridge._model
private

Definition at line 340 of file bridge.py.


The documentation for this class was generated from the following file: