home-assistant.io/source/_integrations/filesize.markdown

967 B

title description ha_category ha_iot_class ha_release ha_domain ha_platforms ha_codeowners ha_config_flow ha_integration_type
File size Integration for monitoring the size of a file.
Sensor
Utility
Local Polling 0.64 filesize
sensor
@gjohansson-ST
true integration

The File size {% term integration %} is for displaying the size in MB of a file.

{% important %}

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

Example allowlist_external_dirs configuration to monitor a file in your configuration folder.

{% raw %}


homeassistant:
  allowlist_external_dirs:
    - "/config" # Default configuration directory

{% endraw %}

File paths should be absolute paths. For example: /config/home-assistant_v2.db to monitor the size of the default database.

{% endimportant %}

{% include integrations/config_flow.md %}