Glances and formatting processor load

Hello,

I have the next code in my sensors.yaml

# Glances Remote monitoring RPi backup server
  • platform: glances
    host: 192.168.1.10
    version: 3
    resources:
    • ‘disk_use’
    • ‘cpu_temp’
    • ‘processor_load’
    • ‘memory_use_percent’

The outputt for the processor_load is:

Glances CPU load 0.0. 15 min

What must be done to get:

Glances CPU load XY %

I am having the same problem, any help would be greatly appreciated.

+1

I just started using the Glances component and I’m running into the same problem. I would like to see the CPU load in real time (or close to it), like I could with the System Monitor component.

EDIT: additionally, I would love to see the ‘uptime’ resource being added.

EDIT 2: so I decided to axe the processor_load resource and use the following workaround instead, for now:

- platform: rest
  resource: http://192.168.xx.xx:61208/api/3/quicklook/cpu
  name: "Utility room RPi CPU load"
  value_template: '{{ value_json.cpu }}'
  unit_of_measurement: '%'
  scan_interval: 10

In a similar way, I can now also retrieve the uptime:

- platform: rest
  resource: http://192.168.xx.xx:61208/api/3/uptime
  name: "Utility room RPi uptime"
  value_template: '{{ value_json }}'
  scan_interval: 60