Issues with Configuration

I must be getting tired, because everything is starting to fall apart

I have this in my config file

# Activate the configuration editor
config:

# Activate the Autoations
automation: !include automations.yaml

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

none of my automations are enabled, and I get this error message
Logger: homeassistant.config
Source: config.py:464
First occurred: 7:45:28 PM (11 occurrences)
Last logged: 9:11:40 PM

Invalid config for [automation]: required key not provided @ data[‘action’][0][‘choose’][0][‘sequence’]. Got None required key not provided @ data[‘trigger’]. Got None. (See /config/configuration.yaml, line 4).

Any help is appreciated!

One of your automations has a choose action as the first action. It has no actual action to do specified in the sequence list if the choose conditions are true.

Also there is a misconfiguration of the trigger in one of your automations.

Thank you!

I think I got it sorted out, this is confusing for being a non programmer, the devil is in the details…

Nope, didn’t get it sorted.

I don’t see what I’m missing…

- id: '1589068629039'
  alias: House Lights at Sunset
  description: Turn on all House Lights 30 minutes before Sunset
  trigger:
  - event: sunset
    offset: -00:30:00
    platform: sun
  condition: []
  action:
  - device_id: 487e861d70eb4d12b495cbc9cef22848
    domain: light
    entity_id: light.pc
    type: turn_on
  - device_id: c7d34642bfa4485bbabd087f84c28dd3
    domain: light
    entity_id: light.bedroom
    type: turn_on
  - device_id: 13f503a885fd47dda39c0ca71501d515
    domain: light
    entity_id: light.livingroom
    type: turn_on
  - device_id: ff9be98ddd3f46ae9c10a167c59cb0e1
    domain: light
    entity_id: light.hallway
    type: turn_on
- id: '1589069110463'
  alias: Susan Bedtime
  description: ''
  trigger:
  - platform: time
    at: '21:30'
  condition: []
  action:
  - device_id: c7d34642bfa4485bbabd087f84c28dd3
    domain: light
    entity_id: light.bedroom
    type: turn_off
  mode: single
- id: '1589072179431'
  alias: House Lights Off
  description: Turn off all Lights at 2215
  trigger:
  - at: '22:15:00'
    platform: time
  condition: []
  action:
  - device_id: 487e861d70eb4d12b495cbc9cef22848
    domain: light
    entity_id: light.pc
    type: turn_off
  - device_id: 13f503a885fd47dda39c0ca71501d515
    domain: light
    entity_id: light.livingroom
    type: turn_off
  - device_id: ff9be98ddd3f46ae9c10a167c59cb0e1
    domain: light
    entity_id: light.hallway
    type: turn_off
  - device_id: c7d34642bfa4485bbabd087f84c28dd3
    domain: light
    entity_id: light.bedroom
    type: turn_off
  - device_id: bcd5830564b84a25814151cef5d83a29
    domain: switch
    entity_id: switch.garage
    type: turn_off
  - type: turn_off
    device_id: aa903bb3fd1b39e16b58e1965979e953
    entity_id: switch.outdoor_plug
    domain: switch
- action:
  - choose:
    - conditions:
      - condition: or
        conditions:
        - condition: state
          entity_id: binary_sensor.house_garage_door_sensor_ias_zone
          state: 'on'
        - condition: state
          entity_id: binary_sensor.third_reality_inc_3rds17bz_ias_zone
          state: 'on'
  - sequence:
    - service: switch.turn_on
      target:
        entity_id: switch.garage
        default: []
  id: 7b1da7b4d86145fe8c19e2458cf3cdbc
- id: '1589155041397'
  alias: Garage Door Closed, turn off Garage Lights
  description: Turn off Garage Lights when Garage Door is closed
  trigger:
  - type: not_opened
    platform: device
    device_id: 88a19c87170706d5fe217531196f99ef
    entity_id: binary_sensor.third_reality_inc_3rds17bz_ias_zone
    domain: binary_sensor
  condition: []
  action:
  - device_id: bcd5830564b84a25814151cef5d83a29
    domain: switch
    entity_id: switch.garage
    type: turn_off
- id: '1592264830396'
  alias: HGD Open, Turn on Garage Lights
  trigger:
  - type: opened
    platform: device
    device_id: 180b3575c189246a006588db1642c9b4
    entity_id: binary_sensor.house_garage_door_sensor_ias_zone
    domain: binary_sensor
  condition:
  - condition: or
    conditions:
    - after: sunset
      after_offset: -00:15:00
      condition: sun
    - before: sunrise
      condition: sun
  action:
  - device_id: bcd5830564b84a25814151cef5d83a29
    domain: switch
    entity_id: switch.garage
    type: turn_on
  mode: single
- id: '1592264922582'
  alias: HGD Closed Turn off Garage Lights
  description: ''
  trigger:
  - type: not_opened
    platform: device
    device_id: 180b3575c189246a006588db1642c9b4
    entity_id: binary_sensor.house_garage_door_sensor_ias_zone
    domain: binary_sensor
  condition: []
  action:
  - device_id: bcd5830564b84a25814151cef5d83a29
    domain: switch
    entity_id: switch.garage
    type: turn_off
  mode: single
- id: '1637798043532'
  alias: Christmas Lights On
  description: Turn on Christmas Lights on Porch when Sun Sets
  trigger:
  - platform: sun
    event: sunset
    offset: '-15:00'
  condition: []
  action:
  - type: turn_on
    device_id: aa903bb3fd1b39e16b58e1965979e953
    entity_id: switch.outdoor_plug
    domain: switch
  mode: single
