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
73.31k stars 30.62k forks source link

HomeKit devices show up as “No Response” in Home after migrating HA OS VM to different hypervisor #88728

Closed Jaharmi closed 1 year ago

Jaharmi commented 1 year ago

The problem

I migrated my Home Assistant OS virtual machine from ESXi 6.7 to two different hypervisors, Proxmox and XCP-ng.

Before the migration of the HA OS VM, both of these functions worked. I would like to get the HomeKit integration function working without having to reset and re-pair my devices.

Each migration was done by shutting down the ESXi VM and downloading it as an OVA file. The OVA file was then uploaded/imported into the hypervisor. I edited the imported VM in the new hypervisor to match the network interface configuration with the Ethernet MAC address from the original ESXi VM.

I feel as if there is some change or unique identifier that is different between the ESXi VM and the resulting VM in the other hypervisors.

I described this problem in more detail in the forum under Migrate Home Assistant VM from VMware ESXi to Proxmox while keeping HomeKit devices working in Apple Home app .

What version of Home Assistant Core has the issue?

core-2023.2.5

What was the last working version of Home Assistant Core?

Never worked

What type of installation are you running?

Home Assistant OS

Integration causing the issue

HomeKit

Link to integration documentation on our website

https://www.home-assistant.io/integrations/homekit/

