#multiple homekit instances in yaml

1 messages · Page 1 of 1 (latest)

vale totem
#

is there a way to have multiple homekit instances in yaml? every way i have tried to do it has ended up with a duplicate items config error.

so far i have tried:

#

a singe homekit section with multiple name fields:

homekit:
  - name: Front Door Camera
    mode: accessory
    filter:
      include_entities:
        - camera.front_door
    entity_config:
      camera.front_door:
        linked_doorbell_sensor: binary_sensor.doorbell
        linked_motion_sensor: binary_sensor.front_door_all_occupancy
  - name: Front Door Camera
    mode: accessory
    filter:
      include_entities:
        - camera.side_gate
    entity_config:
      camera.side_gate:
        linked_motion_sensor: binary_sensor.side_gate_all_occupancy
  - name: Driveway Camera
    mode: accessory
    filter:
      include_entities:
        - camera.driveway
    entity_config:
      camera.driveway:
        linked_motion_sensor: binary_sensor.driveway_all_occupancy

and that gets me this error: Invalid config for 'homekit' at configuration.yaml, line 754: contains duplicate items: ['Front Door Camera'] for dictionary value 'homekit', got [{'name': 'Front Door Camera', 'mode': 'accessory', 'filter': {'include_entities': ['camera.front_door']}, 'entity_config': {'camera.front_door': {'linked_doorbell_sensor': 'binary_sensor.doorbell', 'linked_motion_sensor': 'binary_sensor.front_door_all_occupancy'}}}, {'name': 'Front Door Camera', 'mode': 'accessory', 'filter': {'include_entities': ['camera.side_gate']}, 'entity_config': {'camera.side_gate': {'linked_motion_sensor': 'binary_sensor.side_gate_all_occupancy'}}}, {'name': 'Drivewa..., please check the docs at https://www.home-assistant.io/integrations/homekit

#

and seprate homekit sections for each bridge:

homekit:
  - name: Front Door Camera
    mode: accessory
    filter:
      include_entities:
        - camera.front_door
    entity_config:
      camera.front_door:
        linked_doorbell_sensor: binary_sensor.doorbell
        linked_motion_sensor: binary_sensor.front_door_all_occupancy

homekit:
  - name: Front Door Camera
    mode: accessory
    filter:
      include_entities:
        - camera.side_gate
    entity_config:
      camera.side_gate:
        linked_motion_sensor: binary_sensor.side_gate_all_occupancy

homekit:
  - name: Driveway Camera
    mode: accessory
    filter:
      include_entities:
        - camera.driveway
    entity_config:
      camera.driveway:
        linked_motion_sensor: binary_sensor.driveway_all_occupancy

and that gives me this error

- YAML file /config/configuration.yaml contains duplicate key "homekit". Check lines 770 and 781
- YAML file /config/configuration.yaml contains duplicate key "homekit". Check lines 781 and 791
dense cipher
#

Your first example seemed more correct to me. Front Door Camera is listed twice though they probably need distinct names