Need help: "sequence:" Incorrect type. Expected one of string, number, boolean

As per title I cannot figure out what is Studio Code Server asking me to correct in the below YAML code.

Can someone please help me?

  ####################################################
  # Aggiornamento

  - choose:
      - conditions:
          - condition: trigger
            id: aggiornamento
          - condition: state
            entity_id: input_boolean.aggiornamento_pkg_posta
            state: "on"
          - condition: not
            conditions:
              - condition: state
                entity_id: sensor.domhouse_it
                attribute: centro_controllo_posta
                state:
                  - unknown
                  - unavailable
                  - none
                  -
        sequence:
          - data_template:
              message: "Centro Controllo Posta {{ state_attr('sensor.domhouse_it','centro_controllo_posta') }} è ora disponibile."
              title: "📥 Nuovo Aggiornamento 📥"
              data:
                actions:
                  - action: "URI"
                    title: "SCARICA UPDATE"
                    uri: "https://domhouse.it/centro-controllo-posta-in-home-assistant/"
            action: notify.centro_posta

  ####################################################

Hello Cr4z33

Can you provide the rest of the automation this is part of? (in YAML)

1 Like

It’s funny because I just gave a read at your article this morning! :grin:

Anyway I was asking for help also in a Facebook group and a user found out that a - was needed in front of sequence:.

Thanks anyway for willing to help!

Not according to the documentation for choose.