mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
parent
b8367dcdc8
commit
c15c1bbf10
@ -9,8 +9,6 @@ ha_release: 0.64
|
||||
ha_domain: filesize
|
||||
ha_platforms:
|
||||
- sensor
|
||||
ha_codeowners:
|
||||
- '@gjohansson-ST'
|
||||
---
|
||||
|
||||
The `filesize` sensor is for displaying the size in MB of a file.
|
||||
@ -21,4 +19,20 @@ File paths must also be added to [allowlist_external_dirs](/docs/configuration/b
|
||||
|
||||
</div>
|
||||
|
||||
{% include integrations/config_flow.md %}
|
||||
## 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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user