- id: '1637815846743'
  alias: Garage Lights After Dark
  description: Turn on Garage Lights before sunset and at night
  trigger:
  - type: opened
    platform: device
    device_id: 88a19c87170706d5fe217531196f99ef
    entity_id: binary_sensor.ias_zone
    domain: binary_sensor
  - type: opened
    platform: device
    device_id: 180b3575c189246a006588db1642c9b4
    entity_id: binary_sensor.house_garage_door_sensor_ias_zone
    domain: binary_sensor
  condition: []
  action:
  - type: turn_on
    device_id: bcd5830564b84a25814151cef5d83a29
    entity_id: switch.garage
    domain: switch
  mode: single

Updated a few things…still don’t see my error…

- id: '1589068629039'
  alias: House Lights at Sunset
  description: Turn on all House Lights 30 minutes before Sunset
  trigger:
  - event: sunset
    offset: -00:30:00
    platform: sun
  condition: []
  action:
  - service: light.turn_on
    target:
      device_id:
      - c7d34642bfa4485bbabd087f84c28dd3
      - ff9be98ddd3f46ae9c10a167c59cb0e1
      - 13f503a885fd47dda39c0ca71501d515
      - 487e861d70eb4d12b495cbc9cef22848
- id: '1589072179431'
  alias: House Lights Off
  description: Turn off all Lights at 2215
  trigger:
  - at: '22:15:00'
    platform: time
  condition: []
  action:
  - service: light.turn_off
    target:
      device_id:
      - c7d34642bfa4485bbabd087f84c28dd3
      - ff9be98ddd3f46ae9c10a167c59cb0e1
      - 13f503a885fd47dda39c0ca71501d515
      - 487e861d70eb4d12b495cbc9cef22848
  - type: turn_off
    device_id: bcd5830564b84a25814151cef5d83a29
    entity_id: switch.garage
    domain: switch
  - type: turn_off
    device_id: aa903bb3fd1b39e16b58e1965979e953
    entity_id: switch.outdoor_plug
    domain: switch
- action:
  - choose:
    - conditions:
      - condition: or
        conditions:
        - condition: state
          entity_id: binary_sensor.house_garage_door_sensor_ias_zone
          state: 'on'
        - condition: state
          entity_id: binary_sensor.third_reality_inc_3rds17bz_ias_zone
          state: 'on'
  - sequence:
    - service: switch.turn_on
      target:
        entity_id: switch.garage
        default: []
  id: 7b1da7b4d86145fe8c19e2458cf3cdbc
- id: '1589155041397'
  alias: Garage Door Closed, turn off Garage Lights
  description: Turn off Garage Lights when Garage Door is closed
  trigger:
  - type: not_opened
    platform: device
    device_id: 88a19c87170706d5fe217531196f99ef
    entity_id: binary_sensor.garage_door_sensor
    domain: binary_sensor
  condition: []
  action:
  - device_id: bcd5830564b84a25814151cef5d83a29
    domain: switch
    entity_id: switch.garage
    type: turn_off
- id: '1592264830396'
  alias: HGD Open, Turn on Garage Lights
  trigger:
  - type: opened
    platform: device
    device_id: 180b3575c189246a006588db1642c9b4
    entity_id: binary_sensor.house_garage_door_sensor
    domain: binary_sensor
  condition:
  - condition: or
    conditions:
    - after: sunset
      after_offset: -00:15:00
      condition: sun
    - condition: sun
      before: sunrise
  action:
  - device_id: bcd5830564b84a25814151cef5d83a29
    domain: switch
    entity_id: switch.garage
    type: turn_on
  mode: single
- id: '1592264922582'
  alias: HGD Closed Turn off Garage Lights
  description: ''
  trigger:
  - type: not_opened
    platform: device
    device_id: 180b3575c189246a006588db1642c9b4
    entity_id: binary_sensor.house_garage_door_sensor
    domain: binary_sensor
  condition: []
  action:
  - device_id: bcd5830564b84a25814151cef5d83a29
    domain: switch
    entity_id: switch.garage
    type: turn_off
  mode: single
- id: '1637798043532'
  alias: Christmas Lights On
  description: Turn on Christmas Lights on Porch when Sun Sets
  trigger:
  - platform: sun
    event: sunset
    offset: '-15:00'
  condition: []
  action:
  - type: turn_on
    device_id: aa903bb3fd1b39e16b58e1965979e953
    entity_id: switch.outdoor_plug
    domain: switch
  mode: single
- id: '1637815846743'
  alias: Garage Lights After Dark
  description: Turn on Garage Lights before sunset and at night
  trigger:
  - type: opened
    platform: device
    device_id: 88a19c87170706d5fe217531196f99ef
    entity_id: binary_sensor.garage_door_sensor
    domain: binary_sensor
  - type: opened
    platform: device
    device_id: 180b3575c189246a006588db1642c9b4
    entity_id: binary_sensor.house_garage_door_sensor
    domain: binary_sensor
  condition: []
  action:
  - type: turn_on
    device_id: bcd5830564b84a25814151cef5d83a29
    entity_id: switch.garage
    domain: switch
  mode: single

Deleted the automation and set it back up. Working now

It was the dash in front of sequence: in your choose action.

Screenshot 2021-11-25 at 17-31-42 Issues with Configuration - Configuration - Home Assistant Community

Example from the docs:

Screenshot 2021-11-25 at 17-32-42 Script Syntax

Thanks, still learning the whole YAML coding thing…