mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-08 20:18:59 +00:00

* Migrate the non blog posts to use no domain * Update demo links * Remove Zanzito references from owntracks docs
32 lines
671 B
Markdown
32 lines
671 B
Markdown
---
|
|
layout: page
|
|
title: "File size sensor"
|
|
description: "Component for monitoring the size of a file."
|
|
date: 2018-02-06 14:00
|
|
sidebar: true
|
|
comments: false
|
|
sharing: true
|
|
footer: true
|
|
logo: file.png
|
|
ha_category: Sensor
|
|
ha_iot_class: "Local Polling"
|
|
ha_release: 0.64
|
|
---
|
|
|
|
Component for displaying the size in MB of a file. Note that paths must be added to [whitelist_external_dirs](/docs/configuration/basic/).
|
|
Add to your config:
|
|
|
|
```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 of strings
|
|
{% endconfiguration %}
|