Created
May 15, 2019 04:45
-
-
Save dale3h/62cc5a9a359c75d4efc8d1b2df777b10 to your computer and use it in GitHub Desktop.
[Home Assistant] Webhook Debugger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Webhook URL: https://[your-hass-domain]/api/webhook/2qDFuSEBA7jU2sNjaK6JD5ac3FxnGfVTSF | |
- id: webhook_debugger | |
alias: "Webhook Debugger" | |
trigger: | |
- platform: webhook | |
webhook_id: 2qDFuSEBA7jU2sNjaK6JD5ac3FxnGfVTSF | |
action: | |
- service: persistent_notification.create | |
data_template: | |
message: >- | |
{% if 'data' in trigger %} | |
Data: {{ dict(trigger.data)|tojson }} | |
{% elif 'json' in trigger %} | |
JSON: {{ dict(trigger.json)|tojson }} | |
{% endif %} | |
{% if 'query' in trigger and trigger.query|length > 0 %} | |
Query: {{ dict(trigger.query)|tojson }} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lifesaver