Can someone tell me what's wrong with this automation?

I’m trying to make it so the lights will turn on if someone arrives home, it’s cloudy, but before 11pm. As after 11pm when arriving home I call on a different scene called Normal Dim. Thought this automation kills the HA. I’m guessing my conditions are conflicting somehow? Not sure why though.

trigger:
  platform: state
  entity_id: group.all_devices
  from: 'not_home'
  to: 'home'
condition:
  condition: and
  conditions:
    - condition: sun
      after: sunset
      after_offset: '-01:30:00'
    - condition: time
      before: '23:00:00'
    - condition: numeric_state
      entity_id: sensor.dark_sky_cloud_coverage
      above: 80
action:
  service: input_select.select_option
  entity_id: input_select.lighting_mode
  data:
    option: Evening Normal

Do you currently have more than the one working automation or is this your second one? I don’t see an alias in the posted automation and it isn’t indented like it would have one either. If more than one automation you need to add a - in front of the alias to show that it is a list. Are you splitting the config and using automation.yaml? If you have split the configuration file you don’t need the automation: at the top because that is already in the main configuration.yaml file.

automation:
  - alias: 'Evening Normal'
    trigger:
      platform: state
      entity_id: group.all_devices
      from: 'not_home'
      to: 'home'
    condition:
      condition: and
      conditions:
        - condition: sun
          after: sunset
          after_offset: '-01:30:00'
        - condition: time
          before: '23:00:00'
        - condition: numeric_state
          entity_id: sensor.dark_sky_cloud_coverage
          above: 80
    action:
      service: input_select.select_option
      entity_id: input_select.lighting_mode
      data:
        option: Evening Normal

  - alias: 'Morning Normal'
    trigger:
      platform: state
      entity_id: group.all_devices
      from: 'not_home'
      to: 'home'
    condition:
      condition: and
      conditions:
        - condition: sun
          after: sunset
          after_offset: '-01:30:00'
        - condition: time
          before: '23:00:00'
        - condition: numeric_state
          entity_id: sensor.dark_sky_cloud_coverage
          above: 80
    action:
      service: input_select.select_option
      entity_id: input_select.lighting_mode
      data:
        option: Morning Normal

I do have many automations split up into an automation folder and they all work except this one and an identical one that queries “below” 80 for handling non cloud days. I have some automation that use clodu/not as the trigger if people are home.

I was hoping this one would handle coming home since I’ve already covered being home… But the darn thing doesn’t work.

So apparently the time condition conflicts with the sunset condition? I’ve decided to make in input boolean that handles the time and i’ll just use that as my time condition instead -_-