Templating combining two templates in one

I get a ton of data from a Rest sensor “vrm_data…”
I disclose it with the first template, and
I get the name for the status as I want it with the second template

Can I disclose it an rename it with just one template, as the third one here?
The third template is not working, always gives the if else value.

# Get data
      triaca_motor:
        friendly_name: "Motor"
        icon_template: mdi:cogs
        value_template: '{{ states.sensor.vrm_data.attributes.records[175]["formattedValue"] }}'

#Rename status
      triaca_motor_c:
        friendly_name: "Motor"
        icon_template: mdi:cogs
        value_template: >-
          {% if is_state('sensor.triaca_motor', 'stopped') %}
            Apagado
          {% else %}
            En Marcha
          {%- endif %}

#Do both in one step.(not working)
      triaca_motor_d:
        friendly_name: "Motor"
        icon_template: mdi:cogs
        value_template: >-
          {% if is_state(''{{ states.sensor.vrm_data.attributes.records[175]["formattedValue"] }}'', 'stopped') %}
            Apagado
          {% else %}
            En Marcha
          {%- endif %}
{% if state_attr('sensor.vrm_data', 'records')[175]['formattedValue'] == 'stopped' %}

should work, I think?

Great! It is working!,
How can I determine which state is the “on” value that will light the icon as in “on State”

You probably want to set this up as a template binary sensor instead, then, with a template of:

{{ state_attr('sensor.vrm_data', 'records')[175]['formattedValue'] != 'stopped' }}

That will give you on and off for the motor, and if you set the device_class (perhaps to moving?), the front end should give you suitable Spanish translations in your cards.

If you want different words, then it’s a simple template sensor reading your new binary sensor.