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" |
Binary sensors for System Monitor.
| 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.
| 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.
| bool homeassistant.components.systemmonitor.binary_sensor.get_process | ( | SystemMonitorSensor | entity | ) |
Return process.
Definition at line 53 of file binary_sensor.py.
|
private |
Definition at line 31 of file binary_sensor.py.
| string homeassistant.components.systemmonitor.binary_sensor.CONF_ARG = "arg" |
Definition at line 33 of file binary_sensor.py.
| int homeassistant.components.systemmonitor.binary_sensor.SENSOR_TYPE_DEVICE_CLASS = 3 |
Definition at line 39 of file binary_sensor.py.
| int homeassistant.components.systemmonitor.binary_sensor.SENSOR_TYPE_ICON = 2 |
Definition at line 38 of file binary_sensor.py.
| int homeassistant.components.systemmonitor.binary_sensor.SENSOR_TYPE_MANDATORY_ARG = 4 |
Definition at line 40 of file binary_sensor.py.
| int homeassistant.components.systemmonitor.binary_sensor.SENSOR_TYPE_NAME = 0 |
Definition at line 36 of file binary_sensor.py.
| int homeassistant.components.systemmonitor.binary_sensor.SENSOR_TYPE_UOM = 1 |
Definition at line 37 of file binary_sensor.py.
| string homeassistant.components.systemmonitor.binary_sensor.SIGNAL_SYSTEMMONITOR_UPDATE = "systemmonitor_update" |
Definition at line 42 of file binary_sensor.py.