G Johansson 97bdcc06dd
Filesize abs path with example (#32106)
* Filesize abs path with example

* Tiny tweak

---------

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
2024-04-02 08:36:30 +02:00

29 lines
684 B
Markdown

---
title: File Size
description: Integration for monitoring the size of a file.
ha_category:
- Sensor
- Utility
ha_iot_class: Local Polling
ha_release: 0.64
ha_domain: filesize
ha_platforms:
- sensor
ha_codeowners:
- '@gjohansson-ST'
ha_config_flow: true
ha_integration_type: integration
---
The `filesize` sensor is for displaying the size in MB of a file.
<div class='note'>
File paths must also be added to [allowlist_external_dirs](/docs/configuration/basic/) in your `configuration.yaml`.
File paths should be absolute paths. For example: `/config/home-assistant_v2.db` to monitor the size of the default database.
</div>
{% include integrations/config_flow.md %}