Blueprint - checking entity in Action

Hey eveyone - I am trying to configure a blueprint that will have multiple entities trigger it and in the action section, I wanted to HASS to choose the correct action based on the triggering entity. The usecase is a Insteon keypadlinc using the ISY integration. It gets 5 entities created - one for the on/off and 4 for the scene controller.

Specifically, I am trying to do it this

  - choose:
      - conditions:
          - "{{ control == 'DFON' }}"
          - "{{ entity == '{{ !input switch }}' }}"
        sequence: !input "double_tap_on"

but it seems my escaping in the condition is not working. Anyone have any suggestions as to how it get it to work or a better way to do this?

Here is the complete blueprint. There is a lot of placeholder nonsense :wink:

blueprint:
  name: Insteon - Keypadlinc
  description: "Keypadlinc Commands"
  domain: automation
  input:
    switch:
      name: switch
      description: Insteon Switch to User
      selector:
        entity:
          domain: light
    switchbuttona:
      name: sensora
      description: Insteon Switch to User
      selector:
        entity:
          domain: sensor
    switchbuttonb:
      name: sensorb
      description: Insteon Switch to User
      selector:
        entity:
          domain: sensor
    switchbuttonc:
      name: sensorc
      description: Insteon Switch to User
      selector:
        entity:
          domain: sensor
    switchbuttond:
      name: sensord
      description: Insteon Switch to User
      selector:
        entity:
          domain: sensor
    double_tap_on:
      name: Double Tap up
      description: "cnkd"
      default: []
      selector:
        action:
    double_tap_off:
      name: double tap down
      description: "cnkd"
      default: []
      selector:
        action:
    buttonda:
      name: buttona
      description: "cnkd"
      default: []
      selector:
        action:
    buttonb:
      name: buttonb
      description: "cnkd"
      default: []
      selector:
        action:
    buttonc:
      name: buttonc
      description: "cnkd"
      default: []
      selector:
        action:
    buttond:
      name: buttond
      description: "cnkd"
      default: []
      selector:
        action:
    single_tap_on:
      name: Tap up
      description: "cnkd"
      default: []
      selector:
        action:
    single_tap_off:
      name: tap down
      description: "cnkd"
      default: []
      selector:
        action:
mode: restart
max_exceeded: silent
trigger:
  - platform: event
    event_type: isy994_control
    event_data:
      entity_id: !input "switch"
  - platform: event
    event_type: isy994_control
    event_data:
      entity_id: !input "switchbuttona"
  - platform: event
    event_type: isy994_control
    event_data:
      entity_id: !input "switchbuttonb"
  - platform: event
    event_type: isy994_control
    event_data:
      entity_id: !input "switchbuttonc"
  - platform: event
    event_type: isy994_control
    event_data:
      entity_id: !input "switchbuttond"
action:
  - variables:
      control: "{{ trigger.event.data.control }}"
      entity: "{{ trigger.event.data.entity_id }}"
  - choose:
      - conditions:
          - "{{ control == 'DFON' }}"
          - "{{ entity == '{{ !input switch }}' }}"
        sequence: !input "double_tap_on"
      - conditions:
          - "{{ control == 'DFOF' }}"
        sequence: !input "double_tap_off"
      - conditions:
          - "{{ control == 'DOF' }}"
        sequence: !input "single_tap_off"
      - conditions:
          - "{{ control == 'DON' }}"
        sequence: !input "single_tap_on"

did you get this to work?