Diagnostics information

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2023.2.5", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.7", "docker": true, "arch": "x86_64", "timezone": "America/New_York", "os_name": "Linux", "os_version": "5.15.90", "supervisor": "2023.01.1", "host_os": "Home Assistant OS 9.5", "docker_version": "20.10.22", "chassis": "vm", "run_as_root": true }, "custom_components": { "peloton": { "version": "0.9.0", "requirements": [ "pylotoncycle==0.6.0" ] }, "alarmo": { "version": "v1.9.7", "requirements": [] }, "nws_alerts": { "version": "2.8", "requirements": [] }, "webrtc": { "version": "v3.1.0", "requirements": [] }, "car_wash": { "version": "1.5.5", "requirements": [] }, "adaptive_lighting": { "version": "1.4.1", "requirements": [] }, "schedule_state": { "version": "0.18.0", "requirements": [ "portion==2.3.0" ] }, "next_holiday": { "version": "0.3.2", "requirements": [ "holidays" ] }, "average": { "version": "2.3.0", "requirements": [] }, "ups": { "version": "1.0.0", "requirements": [ "upsmychoice==1.0.6" ] }, "pfsense": { "version": "0.1.0", "requirements": [ "mac-vendor-lookup>=0.1.11" ] }, "securityspy": { "version": "1.1.7", "requirements": [ "pysecspy==1.3.5" ] }, "ics_calendar": { "version": "3.1.7", "requirements": [ "ics>=0.7.2", "recurring_ical_events>=1.0.2b0", "icalendar>=4.1.0" ] }, "ical": { "version": "1.3", "requirements": [ "icalendar==4.0.7" ] }, "edge_tts": { "version": "0.0.1", "requirements": [ "edge-tts==6.1.3" ] }, "govee": { "version": "0.2.2", "requirements": [ "govee-api-laggat==0.2.2", "dacite==1.6.0" ] }, "smart_irrigation": { "version": "0.0.78", "requirements": [] }, "tivo": { "version": "0.88.1", "requirements": [] }, "populartimes": { "version": "0.26", "requirements": [ "LivePopularTimes==1.3" ] }, "fontawesome": { "version": "2.1.5", "requirements": [] }, "holidays": { "version": "1.9.4", "requirements": [ "python-dateutil>=2.8.2", "holidays>=0.14.2" ] }, "rocketlaunchlive": { "version": "009", "requirements": [ "rocketlaunchlive==0.0.2" ] }, "garbage_collection": { "version": "4.10.2", "requirements": [ "python-dateutil>=2.8.2" ] }, "blitzortung": { "version": "1.0.1", "requirements": [ "paho-mqtt>=1.5.0" ] }, "hacs": { "version": "1.30.1", "requirements": [ "aiogithubapi>=22.10.1" ] }, "mail_and_packages": { "version": "0.3.10", "requirements": [ "beautifulsoup4", "Pillow>=9.0" ] }, "toyota_na": { "version": "2.1.2", "requirements": [ "toyota-na==2.1.1" ] }, "sun2": { "version": "2.2.1", "requirements": [] }, "entity_controller": { "version": "9.6.0", "requirements": [ "transitions==0.8.8" ] }, "feedparser": { "version": "0.1.7", "requirements": [ "feedparser==6.0.8" ] }, "sonos_alarm": { "version": "1.1.1", "requirements": [ "pysonos" ] }, "anniversaries": { "version": "4.5.0", "requirements": [ "python-dateutil>=2.8.1", "integrationhelper>=0.2.2", "voluptuous>=0.12.1" ] } }, "integration_manifest": { "domain": "homekit", "name": "HomeKit", "documentation": "https://www.home-assistant.io/integrations/homekit", "requirements": [ "HAP-python==4.6.0", "fnvhash==0.1.0", "PyQRCode==1.2.1", "base36==0.1.1" ], "dependencies": [ "ffmpeg", "http", "network" ], "after_dependencies": [ "camera", "zeroconf" ], "codeowners": [ "@bdraco" ], "zeroconf": [ "_homekit._tcp.local." ], "config_flow": true, "iot_class": "local_push", "loggers": [ "pyhap" ], "is_built_in": true }, "data": { "status": 1, "config-entry": { "title": "HA-Living-Room:51831", "version": 1, "data": { "name": "HA-Living-Room", "ip_address": "192.168.1.130", "advertise_ip": "192.168.1.130", "port": 51831 }, "options": { "filter": { "include_entity_globs": [ "[s,l].wall_outlet_00404696", "s.satechi_do1_b58240", "s.satechi_do1_b58450", "sensor.05e5a4_" ], "exclude_domains": [], "include_entities": [], "exclude_entities": [], "include_domains": [], "exclude_entity_globs": [] }, "entity_config": {}, "mode": "bridge" } }, "iid_storage": { "1": { "3E14_": 2, "3E_20": 3, "3E21_": 4, "3E23_": 5, "3E_30": 6, "3E52_": 7, "A2_": 8, "A2_37": 9 }, "2095394042": { "3E14_": 2, "3E20_": 3, "3E_21": 4, "3E23_": 5, "3E30_": 6, "3E_52": 7, "3E53_": 8, "85_": 9, "85_22": 10 }, "1899714425": { "3E14_": 2, "3E20_": 3, "3E_21": 4, "3E23_": 5, "3E30_": 6, "3E_52": 7, "3E53_": 8, "86_": 9, "86_71": 10 }, "102335712": { "3E14_": 2, "3E20_": 3, "3E_21": 4, "3E23_": 5, "3E30_": 6, "3E_52": 7, "3E53_": 8, "84_": 9, "84_6B": 10 }, "3443806555": { "3E14_": 2, "3E20_": 3, "3E_21": 4, "3E23_": 5, "3E30_": 6, "3E_52": 7, "3E53_": 8, "8A_": 9, "8A_11": 10 }, "1054805082": { "3E14_": 2, "3E20_": 3, "3E_21": 4, "3E23_": 5, "3E30_": 6, "3E_52": 7, "3E53_": 8, "82_": 9, "82_10": 10 }, "3655774668": { "3E14_": 2, "3E20_": 3, "3E_21": 4, "3E23_": 5, "3E30_": 6, "3E52": 7, "49": 8, "49_25": 9 }, "1965347983": { "3E14_": 2, "3E20_": 3, "3E_21": 4, "3E23_": 5, "3E30_": 6, "3E52": 7, "49": 8, "49_25": 9 }, "2004598386": { "3E14_": 2, "3E20_": 3, "3E_21": 4, "3E23_": 5, "3E30_": 6, "3E52": 7, "49": 8, "49_25": 9 }, "3974311838": { "3E14_": 2, "3E20_": 3, "3E_21": 4, "3E23_": 5, "3E30_": 6, "3E52": 7, "49": 8, "49_25": 9 }, "249370208": { "3E14_": 2, "3E20_": 3, "3E_21": 4, "3E23_": 5, "3E30_": 6, "3E_52": 7, "3E53_": 8, "49_": 9, "49_25": 10 }, "333258303": { "3E14_": 2, "3E20_": 3, "3E_21": 4, "3E23_": 5, "3E30_": 6, "3E_52": 7, "3E53_": 8, "49_": 9, "49_25": 10 }, "3759495589": { "3E14_": 2, "3E20_": 3, "3E_21": 4, "3E23_": 5, "3E30_": 6, "3E_52": 7, "3E53_": 8, "43_": 9, "43_25": 10, "438_": 11, "43_13": 12, "43_2F": 13 } }, "bridge": { "102335712": { "aid": 102335712, "config": { "manufacturer": "esphome", "model": "bluetooth-proxy", "sw_version": "2023.2.3 (Feb 19 2023, 21:36:50)", "hw_version": "1.0", "platform": "esphome" }, "category": 10, "name": "05e5a4 Illuminance", "entity_id": "sensor.05e5a4_illuminance", "entity_state": { "entity_id": "sensor.05e5a4_illuminance", "state": "15.00", "attributes": { "state_class": "measurement", "unit_of_measurement": "lx", "device_class": "illuminance", "friendly_name": "05e5a4 Illuminance" }, "last_changed": "2023-02-25T00:12:25.176459+00:00", "last_updated": "2023-02-25T00:12:25.176459+00:00", "context": { "id": "01GT2YKTPR826CVRMD969SNRCX", "parent_id": null, "user_id": null } } }, "3443806555": { "aid": 3443806555, "config": { "manufacturer": "esphome", "model": "bluetooth-proxy", "sw_version": "2023.2.3 (Feb 19 2023, 21:36:50)", "hw_version": "1.0", "platform": "esphome" }, "category": 10, "name": "05e5a4 Temperature", "entity_id": "sensor.05e5a4_temperature", "entity_state": { "entity_id": "sensor.05e5a4_temperature", "state": "65.5", "attributes": { "state_class": "measurement", "unit_of_measurement": "\u00b0F", "device_class": "temperature", "friendly_name": "05e5a4 Temperature" }, "last_changed": "2023-02-25T00:15:28.235661+00:00", "last_updated": "2023-02-25T00:15:28.235661+00:00", "context": { "id": "01GT2YSDFBAW5ED44A40WWMXCZ", "parent_id": null, "user_id": null } } }, "1054805082": { "aid": 1054805082, "config": { "manufacturer": "esphome", "model": "bluetooth-proxy", "sw_version": "2023.2.3 (Feb 19 2023, 21:36:50)", "hw_version": "1.0", "platform": "esphome" }, "category": 10, "name": "05e5a4 Humidity", "entity_id": "sensor.05e5a4_humidity", "entity_state": { "entity_id": "sensor.05e5a4_humidity", "state": "44", "attributes": { "state_class": "measurement", "unit_of_measurement": "%", "device_class": "humidity", "friendly_name": "05e5a4 Humidity" }, "last_changed": "2023-02-25T00:12:28.230239+00:00", "last_updated": "2023-02-25T00:12:28.230239+00:00", "context": { "id": "01GT2YKXP6ST4KVMBPVFBCCVZH", "parent_id": null, "user_id": null } } }, "2095394042": { "aid": 2095394042, "config": { "manufacturer": "esphome", "model": "bluetooth-proxy", "sw_version": "2023.2.3 (Feb 19 2023, 21:36:50)", "hw_version": "1.0", "platform": "esphome" }, "category": 10, "name": "05e5a4 PIR", "entity_id": "binary_sensor.05e5a4_pir", "entity_state": { "entity_id": "binary_sensor.05e5a4_pir", "state": "off", "attributes": { "device_class": "motion", "friendly_name": "05e5a4 PIR" }, "last_changed": "2023-02-25T00:12:25.166363+00:00", "last_updated": "2023-02-25T00:12:25.166363+00:00", "context": { "id": "01GT2YKTPEVWWGDBTK694G2TCV", "parent_id": null, "user_id": null } } }, "1899714425": { "aid": 1899714425, "config": { "manufacturer": "esphome", "model": "bluetooth-proxy", "sw_version": "2023.2.3 (Feb 19 2023, 21:36:50)", "hw_version": "1.0", "platform": "esphome" }, "category": 10, "name": "05e5a4 Status", "entity_id": "binary_sensor.05e5a4_status", "entity_state": { "entity_id": "binary_sensor.05e5a4_status", "state": "on", "attributes": { "device_class": "connectivity", "friendly_name": "05e5a4 Status" }, "last_changed": "2023-02-25T00:12:25.167362+00:00", "last_updated": "2023-02-25T00:12:25.167362+00:00", "context": { "id": "01GT2YKTPFKAY4EV1GJHFM2ENA", "parent_id": null, "user_id": null } } }, "3655774668": { "aid": 3655774668, "config": { "manufacturer": "Satechi", "model": "ST-HK2OA", "sw_version": "3.3.6", "platform": "homekit_controller" }, "category": 8, "name": "Window Lamp", "entity_id": "switch.satechi_do1_b58240_1", "entity_state": { "entity_id": "switch.satechi_do1_b58240_1", "state": "off", "attributes": { "outlet_in_use": true, "friendly_name": "Window Lamp", "icon": "mdi-outlet" }, "last_changed": "2023-02-24T23:29:29.859565+00:00", "last_updated": "2023-02-24T23:29:29.859565+00:00", "context": { "id": "01GT2W57QDJNENRWBDFJR662CA", "parent_id": null, "user_id": "34751b9075cb4b1db244290fe53ce0c2" } } }, "1965347983": { "aid": 1965347983, "config": { "manufacturer": "Satechi", "model": "ST-HK2OA", "sw_version": "3.3.6", "platform": "homekit_controller" }, "category": 8, "name": "Window Outlet", "entity_id": "switch.satechi_do1_b58240_2", "entity_state": { "entity_id": "switch.satechi_do1_b58240_2", "state": "off", "attributes": { "outlet_in_use": false, "friendly_name": "Window Outlet", "icon": "mdi-outlet" }, "last_changed": "2023-02-24T23:29:38.481255+00:00", "last_updated": "2023-02-24T23:29:38.481255+00:00", "context": { "id": "01GT2W5G4TJV8CQ0A7EZPX813Z", "parent_id": null, "user_id": "34751b9075cb4b1db244290fe53ce0c2" } } }, "2004598386": { "aid": 2004598386, "config": { "manufacturer": "Satechi", "model": "ST-HK2OA", "sw_version": "4.1.5", "platform": "homekit_controller" }, "category": 8, "name": "Chair Lamp", "entity_id": "switch.satechi_do1_b58450_1", "entity_state": { "entity_id": "switch.satechi_do1_b58450_1", "state": "off", "attributes": { "outlet_in_use": true, "friendly_name": "Chair Lamp", "icon": "mdi-lamp" }, "last_changed": "2023-02-24T23:19:22.879985+00:00", "last_updated": "2023-02-24T23:19:22.879985+00:00", "context": { "id": "01GT2VJPZZFA1G1G7HHPJN7J98", "parent_id": null, "user_id": null } } }, "3974311838": { "aid": 3974311838, "config": { "manufacturer": "Satechi", "model": "ST-HK2OA", "sw_version": "4.1.5", "platform": "homekit_controller" }, "category": 8, "name": "Corner Lamp", "entity_id": "switch.satechi_do1_b58450_2", "entity_state": { "entity_id": "switch.satechi_do1_b58450_2", "state": "on", "attributes": { "outlet_in_use": true, "friendly_name": "Corner Lamp", "icon": "mdi-lamp" }, "last_changed": "2023-02-24T23:19:22.904472+00:00", "last_updated": "2023-02-24T23:19:22.904472+00:00", "context": { "id": "01GT2VJQ0R5ZRWMG3Z1D1P88CW", "parent_id": null, "user_id": null } } } }, "accessories": [ { "aid": 1, "services": [ { "iid": 1, "type": "3E", "characteristics": [ { "iid": 2, "type": "14", "perms": [ "pw" ], "format": "bool" }, { "iid": 3, "type": "20", "perms": [ "pr" ], "format": "string", "value": "Home Assistant" }, { "iid": 4, "type": "21", "perms": [ "pr" ], "format": "string", "value": "Bridge" }, { "iid": 5, "type": "23", "perms": [ "pr" ], "format": "string", "value": "HA-Living-Room" }, { "iid": 6, "type": "30", "perms": [ "pr" ], "format": "string", "value": "homekit.bridge" }, { "iid": 7, "type": "52", "perms": [ "pr" ], "format": "string", "value": "2023.2.5" } ] }, { "iid": 8, "type": "A2", "characteristics": [ { "iid": 9, "type": "37", "perms": [ "pr", "ev" ], "format": "string", "value": "01.01.00" } ] } ] }, { "aid": 102335712, "services": [ { "iid": 1, "type": "3E", "characteristics": [ { "iid": 2, "type": "14", "perms": [ "pw" ], "format": "bool" }, { "iid": 3, "type": "20", "perms": [ "pr" ], "format": "string", "value": "esphome" }, { "iid": 4, "type": "21", "perms": [ "pr" ], "format": "string", "value": "bluetooth-proxy" }, { "iid": 5, "type": "23", "perms": [ "pr" ], "format": "string", "value": "05e5a4 Illuminance" }, { "iid": 6, "type": "30", "perms": [ "pr" ], "format": "string", "value": "sensor.05e5a4_illuminance" }, { "iid": 7, "type": "52", "perms": [ "pr" ], "format": "string", "value": "2023.2.3" }, { "iid": 8, "type": "53", "perms": [ "pr" ], "format": "string", "value": "1.0" } ] }, { "iid": 9, "type": "84", "characteristics": [ { "iid": 10, "type": "6B", "perms": [ "pr", "ev" ], "format": "float", "minValue": 0.0001, "maxValue": 100000, "unit": "lux", "value": 15.0 } ] } ] }, { "aid": 3443806555, "services": [ { "iid": 1, "type": "3E", "characteristics": [ { "iid": 2, "type": "14", "perms": [ "pw" ], "format": "bool" }, { "iid": 3, "type": "20", "perms": [ "pr" ], "format": "string", "value": "esphome" }, { "iid": 4, "type": "21", "perms": [ "pr" ], "format": "string", "value": "bluetooth-proxy" }, { "iid": 5, "type": "23", "perms": [ "pr" ], "format": "string", "value": "05e5a4 Temperature" }, { "iid": 6, "type": "30", "perms": [ "pr" ], "format": "string", "value": "sensor.05e5a4_temperature" }, { "iid": 7, "type": "52", "perms": [ "pr" ], "format": "string", "value": "2023.2.3" }, { "iid": 8, "type": "53", "perms": [ "pr" ], "format": "string", "value": "1.0" } ] }, { "iid": 9, "type": "8A", "characteristics": [ { "iid": 10, "type": "11", "perms": [ "pr", "ev" ], "format": "float", "minValue": -273, "maxValue": 999, "minStep": 0.1, "unit": "celsius", "value": 18.6 } ] } ] }, { "aid": 1054805082, "services": [ { "iid": 1, "type": "3E", "characteristics": [ { "iid": 2, "type": "14", "perms": [ "pw" ], "format": "bool" }, { "iid": 3, "type": "20", "perms": [ "pr" ], "format": "string", "value": "esphome" }, { "iid": 4, "type": "21", "perms": [ "pr" ], "format": "string", "value": "bluetooth-proxy" }, { "iid": 5, "type": "23", "perms": [ "pr" ], "format": "string", "value": "05e5a4 Humidity" }, { "iid": 6, "type": "30", "perms": [ "pr" ], "format": "string", "value": "sensor.05e5a4_humidity" }, { "iid": 7, "type": "52", "perms": [ "pr" ], "format": "string", "value": "2023.2.3" }, { "iid": 8, "type": "53", "perms": [ "pr" ], "format": "string", "value": "1.0" } ] }, { "iid": 9, "type": "82", "characteristics": [ { "iid": 10, "type": "10", "perms": [ "pr", "ev" ], "format": "float", "minValue": 0, "maxValue": 100, "minStep": 1, "unit": "percentage", "value": 44 } ] } ] }, { "aid": 2095394042, "services": [ { "iid": 1, "type": "3E", "characteristics": [ { "iid": 2, "type": "14", "perms": [ "pw" ], "format": "bool" }, { "iid": 3, "type": "20", "perms": [ "pr" ], "format": "string", "value": "esphome" }, { "iid": 4, "type": "21", "perms": [ "pr" ], "format": "string", "value": "bluetooth-proxy" }, { "iid": 5, "type": "23", "perms": [ "pr" ], "format": "string", "value": "05e5a4 PIR" }, { "iid": 6, "type": "30", "perms": [ "pr" ], "format": "string", "value": "binary_sensor.05e5a4_pir" }, { "iid": 7, "type": "52", "perms": [ "pr" ], "format": "string", "value": "2023.2.3" }, { "iid": 8, "type": "53", "perms": [ "pr" ], "format": "string", "value": "1.0" } ] }, { "iid": 9, "type": "85", "characteristics": [ { "iid": 10, "type": "22", "perms": [ "pr", "ev" ], "format": "bool", "value": false } ] } ] }, { "aid": 1899714425, "services": [ { "iid": 1, "type": "3E", "characteristics": [ { "iid": 2, "type": "14", "perms": [ "pw" ], "format": "bool" }, { "iid": 3, "type": "20", "perms": [ "pr" ], "format": "string", "value": "esphome" }, { "iid": 4, "type": "21", "perms": [ "pr" ], "format": "string", "value": "bluetooth-proxy" }, { "iid": 5, "type": "23", "perms": [ "pr" ], "format": "string", "value": "05e5a4 Status" }, { "iid": 6, "type": "30", "perms": [ "pr" ], "format": "string", "value": "binary_sensor.05e5a4_status" }, { "iid": 7, "type": "52", "perms": [ "pr" ], "format": "string", "value": "2023.2.3" }, { "iid": 8, "type": "53", "perms": [ "pr" ], "format": "string", "value": "1.0" } ] }, { "iid": 9, "type": "86", "characteristics": [ { "iid": 10, "type": "71", "perms": [ "pr", "ev" ], "format": "uint8", "valid-values": [ 0, 1 ], "value": 1 } ] } ] }, { "aid": 3655774668, "services": [ { "iid": 1, "type": "3E", "characteristics": [ { "iid": 2, "type": "14", "perms": [ "pw" ], "format": "bool" }, { "iid": 3, "type": "20", "perms": [ "pr" ], "format": "string", "value": "Satechi" }, { "iid": 4, "type": "21", "perms": [ "pr" ], "format": "string", "value": "ST-HK2OA" }, { "iid": 5, "type": "23", "perms": [ "pr" ], "format": "string", "value": "Window Lamp" }, { "iid": 6, "type": "30", "perms": [ "pr" ], "format": "string", "value": "switch.satechi_do1_b58240_1" }, { "iid": 7, "type": "52", "perms": [ "pr" ], "format": "string", "value": "3.3.6" } ] }, { "iid": 8, "type": "49", "characteristics": [ { "iid": 9, "type": "25", "perms": [ "pr", "pw", "ev" ], "format": "bool", "value": false } ] } ] }, { "aid": 1965347983, "services": [ { "iid": 1, "type": "3E", "characteristics": [ { "iid": 2, "type": "14", "perms": [ "pw" ], "format": "bool" }, { "iid": 3, "type": "20", "perms": [ "pr" ], "format": "string", "value": "Satechi" }, { "iid": 4, "type": "21", "perms": [ "pr" ], "format": "string", "value": "ST-HK2OA" }, { "iid": 5, "type": "23", "perms": [ "pr" ], "format": "string", "value": "Window Outlet" }, { "iid": 6, "type": "30", "perms": [ "pr" ], "format": "string", "value": "switch.satechi_do1_b58240_2" }, { "iid": 7, "type": "52", "perms": [ "pr" ], "format": "string", "value": "3.3.6" } ] }, { "iid": 8, "type": "49", "characteristics": [ { "iid": 9, "type": "25", "perms": [ "pr", "pw", "ev" ], "format": "bool", "value": false } ] } ] }, { "aid": 2004598386, "services": [ { "iid": 1, "type": "3E", "characteristics": [ { "iid": 2, "type": "14", "perms": [ "pw" ], "format": "bool" }, { "iid": 3, "type": "20", "perms": [ "pr" ], "format": "string", "value": "Satechi" }, { "iid": 4, "type": "21", "perms": [ "pr" ], "format": "string", "value": "ST-HK2OA" }, { "iid": 5, "type": "23", "perms": [ "pr" ], "format": "string", "value": "Chair Lamp" }, { "iid": 6, "type": "30", "perms": [ "pr" ], "format": "string", "value": "switch.satechi_do1_b58450_1" }, { "iid": 7, "type": "52", "perms": [ "pr" ], "format": "string", "value": "4.1.5" } ] }, { "iid": 8, "type": "49", "characteristics": [ { "iid": 9, "type": "25", "perms": [ "pr", "pw", "ev" ], "format": "bool", "value": false } ] } ] }, { "aid": 3974311838, "services": [ { "iid": 1, "type": "3E", "characteristics": [ { "iid": 2, "type": "14", "perms": [ "pw" ], "format": "bool" }, { "iid": 3, "type": "20", "perms": [ "pr" ], "format": "string", "value": "Satechi" }, { "iid": 4, "type": "21", "perms": [ "pr" ], "format": "string", "value": "ST-HK2OA" }, { "iid": 5, "type": "23", "perms": [ "pr" ], "format": "string", "value": "Corner Lamp" }, { "iid": 6, "type": "30", "perms": [ "pr" ], "format": "string", "value": "switch.satechi_do1_b58450_2" }, { "iid": 7, "type": "52", "perms": [ "pr" ], "format": "string", "value": "4.1.5" } ] }, { "iid": 8, "type": "49", "characteristics": [ { "iid": 9, "type": "25", "perms": [ "pr", "pw", "ev" ], "format": "bool", "value": true } ] } ] } ], "client_properties": { "a02263e3-2a76-45c3-9d67-8a5b4922dd6f": { "permissions": 1 }, "9e65a6a3-9816-4aa7-b119-5c4d4e856d76": { "permissions": 1 }, "0f24f93d-8cd1-4b3e-b0ba-6cc9982c27ee": { "permissions": 1 }, "4c37dcac-dbbe-414f-88bb-21ddacb42d4c": { "permissions": 0 } }, "config_version": 225, "pairing_id": "5E:09:76:AF:67:68" } }

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

