Read Data out of Webhook

Hello,

I am sending a webhook to my HA. There are two parameters in this webhook: Value1 and Value2.
How can I read in these values to use them in an automation with “choose”?

Thanks for your help

this:
  entity_id: automation.test_alarm_webhook_220103
  state: 'on'
  attributes:
    id: '1841238487666'
    last_triggered: '2024-01-23T02:11:58.335932+00:00'
    mode: single
    current: 0
    friendly_name: 'EINSATZ Webhook '
  last_changed: '2024-01-14T20:34:19.410887+00:00'
  last_updated: '2024-01-22T03:44:10.332701+00:00'
  context:
    id: 01HMQM9L4W32G6MFP97JRE8VSQ
    parent_id: null
    user_id: null
trigger:
  platform: webhook
  webhook_id: Einsatz
  data:
    __type: <class 'multidict._multidict.MultiDict'>
    repr: <MultiDict()>
  query:
    __type: <class 'multidict._multidict.MultiDict'>
    repr: >-
      <MultiDict('value1': 'Feuer', 'value2': 'F 1')>
  description: webhook
  id: '0'
  idx: '0'
  alias: null

https://www.home-assistant.io/docs/automation/templating/#webhook

So probably something like:

{{ trigger.data.value1 }}
{{ trigger.data.value2 }}
2 Likes

Thank you very much. That was almost right.
It was

{{ trigger.query.value1 }}