Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for System Monitor."""
2 
3 DOMAIN = "systemmonitor"
4 
5 CONF_INDEX = "index"
6 CONF_PROCESS = "process"
7 
8 NET_IO_TYPES = [
9  "network_in",
10  "network_out",
11  "throughput_network_in",
12  "throughput_network_out",
13  "packets_in",
14  "packets_out",
15 ]
16 
17 # There might be additional keys to be added for different
18 # platforms / hardware combinations.
19 # Taken from last version of "glances" integration before they moved to
20 # a generic temperature sensor logic.
21 # https://github.com/home-assistant/core/blob/5e15675593ba94a2c11f9f929cdad317e27ce190/homeassistant/components/glances/sensor.py#L199
22 CPU_SENSOR_PREFIXES = [
23  "amdgpu 1",
24  "aml_thermal",
25  "Core 0",
26  "Core 1",
27  "CPU Temperature",
28  "CPU",
29  "cpu-thermal 1",
30  "cpu_thermal 1",
31  "exynos-therm 1",
32  "Package id 0",
33  "Physical id 0",
34  "radeon 1",
35  "soc-thermal 1",
36  "soc_thermal 1",
37  "Tctl",
38  "cpu0-thermal",
39  "cpu0_thermal",
40  "k10temp 1",
41 ]