Configuration Errors

I am struggling with the errors I am getting?

Configuration invalid CHECK CONFIG

Invalid config for [alarm_control_panel]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 161). Please check the docs at https://home-assistant.io/components/alarm_control_panel/ Invalid config for [alarm_control_panel]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 161). Please check the docs at https://home-assistant.io/components/alarm_control_panel/

Configuration.yaml

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: xx.xxxxxx
  longitude: -xx.xxxxxx
  # 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:

# 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:

group: !include groups.yaml
automation: !include automations.yaml

###########################################################
############# Konnected Alarm System Boards ###############
###########################################################
konnected:
  access_token: konnected_token
#  api_host: http://192.168.1.3:8123
  devices:
  - id: 827d3a6e6507
    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'
  - id: 827d3a6eaa07
    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: 'Dinning Glass Breakage'
      - zone: 5
        type: motion
        name: 'Foyer Motion Detector'
  - id: 827d3a6e6707
    binary_sensors:
      - zone: 1
        type: smoke
        name: 'Smoke Detector in Upper Hall'
      - zone: 2
        type: smoke
        name: 'Smoke Detector in Master Bedroom'
      - zone: 3
        type: smoke
        name: 'Smoke Detector in Mudroom'
      - zone: 4
        type: smoke
        name: 'Fire Detector in Upper Hall'
      - zone: 5
        type: smoke
        name: 'Fire Detector in Master Bedroom'      
      - zone: 6
        type: smoke
        name: 'Fire Detector in Mudroom'
  - id: 827d3a6e3107
    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'
  - id: 827d3a6e4207
    binary_sensors:
      - zone: 1
        type: moisture
        name: 'Sump Float Level'
      - zone: 2
        type: window
        name: 'Cellar Bars'

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
  
  - 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: 
        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_detector_in_upper_hall
        to: 'on'
      - platform: state
        entry_id: binary_sensor.smoke_detector_in_master_bedroom
        to: 'on'
      - platform: state
        entry_id: binary_sensor.smoke_detector_in_mudroom
        to: 'on'
      - platform: state
        entry_id: binary_sensor.fire_detector_in_upper_hall
        to: 'on'
      - platform: state
        entry_id: binary_sensor.fire_detector_in_master_bedroom
        to: 'on'
      - platform: state
        entry_id: binary_sensor.fire_detector_in_mudroom
        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: or
      conditions:
      - 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: Alarm Triggered
    trigger:
      - platform: state
        entity_id: alarm_control_panel.alarm
        to: 'triggered'
    action:
      - service: notify.notify
        data:
          message: "!Alarm Triggered!"

Thanks for your input.

Immediately below your alarm control panel configuration you have some automations, but you haven’t actually put the automation: key at the start, so the system thinks those automations are part of your alarm control panel configuration, and it is causing your error.

Thank you its been a tough road still learning.

1 Like