Two actions under one condition if - not possible?

I have this code for one of the actions that I’m trying to combine, this one has the condition and I want both under the same condidion:

  - if:
      - condition: template
        value_template: "{{ ('Tor' in (trigger.from_state.attributes.zone_name))  == true }}"
    then:
      data:
        kommandoklasse: JRMC
        kommando: Stoppet
        sone: 9
      action: rest_command.girder
    alias: Tor

The second action is this:

  - action: timer.start
    metadata: {}
    data: {}
    target:
      entity_id: timer.sone9

And I just can’t seem to combine two action under that condition. I’m guessing that I have been messing up indentation and dashes. All my attempts the last half hour has turned into nothing… Can somebody please put me out of my misery? I’m in the middle of an overhaul of a 15 year old part of my system, programmed in Lua in GIrder, if anybody knows about that. It’s been dead for quite a few years. Some of it works perfectly, other stuff is a bit messy, and this is a part of what’s messy that I hope to simplify a lot now.

This works for me

  - if:
    - condition: trigger
      id: "tempalta"
    then:
    - action: tts.speak
      target:
        entity_id: tts.google_es_es
      data:
        media_player_entity_id: group.googletts
        message: El Nuc esta caliente. Está a {{ states('sensor.nuc_cpu_temperature') }} grados
        language: es
    - action: notify.mobile_app_pixel_arturo 
      data:
        title: "El nuc está caliente"
        message: "El servidor nuc está a  {{ states('sensor.nuc_cpu_temperature') }} grados"
        data:
          importance: high
          persistent: true
1 Like

Thank you! That worked, it was indentation and dashes. :+1: