Create update coordinator for Systemmonitor (#106693)

This commit is contained in:
G Johansson 2024-01-17 02:07:55 +01:00 committed by GitHub
parent d5c1049bfe
commit d4f9ad9dd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 678 additions and 398 deletions

View file

@ -5,13 +5,37 @@ DOMAIN = "systemmonitor"
CONF_INDEX = "index"
CONF_PROCESS = "process"
NETWORK_TYPES = [
NET_IO_TYPES = [
"network_in",
"network_out",
"throughput_network_in",
"throughput_network_out",
"packets_in",
"packets_out",
"ipv4_address",
"ipv6_address",
]
# There might be additional keys to be added for different
# platforms / hardware combinations.
# Taken from last version of "glances" integration before they moved to
# a generic temperature sensor logic.
# https://github.com/home-assistant/core/blob/5e15675593ba94a2c11f9f929cdad317e27ce190/homeassistant/components/glances/sensor.py#L199
CPU_SENSOR_PREFIXES = [
"amdgpu 1",
"aml_thermal",
"Core 0",
"Core 1",
"CPU Temperature",
"CPU",
"cpu-thermal 1",
"cpu_thermal 1",
"exynos-therm 1",
"Package id 0",
"Physical id 0",
"radeon 1",
"soc-thermal 1",
"soc_thermal 1",
"Tctl",
"cpu0-thermal",
"cpu0_thermal",
"k10temp 1",
]