Why was this automation triggered but not executed?

Looking at the trace it looks like the first of the two OR conditions was true, but the action wasn’t executed, why is this?

I can post the yaml code for the automation but I think that’s less useful

alias: "Battery: timed charging (stop at 5.30)"
description: ""
trigger:
  - platform: time
    at: "05:29:00"
condition:
  - condition: or
    conditions:
      - condition: state
        entity_id: automation.intelligent_octopus_stop_charge_2
        state: "off"
      - condition: and
        conditions:
          - condition: state
            entity_id: automation.intelligent_octopus_stop_charge_2
            state: "on"
          - condition: not
            conditions:
              - condition: state
                entity_id: sensor.prism_stato
                state: veicolo in carica
action:
  - service: automation.trigger
    data: {}
    target:
      entity_id:
        - automation.charge_battery_stop
  - delay:
      hours: 0
      minutes: 0
      seconds: 15
      milliseconds: 0
  - condition: not
    conditions:
      - condition: state
        entity_id: sensor.inverter_running_state
        state: 4-Discharging
        for:
          hours: 0
          minutes: 0
          seconds: 0
  - service: automation.trigger
    data:
      skip_condition: true
    target:
      entity_id: automation.battery_timed_charging_stop
mode: restart

See also the entity that satisfies the first OR condition by being off

This is ALWAYS usefull.

Which action isn’t happening? You have the first automation triggering a second, plus doing some other stuff. You need to be more specific as to what exactly isn’t occurring as you expect.

It’s just the condition that isn’t passed (see the diagram on the left of the screenshoft); everything is greyed out after the test condition, but it shouldn’t be because “automation.intelligent_octopus_stop_charge_2” is always OFF

The condition is passing hence the line is orange down to the next bubble. It’s your ‘trigger other automation’ that is blocking things. Try remove that part and test

It normally works, it’s just this time that it didn’t.