File size sensor


Component for displaying the size in MB of a file. Note that paths must be added to whitelist_external_dirs. Add to your config:

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

Configuration Variables

file_paths

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