Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.systemmonitor.util Namespace Reference

Functions

set[str] get_all_disk_mounts (HomeAssistant hass, ha_psutil.PsutilWrapper psutil_wrapper)
 
set[str] get_all_network_interfaces (HomeAssistant hass, ha_psutil.PsutilWrapper psutil_wrapper)
 
set[str] get_all_running_processes (HomeAssistant hass)
 
float|None read_cpu_temperature (dict[str, list[shwtemp]] temps)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary SKIP_DISK_TYPES = {"proc", "tmpfs", "devtmpfs"}
 

Detailed Description

Utils for System Monitor.

Function Documentation

◆ get_all_disk_mounts()

set[str] homeassistant.components.systemmonitor.util.get_all_disk_mounts ( HomeAssistant  hass,
ha_psutil.PsutilWrapper   psutil_wrapper 
)
Return all disk mount points on system.

Definition at line 18 of file util.py.

◆ get_all_network_interfaces()

set[str] homeassistant.components.systemmonitor.util.get_all_network_interfaces ( HomeAssistant  hass,
ha_psutil.PsutilWrapper   psutil_wrapper 
)
Return all network interfaces on system.

Definition at line 57 of file util.py.

◆ get_all_running_processes()

set[str] homeassistant.components.systemmonitor.util.get_all_running_processes ( HomeAssistant  hass)
Return all running processes on system.

Definition at line 71 of file util.py.

◆ read_cpu_temperature()

float | None homeassistant.components.systemmonitor.util.read_cpu_temperature ( dict[str, list[shwtemp]]  temps)
Attempt to read CPU / processor temperature.

Definition at line 82 of file util.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.systemmonitor.util._LOGGER = logging.getLogger(__name__)
private

Definition at line 13 of file util.py.

◆ SKIP_DISK_TYPES

dictionary homeassistant.components.systemmonitor.util.SKIP_DISK_TYPES = {"proc", "tmpfs", "devtmpfs"}

Definition at line 15 of file util.py.