Alec Rust 71c6fd5c01
Increase prominence of whitelist_external_dirs note (#12402)
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.
2020-03-16 21:21:48 +01:00

36 lines
723 B
Markdown

---
title: File Size
description: Component for monitoring the size of a file.
ha_category:
- Utility
ha_iot_class: Local Polling
ha_release: 0.64
ha_domain: filesize
---
The `filesize` sensor is for displaying the size in MB of a file.
<div class='note'>
File paths must also be added to [whitelist_external_dirs](/docs/configuration/basic/) in your `configuration.yaml`.
</div>
## Configuration
To enable the `filesize` sensor, add the following lines to your `configuration.yaml`:
```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 %}