File size Sensor


The filesize sensor for displaying the size in MB of a file. Note that paths must be added to whitelist_external_dirs.

Configuration

To enable the filesize sensor, add the following lines to your configuration.yaml:

sensor:
  - platform: filesize
    file_paths:
      - /config/home-assistant_v2.db

Configuration Variables

file_paths

(list of strings)(Required)The absolute path to the file.