Automation template with device Trigger and subtype

Thanx to @tom_i

During event debugging i found that there is a state with the click-type. So my solution is now:

alias: WG Taster Markise
trigger:
  - platform: state
    entity_id: sensor.taster_wg_click
    to: single
  - platform: state
    entity_id: sensor.taster_wg_click
    to: double
condition: []
action:
  - choose:
      - conditions:
          - condition: template
            value_template: '{{ trigger.to_state.state == "double" }}'
        sequence:
          - service: cover.open_cover
            target:
              device_id:
                - b8af905540d44f46a51bf35b6235283c
      - conditions:
          - condition: template
            value_template: '{{ trigger.to_state.state == "single" }}'
        sequence:
          - service: cover.close_cover
            target:
              device_id:
                - b8af905540d44f46a51bf35b6235283c
    default: []
mode: single

But there is a question still open. How to debug the trigger variable?

With the knowledge of every attribute in it, it would increase the possibilties within templates. The mentioned doc-page helped a bit.