38 lines
789 B
Markdown
38 lines
789 B
Markdown
|
|
```
|
|
alias: Webhook Pluslife
|
|
mode: single
|
|
triggers:
|
|
- trigger: webhook
|
|
allowed_methods:
|
|
- POST
|
|
local_only: true
|
|
webhook_id: plweb
|
|
conditions: []
|
|
actions:
|
|
- if:
|
|
- condition: template
|
|
value_template: "{% if trigger.json.url is defined %}true{% endif %}"
|
|
then:
|
|
- action: notify.familie
|
|
metadata: {}
|
|
data:
|
|
message: |-
|
|
{{ trigger.json.message }}
|
|
Klicken, um den Test anzusehen.
|
|
data:
|
|
clickAction: "{{ trigger.json.url }}"
|
|
group: plweb
|
|
title: PlusLifeWeb
|
|
else:
|
|
- action: notify.familie
|
|
metadata: {}
|
|
data:
|
|
message: "{{ trigger.json.message }}"
|
|
title: PlusLifeWeb
|
|
data:
|
|
group: plweb
|
|
```
|
|
|
|
|