Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Home Assistant] Webhook Debugger
# 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