Use number helper value as numeric state for automation

Thank you very much for your reply. Unfortunately, I didn’t get any notification.

In the meanwhile I learned a lot about templates and in the end I placed a service template directly in the Action part of the automation, which is working fine as well.

service_template: >
  {% if state_attr('cover.jalousie_links', 'current_position')|int <
  states('input_number.limit_jalousie')|int %}
    cover.close_cover
  {% else %}
    cover.stop_cover
  {% endif %}
entity_id: cover.jalousie_links