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

Classes

class  SysMonitorBinarySensorEntityDescription
 
class  SystemMonitorSensor
 

Functions

None async_setup_entry (HomeAssistant hass, SystemMonitorConfigEntry entry, AddEntitiesCallback async_add_entities)
 
Literal["mdi:cpu-64-bit", "mdi:cpu-32-bit"] get_cpu_icon ()
 
bool get_process (SystemMonitorSensor entity)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_ARG = "arg"
 
int SENSOR_TYPE_DEVICE_CLASS = 3
 
int SENSOR_TYPE_ICON = 2
 
int SENSOR_TYPE_MANDATORY_ARG = 4
 
int SENSOR_TYPE_NAME = 0
 
int SENSOR_TYPE_UOM = 1
 
string SIGNAL_SYSTEMMONITOR_UPDATE = "systemmonitor_update"
 

Detailed Description

Binary sensors for System Monitor.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.systemmonitor.binary_sensor.async_setup_entry ( HomeAssistant  hass,
SystemMonitorConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up System Monitor binary sensors based on a config entry.

Definition at line 91 of file binary_sensor.py.

◆ get_cpu_icon()

Literal["mdi:cpu-64-bit", "mdi:cpu-32-bit"] homeassistant.components.systemmonitor.binary_sensor.get_cpu_icon ( )
Return cpu icon.

Definition at line 46 of file binary_sensor.py.

◆ get_process()

bool homeassistant.components.systemmonitor.binary_sensor.get_process ( SystemMonitorSensor  entity)
Return process.

Definition at line 53 of file binary_sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 31 of file binary_sensor.py.

◆ CONF_ARG

string homeassistant.components.systemmonitor.binary_sensor.CONF_ARG = "arg"

Definition at line 33 of file binary_sensor.py.

◆ SENSOR_TYPE_DEVICE_CLASS

int homeassistant.components.systemmonitor.binary_sensor.SENSOR_TYPE_DEVICE_CLASS = 3

Definition at line 39 of file binary_sensor.py.

◆ SENSOR_TYPE_ICON

int homeassistant.components.systemmonitor.binary_sensor.SENSOR_TYPE_ICON = 2

Definition at line 38 of file binary_sensor.py.

◆ SENSOR_TYPE_MANDATORY_ARG

int homeassistant.components.systemmonitor.binary_sensor.SENSOR_TYPE_MANDATORY_ARG = 4

Definition at line 40 of file binary_sensor.py.

◆ SENSOR_TYPE_NAME

int homeassistant.components.systemmonitor.binary_sensor.SENSOR_TYPE_NAME = 0

Definition at line 36 of file binary_sensor.py.

◆ SENSOR_TYPE_UOM

int homeassistant.components.systemmonitor.binary_sensor.SENSOR_TYPE_UOM = 1

Definition at line 37 of file binary_sensor.py.

◆ SIGNAL_SYSTEMMONITOR_UPDATE

string homeassistant.components.systemmonitor.binary_sensor.SIGNAL_SYSTEMMONITOR_UPDATE = "systemmonitor_update"

Definition at line 42 of file binary_sensor.py.