File Size


The filesize sensor is for displaying the size in MB of a file.

File paths must also be added to allowlist_external_dirs in your configuration.yaml.

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_pathslistRequired

The absolute path to the file.