Need help go-e charger power control

i would like to control the power of my wallbox (go-e charger) but somehow i can’t do it with the automation. If I enter this it works

service: goecharger.set_max_current
data:
  max_current: 6

with the formula the correct result comes out in services but nothing happens in the automation - thank you very much for your help.

service: goecharger.set_max_current
data:
 max_current: {{ states('sensor.goecharger_wallbox_charger_max_current')|float + 1 }}

solved

service: goecharger.set_max_current
data:
  max_current: '{{ states(''sensor.goecharger_wallbox_charger_max_current'')|float + 1 }}'

This is not working for me. The value in the Charger is set to maximum (e.g.: 32).

I use firmware: 56.1.
Any Idea?