HomeKit component config failing in 0.107.0

Maybe 0.107.0 is a little pickier than previous versions, but my HomeKit component (not controller) config is failing when it did previously work. Does anyone see anything glaringly wrong here?

homekit:
  filter:
    include_entities:
      # Scenes
      - script.leave_home
      - script.lock_the_house
      - script.arrive_home
      - script.open_sesame
      - script.goodnight
      - script.movie_night
      - script.movie_end
      - script.outside_lights_evening

      # Scene triggers
      - input_boolean.good_morning_boolean
      - input_boolean.exercise_boolean
      - input_boolean.vacation_mode_boolean

      # Group switches
      - switch.upstairs_lights_switch
      - switch.downstairs_lights_switch
      - switch.outside_lights_switch

      # Harmony switches
      - switch.harmony_goodnight_switch
      - switch.harmony_master_bedroom_fan_switch
      - switch.harmony_master_bedroom_fan_light_switch

      # Irrigation
      - switch.driveway_right_sprinklers
      - switch.driveway_left_sprinklers
      - switch.front_yard_sprinklers
      - switch.side_yard_sprinklers
      - switch.back_yard_sprinklers

      # Lutron Caseta
        # Upstairs Lights
      - light.loft_lights
      - light.loft_stairway_light
      - light.bens_room_closet_light
      - light.bens_bathroom_lights
      - light.bens_bathroom_shower_lights
      - light.emilys_bathroom_lights
      - light.emilys_bathroom_shower_lights
      - light.emilys_room_lights

        # Downstairs Lights
      - light.kitchen_kitchen_lights
      - light.kitchen_kitchen_table_lights
      - light.family_room_tv_lights
      - light.dining_room_lights
      - light.living_room_lights
      - light.hallway_front_door_light
      - light.hallway_hallway_lights
      - light.master_bathroom_master_bathroom_main_lights
      - light.master_bathroom_toilet_lights

        # Outside Lights
      - light.patio_lights
      - light.garage_lights

        # Fans
      - fan.bens_room_ceiling_fan
      - fan.emilys_room_ceiling_fan
      - fan.office_ceiling_fan


      # Philips Hue
        # Upstairs Lights
      - light.ben_s_room
      - light.office

        # Downstairs Lights
      - light.kitchen_cabinet_lights
      - light.kitchen_sink_lights
      - light.family_room
      - light.master_bedroom
      - light.master_bathroom
      - light.hue_light

        # Outside Lights
      - light.front_porch
      - light.front_porch_ceiling_lights
      - light.hue_outdoor_wall_patio
      - light.patio_spotlights
      - light.patio_ceiling_lights
      - light.hue_outdoor_wall_garage
      - light.driveway_spotlights

      # Presence/Motion
      - input_boolean.mike_presence_boolean
      - input_boolean.jamie_presence_boolean
      - input_boolean.first_person_arrive_home_timer_boolean
      - input_boolean.arrive_home_timer_boolean
      - input_boolean.downstairs_motion

      # Halloween Switches
      - input_boolean.halloween_lights_boolean
      - input_boolean.halloween_zombies_boolean
      - input_boolean.halloween_zombie_attack_boolean

      # Locks
      - lock.kitchen_door
      - lock.back_door

      # Miscellaneous
      - input_boolean.loft_fan_boolean
      - input_boolean.loft_fan_light_boolean
      - input_boolean.garage_cabinet_light_boolean
      
    exclude_domains:
      - alarm_control_panel
      - automation
      - binary_sensor
      - climate
      - fan
      - input_boolean
      - light
      - remote
      - script
      - sensor
      - switch
      - cover
      - lock
       
  entity_config:
    switch.driveway_right_sprinklers:
      type: sprinkler
    switch.driveway_left_sprinklers:
      type: sprinkler
    switch.front_yard_sprinklers:
      type: sprinkler
    switch.side_yard_sprinklers:
      type: sprinkler
    switch.back_yard_sprinklers:
      type: sprinkler

  auto_start: false

Why is switch excluded, don’t you want switch for sprinklers?

Good question. I have a ton of entities in HA and I want to pick and choose exactly which ones I pass on to HomeKit. So I exclude all domains and then include individual devices.

I do the same thing, I use a include_entity.yaml for my HomeKit stuff. I just saw that and figured I would ask! All my stuff seems ok so far…

@Corey_Maxim Is your homekit config working in 0.107.0? If so, do you mind sharing? I probably just have something goofed up which was acceptable in previous versions.

Yes everything is working good!
configuration.yaml

homekit:
  auto_start: false
  filter:
    include_entities: !include include_entities.yaml

include_entities.yaml

################################################################################

#                     Window and Door Sensors                                  #

################################################################################
      - binary_sensor.door_window_sensor_158d000237ca6e # Mailbox
      - binary_sensor.door_window_sensor_158d0002c39646 #Garage Door
      - binary_sensor.door_window_sensor_158d0002c94a1f #Diningroom Door
      - binary_sensor.door_window_sensor_158d0002c98526 # Morgans Door
      - binary_sensor.door_window_sensor_158d0002c9e488
      - binary_sensor.door_window_sensor_158d0002c9f1b8 # Camerons Door
      - binary_sensor.door_window_sensor_158d00032b69e1
      - binary_sensor.door_window_sensor_158d000227976c # Glass Door
      - binary_sensor.door_window_sensor_158d00022eff87 # Front Door

################################################################################

#                   Motion Sensors                                             #

################################################################################

#      - binary_sensor.door_bathroom

################################################################################

#                      Nest Thermostat                                         #

################################################################################
      - climate.living_room
################################################################################
#                   Input Booleans                                             #
################################################################################
      - input_boolean.garage_trigger
      - input_boolean.main
      - input_boolean.corey_home
      - input_boolean.courtney_home

I’m not sure if this helps, I hope it does!

1 Like

Thanks @Corey_Maxim! So, you do not use any excludes? Doesn’t HA load everything by default?

no, it only loads the includes.

I don’t know what is going on here. I dumbed it down to just this and it still fails.

Invalid config

The following integrations and platforms could not be set up:

Please check your config.

homekit:
  auto_start: false
  filter:
    include_domains:
      - light

Did you try,

homeKit:
  auto_start: false

Only? Just to see what happens?

I don’t know what happened, but it magically started working after I installed 0.107.1 and restarted a bunch of times. Maybe I need to put the crack pipe down for a while. But it does seem good now!