The diagnostic file attached is for one of my several HomeKit bridges defined in the Home integration.

If there are particular things I can look for in the logs, I have downloaded some logs from the XCP-ng HA OS VM.

I could also look for items broadcast via Bonjour if that would help.

Since I have more than one HomeKit bridge defined via the HomeKit integration, I could sacrifice one to try to remove it from the Home app, re-add it, and see if the associated devices work in the Home app.

home-assistant[bot] commented 1 year 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.

(message by CodeOwnersMention)


homekit documentation homekit source (message by IssueLinks)

Jaharmi commented 1 year ago

I have filtered the HA core logs using the terms "homekit" and "hap." I downloaded the logs shortly after restarting the HA OS VM.

home-assistant_2023-02-25T14-54-10.813Z-homekit.log

If there's something else I can provide, I would be happy to try to supply it.

risen commented 1 year ago

Hi, I've recently moved my Home Assistant Container (running on podman, not that it matters) to a new physical machine, and had the same issue.

I actually had to fix a number of problems before I got it working again, maybe what I figured out can help you @Jaharmi

  1. The new machine actually functions as a router. This means there were a number of firewall rules interfering with connections to Home Assistant and its integrations. netstat -lnp | grep python gives an idea what's needed.
  2. There's four network interfaces in the new machine, and Home Assistant picked the wrong one to bind the HomeKit Assistant HomeKit bridge to. I've tried adding ip_address and advertise_ip to the homekit: section in the configuration.yaml, but that resulted in a second bridge. I wanted to preserve the original entry to avoid having to re-add everything to the Apple Home app, so I edited .storage/core.config_entries, and updated the section like this:
      {
        "entry_id": "deadbeef",
        "version": 1,
        "domain": "homekit",
        "title": "Home Assistant Bridge",
        "data": {
          "ip_address": "x.x.x.x",
          "advertise_ip": "x.x.x.x",
          "name": "HASS Bridge UPEG",
          "port": 51828
        },
        …
      }

    This seemed to help to bind the homekit bridge to the right interface…

  3. … But the zeroconf/bonjour/mdns stuff on 5353 was still bound to the wrong interface. Took me a while to figure it out, but in the end it was simple: I just needed to go to Settings >> System >> Network, and pick the right Network Adapter instead of leaving it on "Auto Configure". I'm actually not sure if my "step 2." is still necessary had I tried this first, so I'd recommend trying this first.

