Noob question about variables

Trying to create and use local variables.
Here is simple lovelace card:

          - entity:
            type: custom:rgb-light-card
            hide_when_off: false
            justify: left
            colors:
              - type: call-service
                service: script.fibaro_rgbw_light
                service_data:
                  entity: light.fibaro_cabinet
                  red: 100
                icon_color: '#ff0000'
                label: Red

And here is simple script:

fibaro_rgbw_light:
  alias: Fibaro RGBW Control
  sequence:
  - service: light.turn_on  # RED
    data_template:
      entity_id: "{{ entity }}_red"
      brightness_pct: "{{ red }}"
  mode: queued

It works perfectly.

But when I’m trying to use variable for entity: in Lovelace, I got error Failed to call service script/fibaro_rgbw_light. not a valid value for dictionary value @ data['entity_id']:

          - entity:
            type: custom:rgb-light-card
            hide_when_off: false
            justify: left
            variables: 
              entity_name: light.fibaro_cabinet  # need `entity_name` as variable...
            colors:
              - type: call-service
                service: script.fibaro_rgbw_light
                service_data:
                  entity: "{{ entity_name }}"  # ...to use here
                  red: 100
                icon_color: '#ff0000'
                label: Red

Is there a simple way to use entity light.fibaro_cabinet as local variable entity_name in service_data: part?

The standard set of Lovelace cards don’t support Jinja2 templates. Some custom cards do but not the standard cards.