Is there a way to use a template in the confirmation text?
Something like
tap_action:
action: call-service
confirmation:
text: >
{% if is_state('switch.cortineiro', 'on') %}
Do you want to activate?
{% else %}
Do you want disable?
{% endif %}