home-assistant.io/source/_components/sensor.folder.markdown
Fabian Affolter 95546aa3fc
Move to Network category (#6181)
* Move to Network category

* Update category and other fixes
2018-09-03 10:48:27 +02:00

1.1 KiB

layout title description date sidebar comments sharing footer logo ha_category ha_iot_class ha_release
page Folder sensor Sensor for monitoring the contents of a folder. 2018-02-21 14:00 true false true true file.png Utility Local Polling 0.64

Sensor for monitoring the contents of a folder. Note that folder paths must be added to whitelist_external_dirs. Optionally a wildcard filter can be applied to the files considered within the folder. The state of the sensor is the size in MB of files within the folder that meet the filter criteria. The number of filtered files in the folder and total size in bytes of those files are exposed as attributes.

{% linkable_title Configuration %}

To enable the folder sensor in your installation, add the following to your configuration.yaml file:

sensor:
  - platform: folder
    folder: /config

{% configuration %} folder: description: The folder path required: true type: string filter: description: Filter to apply required: false default: "*" type: string {% endconfiguration %}