System Monitor: how to get disk_free on host drive?

I’m trying to so following:

- type: disk_free
   arg: /mnt/320g

to get host external drive free space

Works for /config obviously, but how do I get the data from the host system?

try it without any arguments:

- platform: systemmonitor
  resources:
    - type: disk_use_percent
    - type: disk_use
    - type: disk_free

Tried, it returns NaN in values. Should I maybe use the allowed_external_dirs? Or mount desired path in Docker (no idea where to find that).

ok, I’m not using docker… I’m running HA OS directly on a Proxmox Virtual Host… maybe, that’s why it is working in my case :-/

Yup. I need to look into mounting in docker.

I managed to get some figures by adding a System monitor entity.

Some settings are required afterwards to activate the parameter needed.
You are after a sensor labeled like: disk free / system_monitor_utilisation_du_disque