mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-05 10:38:58 +00:00

The note regarding `whitelist_external_dirs` wasn't obvious enough to me. Since this is required for Hass.io for example I've made this more obvious.
723 B
723 B
title, description, ha_category, ha_iot_class, ha_release, ha_domain
title | description | ha_category | ha_iot_class | ha_release | ha_domain | |
---|---|---|---|---|---|---|
File Size | Component for monitoring the size of a file. |
|
Local Polling | 0.64 | filesize |
The filesize
sensor is for displaying the size in MB of a file.
File paths must also be added to whitelist_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 %} file_paths: description: The absolute path to the file. required: true type: list {% endconfiguration %}