So, it works, I didn't need to change anything in the Apple Home app, it preserved all my state.

Hope it helps.

Jaharmi commented 1 year ago

Thanks @risen, I will try that and report back on the results.

Jaharmi commented 1 year ago

@risen I also had more than one interface in the OVA that I migrated from ESXi to XCP-ng. I think I had it when migrating from ESXi to Proxmox. So, I was probably in a similar situation.

  1. I could not find any network restrictions in XCP-ng that would block the traffic.
  2. I had already tried the ip_address and advertise_ip in all of my bridges in configuration.yaml. When I looked at .storage/core.config_entries, I found that all of my “homekit” bridges were listed with the correct IP address for both attributes.
  3. I reviewed Settings >> System >> Network.
    • Under “Network Adapter,” neither Auto Configure nor Adapter: enX0 was selected.
    • There was a “⭐️ (Default)” next to Adapter: enX0.
    • IPv4 and IPv6 were both enabled for DHCP.
  4. I selected Adapter: enX0 as the Network Adapter.
  5. I disabled IPv6.
  6. I restarted HA from the Developer Tools area after verifying my configuration.

After HA restarted, my devices showed up in the Home app again. Devices were responsive. I was again able to use Siri on my HomePod to control the light at my desk!

I’m going to experiment a bit with this now that I have a few known knobs and buttons that could be related.

