Cyclic updating of RaspberryMatic system variable with Home Assistant sensor value?

Hi everyone,
I’m trying to make an automation in Home Assistant to update a RaspberryMatic system variable, but it’s not working for me. The automation update the value every 30 s. When using
data: with a fix value instead of data_template: "{{states('sensor.batterie') | float}}" the fix value is shown in RaspberryMatic Systemvariables.
With data_template there is no value change.

The automation is:

- id: '1692888290649'
  alias: BatterieLadung An CCU
  description: ''
  trigger:
  - platform: time_pattern
    seconds: '0'
  - platform: time_pattern
    seconds: '30'
  condition: []
  action:
  - service: homematicip_local.set_variable_value
    data_template:
      entry_id: 329ecc30c37f0123949c8451ca72bbf9
      name: SV_BatterieLadung
      value: "{{states('sensor.batterie') | float}}"
  mode: single

The system variable is defined as value from 0 to 100 in RaspberryMatic.

It looks like there is a problem with sensor.batterie, but in the entety card of the dashboard the value of sensor.batterie is shown.
The sensor.batterie value comes from NodeRed.

Do you have any ideas ?

Best,
Uwe

https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

It works now, exactly with the automation above. I include “hahm” in the description of the system variable in RaspberryMatic.