Hi all. New user here. Home Assistant Docker.
Trying to use sensor,disk_free and having problems reading a second disk. The one mounted on /mnt/SATA2
My configuration.yaml
# System monitor
sensor:
- platform: systemmonitor
resources:
- type: disk_free
arg: /mnt/SATA2
- type: disk_free
arg: /
- type: memory_free
- type: load_15m
- type: processor_use
- type: processor_temperature
- type: last_boot
Everything works perfectly but the second disk.
I have this error log
Logger: homeassistant.components.systemmonitor.sensor
Source: components/systemmonitor/sensor.py:568
Integration: systemmonitor (documentation, issues)
First occurred: 18:48:04 (309 occurrences)
Last logged: 20:05:04
Error updating sensor: disk_free (/mnt/SATA2)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/systemmonitor/sensor.py", line 379, in _update_sensors
state, value, update_time = _update(type_, data)
File "/usr/src/homeassistant/homeassistant/components/systemmonitor/sensor.py", line 478, in _update
state = round(_disk_usage(data.argument).free / 1024 ** 3, 1)
File "/usr/src/homeassistant/homeassistant/components/systemmonitor/sensor.py", line 568, in _disk_usage
return psutil.disk_usage(path)
File "/usr/local/lib/python3.9/site-packages/psutil/__init__.py", line 1995, in disk_usage
return _psplatform.disk_usage(path)
File "/usr/local/lib/python3.9/site-packages/psutil/_psposix.py", line 169, in disk_usage
st = os.statvfs(path)
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/SATA2'