Tidy Folder Watcher component page automation.

The automation on this page was obviously created by the automation editor and was super-ugly!!
This commit is contained in:
Marc Forth 2018-04-26 00:28:19 +01:00 committed by GitHub
parent 7bfe31cbac
commit b4fb6b7695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,19 +62,19 @@ Automations can be triggered on filesystem event data using a `data_template`. T
{% raw %} {% raw %}
```yaml ```yaml
- action: #Send notification for new image (including the image itself)
- data_template: alias: New file alert
message: 'Created {{ trigger.event.data.file }} in {{ trigger.event.data.folder }}' trigger:
title: New image captured! platform: event
data: event_type: folder_watcher
file: " {{ trigger.event.data.path }} " event_data:
service: notify.pushbullet event_type: created
alias: New file alert action:
condition: [] service: notify.notify
id: '1520092824697' data_template:
trigger: title: New image captured!
- event_data: {"event_type":"created"} message: "Created {{ trigger.event.data.file }} in {{ trigger.event.data.folder }}"
event_type: folder_watcher data:
platform: event file: "{{ trigger.event.data.path }}"
``` ```
{% endraw %} {% endraw %}