-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Adds folder sensor #4588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds folder sensor #4588
Changes from 1 commit
4e2ff54
4c23acd
715542b
070f56c
ed0b26a
811291f
fe37ac5
44cda86
5619803
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| --- | ||
| layout: page | ||
| title: "folder sensor" | ||
| description: "Component for monitoring the contents of a folder." | ||
| 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.63 | ||
| --- | ||
|
|
||
| Home-assistant component for monitoring the contents of a folder. | ||
| The state of the sensor is the time that the most recently modified file in a folder was modified. The use case is detecting when a file in a folder is created or updated. The number of files in the folder and the names of those files are exposed as attributes. Optionally a filter can be applied to the files considered. | ||
|
|
||
| ```yaml | ||
| sensor: | ||
| - platform: folder | ||
| folder: /share/motion | ||
| filter: '*capture.jpg' | ||
| - platform: folder | ||
| folder: /config | ||
| ``` | ||
|
|
||
| Configuration variables: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use the configuration tags, for more information please see:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You need to remove the header "Configuration variables:" as well 😉 |
||
|
|
||
| - **folder** (*Required*): The folder path | ||
| - **filter** (*Optional*): Optional filter | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Home-assistant->Home Assistant.In general, I'd suggest rewriting this sentence since it is kinda obvious that this component is for Home Assistant already 😉