Automation triggered, but service: alarm_control_panel.alarm_disarm not really executed

Automation is correctly triggered
All actions are logged as executed (both in automation log and general log)
Last action “service: alarm_control_panel.alarm_disarm” not really executed (also logged as executed)
If I trigger the automation manually all is executed correctly.

I’m lost in this. Checked and checked again…
Thank in advance

Here the automation code:

id: '1631660555945'
alias: 'Allarme: DIS perimetrale per vento'
description: ''
trigger:
  - platform: numeric_state
    entity_id: sensor.10_min_average_wind_speed
    above: '5'
condition:
  - condition: or
    conditions:
      - condition: state
        entity_id: alarm_control_panel.perimetrale
        state: armed
      - condition: state
        entity_id: alarm_control_panel.perimetrale
        state: armed_away
action:
  - service: tts.google_say
    data:
      message: Wind > Alarm off 
      entity_id: media_player.gruppo_casa
  - service: notify.persistent_notification
    data:
      message: Wind > Alarm off
  - service: alarm_control_panel.alarm_disarm
    target:
      entity_id: alarm_control_panel.perimetrale
mode: single 

Hi katangus, welcome to the forums.

Does your alarm need a code to be disarmed?

Hi,
thank you!

no, code is not needed.

To be sure: The alarm has been armed, the automation is triggered, but the alarm won’t be disarmed, right?

Exactly.

But the very strange things is that if now I trigger r automation manually the alarm is disarmed.
In all the situation I got all the notification defined

Thanks

This is intended; basically, the manual triggering should work.

Is the service alarm_control_panel.alarm_disarm working, when you call it in the Developer Tools or in a most simple automation?

Yes, both.

Can you please add a delay of let’s say 10 seconds between service: notify… and service: alarm… ?

no changes

Can you try reducing the action: to just the disarm service call and try it.