Problem with automation, I don't understand

Getting the following message:
Invalid config for [automation]: required key not provided @ data[‘action’][0][‘domain’]. Got None. (See /config/configuration.yaml, line 59).
and the automation is: (lines: 51-83)

- id: '1634238585872'
  alias: 'Shabat morning blinds on '
  description: ''
  trigger:
  - platform: time
    at: 06:15:00
  condition:
  - condition: time
    after: 06:01:00 (line 59)
    weekday:
    - mon
    - tue
    - wed
    - thu
    - fri
    - sat
    - sun
    before: 00:00:00
  - condition: state
    entity_id: input_boolean.shabes_mode
    state: 'on'
  - condition: and
    conditions:
    - condition: state
      entity_id: input_boolean.away_mode
      state: 'off'
  action:
  - device_id: e01642003e63a54797b6658a43efaa4d
    domain: cover
    entity_id: cover.big_blinds
    type: set_position
    position: 100
  mode: single

This works

trigger:
  - platform: time
    at: '06:15:00'
condition:
  - condition: time
    after: '06:01:00'
    before: '00:00:00'
    weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
      - sun
  - condition: and
    conditions:
      - condition: state
        entity_id: switch.anette_hemma_131
        state: 'off'
action:

It may work but it is an incorrect use of the AND condition. It should be like this:

condition:
  - condition: and
    conditions:
      - condition: time
        after: '06:01:00'
        before: '00:00:00'
        weekday:
          - mon
          - tue
          - wed
          - thu
          - fri
          - sat
          - sun
      - condition: state
        entity_id: switch.anette_hemma_131
        state: 'off'

But since conditions are AND by default, all you need is this:

condition:
  - condition: time
    after: '06:01:00'
    before: '00:00:00'
    weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
      - sun
  - condition: state
    entity_id: switch.anette_hemma_131
    state: 'off'

Ok, I took the YAML-structure generated by the visual editor. But yes, the condition: and is redundant.

Then you entered it incorrectly. Your second condition is an AND with only one condition. A state condition for the switch AND … nothing.

Yes, you’r right it was incomplete. Still working though.

I don’t know the answer to the OP original question since I don’t use the UI editor but the question doesn’t seem to be about the conditions. the error is referencing the actions - specifically a missing “domain”.

I don’t see why, tho. You can clearly see “domain: cover” right there in the code.