How to supply path_vars for Tesla integration

I am trying to call the Tesla api. I have seen some examples, and as far as I can see I am doing the same thing, yet this always fails with an error.
I’m just triggering it with a button for testing. Note that I use the real vehicle id, changed to “1” here.

alias: Tesla test
description: ""
trigger:
  - device_id: 2a57e88e5e4c88491d16799ba8a968e2
    domain: hue
    platform: device
    type: initial_press
    subtype: 1
    unique_id: 7814709f-0b0c-4f2e-bcf2-6245b49daf71
condition: []
action:
  - service: tesla_custom.api
    data:
      command: STOP_CHARGE
      parameters:
        path_vars:
          vehicle_id: "1"
mode: single

What is wrong with simply turning off switch.teslaname_charger_switch

Oh, that’s much better! Thanks!