Automation failure of weekdays

This automation I did doesn’t work, is there a typo or something here? I’ve looked at the cookbook and similar automations on the forum but can’t sort it out.

The automation I have without the weekdays works.

  # Tänd lamporna kl 06.00      
- alias: Tänd lamporna vid 06.00
  initial_state: 'on'
  trigger: 
    - platform: time
      at: "06:00:00"
  condition:
    - condition: state
      entity_id: group.devices_adults
      state: 'home'
  action:
    - service: light.turn_on
      entity_id: group.light_vardagsrum
    - service: light.turn_on
      entity_id: group.light_hallen   

      # Tänd lamporna kl 06.00      
- alias: Tänd lamporna vid 06.00
  initial_state: 'on'
  trigger: 
    - platform: time
      at: "06:00:00"
  condition:		
    condition:	
    conditions:
      - condition: state
        entity_id: group.devices_adults
        state: 'home'
      - condition: time
	    weekday:
        - mon
        - tue
        - wed
        - thu
        - fri
  action:
    - service: light.turn_on
      entity_id: group.light_vardagsrum
    - service: light.turn_on
      entity_id: group.light_hallen

this one works for me

#turn on after 6:30
  - alias: 'Turn on downstairs morning'
    #hide_entity: True
    trigger:
      platform: time
      at: '06:30:00'
    condition:
      - condition: sun       
        before: sunrise
        before_offset: "+01:00:00"
      - condition: time
        weekday:
          - mon
          - tue
          - wed
          - thu
          - fri
          #- sat
          #- sun
    action:
      - service: light.turn_on
        entity_id:
          - light.table_lamp
          - light.backlight
          - light.stairs
          - light.backroom_bulb
          - light.ftontroom_bulb
          - light.landing_bulb
        data:
          brightness: 254
      - service: switch.turn_on
        entity_id: 
          - switch.cupboard_lamp
          - switch.kitchen_table_light
        
      - service: notify.rich
        data:
          message: "morningturned on 06:30"
          title: "morning down"

I tried this but didn’t work, home assistant didnt start:

  # Tänd lamporna kl 06.00      
- alias: Tänd lamporna vid 06.00
  initial_state: 'on'
  trigger: 
    - platform: time
      at: "13:29:00"
  condition:
    - condition: time
	  weekday:
        - mon
        - tue
        - wed
        - thu
        - fri
       #- sat
       #- sun
    - condition: state
      entity_id: group.devices_adults
      state: 'home'
  action:
    - service: light.turn_on
      entity_id: group.light_vardagsrum
    - service: light.turn_on
      entity_id: group.light_hallen

Your automation, as posted, has errors that will not pass the config check.

  1. You have tab characters on lines 7, 8, and 14. Tab characters are not allowed.
  2. Your condition is missing the and (I’m assuming you want to AND your conditions.

Here it is fixed up:

  # Tänd lamporna kl 06.00      
- alias: Tänd lamporna vid 06.00
  initial_state: 'on'
  trigger: 
    - platform: time
      at: "06:00:00"
  condition:
    condition: and
    conditions:
      - condition: state
        entity_id: group.devices_adults
        state: 'home'
      - condition: time
        weekday:
        - mon
        - tue
        - wed
        - thu
        - fri
  action:
    - service: light.turn_on
      entity_id: group.light_vardagsrum
    - service: light.turn_on
      entity_id: group.light_hallen

Thank you, sir!

I need to remember the tabs…