Sennevds / system_sensors

Logging of system sensor specific for the RPI and sending them to a MQTT broker
MIT License
361 stars 112 forks source link

return load avg as number, set the unit as 'processes' #141

Closed eduardofv closed 1 year ago

eduardofv commented 1 year ago

Quick fix #138 - removes the ´str()´ for the return value and specify the unit for load average as ´processes´ (from https://psutil.readthedocs.io/en/latest/index.html?highlight=load#psutil.getloadavg)

BTW, I don't know if the str() conversion was on purpose and if it was the case, why it was necessary?

HA now shows the value as numeric and graphs accordingly: image