Configuration HA Error

I have the following error and can not figure it out. Invalid config for [alarm_control_panel]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 239).

Configuration.yaml File

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: xxxxxxxxxxxxxxx
  longitude: xxxxxxxxxxxxx
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: xxx
  # metric for Metric, imperial for Imperial
  unit_system: imperial
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: America/New_York
  # Customization file
  customize: !include customize.yaml
 
# Show links to resources in log and frontend
# introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

#Enable Bluetooth Feature
device_tracker:
  - platform: bluetooth_tracker
  
camera:
  - platform: ring
    ring:
    username: xxxxxxxxxx
    password: xxxxxxxxxxx

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
#conversation:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Enables a map showing the location of tracked devices
map:

# Track the sun
sun:

# Sensors
sensor:
  # Weather prediction
  - platform: yr

# Text to speech
tts:
  - platform: google

# Cloud
cloud:

automation: !include automations.yaml

################### Setting up Groups #####################
group:
  Garage_Doors:
    name: Garage Doors
    entities:
      -  binary_sensor.garage_door_one_closed
      -  binary_sensor.garage_door_one_opened
      -  binary_sensor.garage_door_two_closed
      -  binary_sensor.garage_door_two_opened
      -  binary_sensor.garage_door_three_closed
      -  binary_sensor.garage_door_three_opened
  Smoke Fire Detectors:
    name: Smoke Fire Detectors
    entities:
      - binary_sensor.fire_smoke_detectors
  Glass Breakage Sensors:
    name: Glass Breakage Sensors
    entities:
      - binary_sensor.coffee_glass_breakage
      - binary_sensor.den_glass_breakage
      - binary_sensor.dinning_glass_breakage
      - binary_sensor.family_glass_breakage
  Doors:
    name: Doors
    entities:
      - binary_sensor.family_outside_door
      - binary_sensor.foyer_outside_door
      - binary_sensor.mudroom_garage_door
      - binary_sensor.mudroom_outside_door
      - binary_sensor.kitchen_outside_door
  Motion Detectors:
    name: Motion Detector
    entities:
      - binary_sensor.cellar_bars
      - binary_sensor.foyer_motion_detector
  Windows:
    name: Cellar Windows
    entities:
      - binary_sensor.cellar_bars
  Mostures:
    name: Water Detection
    entities:
      - binary_sensor.sump_float_level                

zwave:
  usb_path: /dev/ttyACM0
  
mqtt:
  broker: core-mosquitto
  username: xxxxxxxxxxx
  password: xxxxxxxxxxx

#switch:
#  platform: "Garage Light"
#  command_topic: "cmd/sonoff/power"
#  state_topic: "stat/sonoff/POWER"
#  qos: 1
#  payload_on: "ON"
#  payload_off: "OFF"

panel_iframe:
  configurator:
    title: 'Configurator'
    url: 'http://192.168.1.3:3218'
    icon: mdi:wrench
  nodered:
    title: 'Node-RED'
    icon: mdi:sitemap
    url: 'http://192.168.1.3:1880'
    
############# Konnected Alarm System Boards ###############
konnected:
  access_token: konnected_token
  api_host: 'http://192.168.1.3:8123'
  devices:
# Board One
    - id: xxxxxxxxxxxxxxx
      binary_sensors:
        - zone: 1
          type: door
          name: Mudroom Garage Door
        - zone: 2
          type: door
          name: Mudroom Outside Door
        - zone: 3
          type: door
          name: Kitchen Outside Door
        - zone: 4
          type: door
          name: Family Outside Door
        - zone: 5
          type: door
          name: Foyer Outside Door
 # Board Two
    - id: xxxxxxxxxxxxxxx
      binary_sensors:
        - zone: 1
          type: window
          name: Den Glass Breakage
        - zone: 2
          type: window
          name: Coffee Glass Breakage
        - zone: 3
          type: window
          name: Family Glass Breakage
        - zone: 4
          type: window
          name: Dining Glass Breakage
        - zone: 5
          type: motion
          name: Foyer Motion Detector
#         zone: 6
#         type:
#       - name:
# Board Three
    - id: xxxxxxxxxxxxxxx
      binary_sensors:
        - zone: 1
          type: garage_door
          name: Garage Door One Opened
        - zone: 2
          type: garage_door
          name: Garage Door One Closed
        - zone: 3
          type: garage_door
          name: Garage Door Two Opened
        - zone: 4
          type: garage_door
          name: Garage Door Two Closed
        - zone: 5
          type: garage_door
          name: Garage Door Three Opened
        - zone: 6
          type: garage_door
          name: Garage Door Three Closed
 # Board Four
    - id: xxxxxxxxxxxxxxx
      binary_sensors:
        - zone: 1
          type: smoke
          name: Smoke Detectors
        - zone: 2
          type: moisture
          name: Sump Float Level 
        - zone: 3
          type: window
          name: Cellar Bars
