Trigger Node-RED from a cover template in Home Assistant with Arguments

I'm using 'hass-node-red' to trigger Node-RED from Home Assistant. That works well.

But I have also a cover templete in which I also want to call Node-RED. That is not working with the arguments. Do somebody know if this is possible?

cover:
  - platform: template
    covers:
      safe_test_cover:
        device_class: shutter
        friendly_name: "SAFE test cover"
        position_template: "{{ state_attr('cover.05_hal_1e_etage', 'current_position' ) | int }}"
        open_cover:
          service: cover.open_cover
          data:
            entity_id: cover.05_hal_1e_etage
        close_cover:
          service: nodered.trigger
          data:
            entity_id: switch.safe_close_cover_slowly
        stop_cover:
          service: cover.stop_cover
          data:
            entity_id: cover.05_hal_1e_etage
        set_cover_position:
          service: nodered.trigger
          data_template:
            entity_id: switch.safe_set_cover_position_slowly
            position: "{{position | int}}"
            currentposition: "{{ state_attr('cover.05_hal_1e_etage', 'current_position' ) | int }}"

So the close_cover is working (there are no arguments required).

The set_cover_position doesn't works. Extra keys not allowed @data['position']

The solution is:

set_cover_position:
  service: nodered.trigger
  data_template:
  entity_id: switch.safe_set_cover_position_slowly
  payload:
    position: "{{position | int}}"
    currentposition: "{{ state_attr('cover.05_hal_1e_etage', 'current_position' ) | int }}"