However, since I’ve been trying to do this for a few months and not getting anywhere — including a few Discord posts — I really appreciate your help @risen. Thanks! I owe you one! 🙏 😁

Jaharmi commented 1 year ago

Given that HA worked fine except for the HomeKit integration, and I have this issue open … I wonder if this could potentially be a request to consolidate a few troubleshooting checks / pieces of information into a single HomeKit report.

I see some other issues in the queue that may benefit from a HomeKit troubleshooting report / overview.

Jaharmi commented 1 year ago

Fwiw, I did try removing one of my less-used HomeKit bridges from the Home app before I tried the steps from @risen. The bridge corresponded to a room with a thermostat (Ecobee, using HomeKit Controller and not the Ecobee integration) and light (Lutron Caseta switch).

I was not able to re-add this bridge to the Home app. I believe it timed out. Now that I’ve got other devices responding, I will try to re-add it again.

risen commented 1 year ago

However, since I’ve been trying to do this for a few months and not getting anywhere — including a few Discord posts — I really appreciate your help @risen. Thanks! I owe you one! pray grin

You're very welcome, @Jaharmi - initially ran into your issue while trying to figure it out, and once I realized it was just connectivity issues in the end, I thought I'd let you know.

dmindfuse commented 1 year ago

FWIW, and perhaps not relevant, in my case, I had to activate mDNS repeater on the subnet/network of my Home Assistant setup, then check that it allows IN from source network on UDP port 5353 that traffic on my Home Assistant server. Also, the port shown with the QR code in HA, I opened on my HA server for TCP traffic from source network. Only then was I able to add the bridge and get it working.

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.