#         name: 
#       - zone: 4
#         type: 
#         name: 
#       - zone: 5
#         type: 
#         name:       
#       - zone: 6
#         type: 
#         name: 

############# Konnected Alarm System Times ##############
alarm_control_panel:
  - platform: manual
    name: Alarm
    code: alarm_code
    trigger_time: 300
    disarmed:
      trigger_time: 0
    armed_home:
      delay_time: 0
      pending_time: 0
    armed_away:
      delay_time: 60
      pending_time: 30
    triggered:
      pending_time: 0

########### Konnected Alarm System Activation ###########
  - alias: Trigger alarm while armed home or away
    trigger:
      - platform: state
        entry_id: binary_sensor.mudroom_garage_door
        to: 'on'
      - platform: state
        entry_id: binary_sensor.mudroom_outside_door
        to: 'on'
      - platform: state
        entry_id: binary_sensor.kitchen_outside_door
        to: 'on'
      - platform: state
        entry_id: binary_sensor.family_outside_door 
        to: 'on'
      - platform: state
        entry_id: binary_sensor.foyer_outside_door
        to: 'on'
      - platform: state
        entry_id: binary_sensor.den_glass_breakage
        to: 'on'
      - platform: state
        entry_id: binary_sensor.coffee_glass_breakage
        to: 'on'
      - platform: state
        entry_id: binary_sensor.family_glass_breakage
        to: 'on'
      - platform: state
        entry_id: binary_sensor.dinning_glass_breakage
        to: 'on'
      - platform: state
        entry_id: binary_sensor.foyer_motion_detector
        to: 'on'
      - platform: state
        entry_id: binary_sensor.smoke_detectors
        to: 'on'
      - platform: state
        entry_id: binary_sensor.garage_door_one_closed
        to: 'on'
      - platform: state
        entry_id: binary_sensor.garage_door_one_open
        to: 'on'
      - platform: state
        entry_id: binary_sensor.garage_door_two_closed
        to: 'on'
      - platform: state
        entry_id: binary_sensor.garage_door_two_open
        to: 'on'
      - platform: state
        entry_id: binary_sensor.garage_door_three_closed
        to: 'on'
      - platform: state
        entry_id: binary_sensor.garage_door_three_open
        to: 'on'
      - platform: state
        entry_id: binary_sensor.sump_float_level
        to: 'on'
      - platform: state
        entry_id: binary_sensor.cellar_bars
        to: 'on'
    condition:
      - condition: state
        entity_id: alarm_control_panel.alarm
        state: armed_away
      - condition: state
        entity_id: alarm_control_panel.alarm
        state: armed_home
    action:
      service: alarm_control_panel.alarm_trigger
      entity_id: alarm_control_panel.alarm

  - alias: 'Send notification when Alarm Triggered'
    trigger:
      - platform: state
        entity_id: alarm_control_panel.alarm
        to: 'triggered'
    action:
      -  service: notify.notify
         data:
         message: "ALARM! ALARM! - The Home Alarm has been Activated"

I answered this exact same question for you like a fortnight ago, and the answer is still exactly the same now as it was then.

I’m sorry but being a newbie can you link me to where I would what to do next?

Thank you,

Short of coming around to your house and typing automation: above your automations (below your alarm control panel configuration) I don’t really know what else I can do for you tbh.

I skimmed through your configuration.yaml file. Lots of binary_sensors, groups, mqtt, node-red, zwave, and more!

Nope, sorry. Unless someone else created the config file for you, you’re no longer eligible to use “newbie” as an excuse.

:wink:

Thanks for letting me love past the Newbie Level. Been watching tons of videos and working through what they are showing.

Thanks, I may be able to handle that. Cant believe how long I have been working on this, thought it was a formatting problem.

I’ve just realised that you have a linked file for automations, so your options are:

  • Comment out the line automation: !include automations.yaml if you’re not using it and add automation: above your automations after your alarm config

  • cut and paste the automations out of the configuration.yaml and in to the automations.yaml

  • leave the include line and put automation 2: above your automations after your alarm config