Alarmo problem

Hi, i made a couple of sensors for my alarmsystem with Alarmo.
One of them is to know wich sensor is breached.
The sensors are working fine (tested).
However i can’t get the sensor information in an automation.

Sensors:

- platform: template
  sensors:
      alarm_status:
        friendly_name: "Alarm Status"
        value_template: >-
          {% if is_state('alarm_control_panel.alarmo', 'armed_away') %}
            Gewapend (weg)
          {% elif is_state('alarm_control_panel.alarmo', 'armed_home') %}
            Gewapend (thuis)
          {% elif is_state('alarm_control_panel.alarmo', 'disarmed') %}
            Uitgeschakeld
          {% else %}
            Onbekend
          {% endif %}

      open_sensor_name:
        friendly_name: "Geopende Sensor"
        value_template: >-
          {% if not state_attr('alarm_control_panel.alarmo', 'open_sensors') == None %}
            {% set trigger = state_attr('alarm_control_panel.alarmo', 'open_sensors') | join %}
            {{ state_attr(trigger, 'friendly_name') }}
          {% else %}
            inget larm
          {% endif %}

Automation:

- id: '565545'
  alias: Alarm
  description: Alarm
  trigger:
  - platform: state
    entity_id: alarm_control_panel.alarmo
    to: triggered
  action:
  - repeat:
      while:
      - condition: state
        entity_id: alarm_control_panel.alarmo
        state: triggered
      sequence:
      - service: notify.mobile_app_iphone_van_lode
        data:
          title: Alarm
          message: Alarm! {{ states('sensor.Geopende Sensor') }}
          data:
            push:
              sound: Alarm.wav
              name: default
              critical: 1
              volume: 1
      - delay: 00:00:10
  - service: alarm_control_panel.alarm_disarm
    data: {}
    target:
      device_id: xxxxxxxxxxxxx

Quote your single line templates. Also the friendly name is not the entity id.

message: "Alarm! {{ states('sensor.open_sensor_name') }}"

Yesss ! Thank you so much !
Guess i drunk a little bit to much on the party yesterday :rofl:
I really thought you could use the friendly name also.
:pray: :pray: