mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-04-30 00:07:35 +00:00
657 B
657 B
title | description | logo | ha_category | ha_iot_class | ha_release | |
---|---|---|---|---|---|---|
File Size | Component for monitoring the size of a file. | file.png |
|
Local Polling | 0.64 |
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 %} file_paths: description: The absolute path to the file. required: true type: list {% endconfiguration %}