Because I can not

Good morning everyone.

I have a problem and I do not know how to solve it.
I have this tamplate and I can’t get it to show it to me on the card on separate lines. I use a card type entities.

- platform: template
  sensors:
    volumetricos_activos:
      friendly_name: VOLUMETRICOS ACTIVOS
      icon_template: '{% if states.sensor.volumetricos_activos.state %}mdi:alert{% else %}mdi:approval{% endif %}'
      value_template: >
        {% for state in states if (('motion' in state.attributes.device_class)) %}
          {% set opening = state.state %}
          {% if opening == 'off' %}
            {% set state = 100 %}
          {% endif %}
          {% if opening == 'on' %}
            {{state.attributes.friendly_name}},
          {% endif %}
        {% endfor %}
      entity_id: 
      - binary_sensor.motion_sensor_158d0003667e2b
      - binary_sensor.motion_sensor_158d0003667dce
      - binary_sensor.motion_sensor_158d0003149304
         
    volumetricos_status:
      friendly_name: VOLUMETRICOS ACTIVOS
      icon_template: '{% if states.sensor.volumetricos_activos.state %}mdi:account-tie-voice{% else %}mdi:account-tie-voice-off{% endif %}'
#      entity_id: sensor.time 
      value_template: '{% if states.sensor.volumetricos_activos.state %}{{states.sensor.volumetricos_activos.state}}{% else %}Ninguno{% endif %}'

Anotación 2020-06-28 215424

As you can see it is shown:
Volu. Entrada, Volu. Patio, Volu. Pasillo.

Instead of:
Volu. Entrada,
Volu. Patio,
Volu. Pasillo,

Thanks for your ideas and help.