home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.71k stars 28.87k forks source link

Not included device is showing up in Homekit via Homekit Integration #109046

Open Stothed775 opened 5 months ago

Stothed775 commented 5 months ago

The problem

Hello,

I have an issue with the official Homekit Integration via the GUI. I use the Home Bridge Integration to deploy some entities to Homekit, I use the "Bridge" Mode and the include Option, so only as included marked entities should appear in Homekit. Now I have a Problem with a Eve Energy Outlet - I paired it via Homekit and then use the Matter Integration in Home Assistant. The Device Works perfect in Homekit and Home Assistant - but it is automatically deployed to Homekit via Home Assistant - so it shows up twice in Homekit - I can´t find a solution for this. I also checked the YAML - there the device is not in the list of included entities.

What version of Home Assistant Core has the issue?

core-2024.1.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Homekit official Integration

Link to integration documentation on our website

No response

Diagnostics information

home-assistant_homekit_2024-01-29T11-09-32.073Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 5 months ago

Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (homekit) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `homekit` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign homekit` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


homekit documentation homekit source (message by IssueLinks)

Stothed775 commented 5 months ago

I tried again with 2 more Eve Energy - they were also displayed in Homekit, although I didn't include them.

SashaBusinaro commented 5 months ago

I have the same issue

ironbiff commented 4 months ago

I have the same problem with switches from different integrations but only with switches.

Stothed775 commented 4 months ago

Yes, only switches - lights etc. is working

lee-booy commented 4 months ago

Same issue and also with switches :)

andr3a88 commented 4 months ago

Same issue with light and switch from Bticino

ajcooper72 commented 4 months ago

Just to add more examples of this. I recently set up HomeKit and was very selective in the entities I added, but still around 30 extra switches were added.

maedball commented 4 months ago

Just to comment, this issue is very old, i have been experiencing this already nearly a year ago. I switched to exclude as i thought i was doing something wrong.

Exclude works well, problem here is that once you add new devices you have to add them to the exclude list.

dcarpio01 commented 3 months ago

Can confirm that EXCLUDE works as intended. Just select all the entities you don't want instead of selecting all the entities you want in INCLUDE mode. This should still be fixed though.

sumsh commented 3 months ago

Not sure if this is the same issue, but once I have added entities to HomeKit via INCLUDE, then un-check them (so as to no longer include them), they remain in HomeKit.

emiliosic commented 2 months ago

This was working for me until I added Z-Wave integration to Home Assistant, now I get what it seems all my lights

BrianC0000 commented 1 month ago

Maybe some insight on why this is happening... I recently moved two switched outlets from my HUE Hub to my HA Zigbee coordinator - and when I went to include those two items in the HA Bridge for HomeKit, I'm now seeing MANY devices being included in HomeKit.... Is it possible the device ID somehow carried over and is confusing one of the integrations? I did give them the same names to make it easier for the wife. Not sure how to fix it though other than using the "exclude" method mentioned above.

gravelfreeman commented 3 weeks ago

Can't believe I've seen a topic from 2021 and couldn't believe that this issue was still happening. Ended up here to see that it's still not fixed?

thogens commented 1 week ago

Not sure if this is the same issue, but once I have added entities to HomeKit via INCLUDE, then un-check them (so as to no longer include them), they remain in HomeKit.

Same here. - I was wondering if I'm doing something wrong... Strange.

gravelfreeman commented 1 week ago

Not sure if this is the same issue, but once I have added entities to HomeKit via INCLUDE, then un-check them (so as to no longer include them), they remain in HomeKit.

Same here. - I was wondering if I'm doing something wrong... Strange.

I believe that setting up through gui is broken. I could get everything to work perfectly by using yaml configuration instead.

Add this line homekit: !include homekit.yaml to your configuration.yaml file.

Create a new homekit.yaml file at the root of your installation.

  - name: Room 1
    # Use a different port for every room    
    port: 51828
    filter:
      # List all entities for that room
      include_entities:
       - climate.room_1
       - sensor.humidity_room_1
       - light.room_1
  - name: Room 2
    port: 51829
    filter:
      include_entities:
       - climate.room_1
       - sensor.humidity_room_1
       - light.room_1

As you can see I do one configuration for each room. This is much easier to import and manage in homekit.

Hope this helps.