Progress from my printer using Percent preset in WLED (Value type)

I am new to HA so forgive my simple question.
I am trying to get a progress from my printer and display using Percent preset in WLED. I think it is getting the value from the printer but the format stent to WLED is not correct. I don’t know how to debug.
the Yaml in the action is:
action: number.set_value
metadata: {}
data: “{{ states(‘sensor.x1c_00m09a362400845_print_progress’) | float(0) }}”
target:
entity_id:
- number.light.wled_segment_1

the lookbook is showing:
from_state:
entity_id: sensor.x1c_00m09a362400845_print_progress
state: ‘69’
attributes:
state_class: measurement
unit_of_measurement: ‘%’
friendly_name: X1C_00M09A362400845 Print progress
last_changed: ‘2025-01-12T21:20:15.558009+00:00’

I am getting the error above the Yaml in the action:
Visual editor is not supported for this configuration

  • The provided value for ‘data’ is not supported by the visual editor. We support (object) but received (“{{ states(‘sensor.x1c_00m09a362400845_print_progress’) | float(0) }}”).

You can still edit your config using YAML.

In the future please follow Questions Guideline #11 by formatting code blocks properly.

The template does not belong as the value for data, it should be the value for the key value

action: number.set_value
metadata: {}
data: 
  value: "{{ states('sensor.x1c_00m09a362400845_print_progress') | float(0) }}"
target:
  entity_id:
    - number.light.wled_segment_1