{"id":386,"date":"2022-08-03T01:32:32","date_gmt":"2022-08-02T23:32:32","guid":{"rendered":"http:\/\/cln.io\/blog\/?p=386"},"modified":"2022-12-01T00:50:41","modified_gmt":"2022-11-30T22:50:41","slug":"homeassistant-relink-homekit-bridge-to-homekit-again","status":"publish","type":"post","link":"https:\/\/cln.io\/blog\/homeassistant-relink-homekit-bridge-to-homekit-again\/","title":{"rendered":"Repair \/ re-add a HomeKit bridge from Home Assistant again to your Apple Home after a reset"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I recently had to delete\/wipe my Homekit setup \/ Apple Home thing.<br>This erased my link between <a href=\"https:\/\/www.home-assistant.io\/integrations\/homekit\/\" target=\"_blank\" rel=\"noreferrer noopener\">Home Assistant HomeKit Bridge<\/a> and my Apple Home. <br>According to the documentation, it should show the pincode in a notification, but for me it didn&#8217;t since I already had set up my HomeKit stuff on Home Assistant.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On this page<\/p>\n\n\n\n<nav aria-label=\"Table of Contents\" class=\"wp-block-table-of-contents\"><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/homeassistant-relink-homekit-bridge-to-homekit-again\/#steps-to-re-add-repair-your-existing-homekit-bridge-back-into-your-home\">Steps to re-add repair your existing homekit bridge back into your home<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/homeassistant-relink-homekit-bridge-to-homekit-again\/#erasing-wiping-the-homekit-bridge-state-file-from-home-assistant\">Erasing \/ wiping the HomeKit Bridge state file from home assistant<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/homeassistant-relink-homekit-bridge-to-homekit-again\/#restart-home-assistant\">Restart home assistant<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/homeassistant-relink-homekit-bridge-to-homekit-again\/#locate-the-pincode-in-the-logs\">Locate the pincode in the logs<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/homeassistant-relink-homekit-bridge-to-homekit-again\/#re-add-homekit-bridge-to-your-apple-home\">Re-add HomeKit bridge to your Apple Home<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/cln.io\/blog\/homeassistant-relink-homekit-bridge-to-homekit-again\/#that-s-it-you-have-relinked-your-bridge-to-homekit\">That&#8217;s it! you have relinked your Bridge to HomeKit!<\/a><\/li><\/ol><\/nav>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"steps-to-re-add-repair-your-existing-homekit-bridge-back-into-your-home\">Steps to re-add repair your existing homekit bridge back into your home<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Wipe your homekit bridge state settings in home assistant<\/li>\n\n\n\n<li>Restart your home assistant<\/li>\n\n\n\n<li>Look in the log files for the pin code<\/li>\n\n\n\n<li>Enter the pincode into Apple Home<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"erasing-wiping-the-homekit-bridge-state-file-from-home-assistant\">Erasing \/ wiping the HomeKit Bridge state file from home assistant<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First we need to erase 2 files in the .storage folder (<a href=\"https:\/\/cln.io\/blog\/home-assistant-show-reveal-access-the-storage-folder-in-the-file-editor\/\">you have to unhide the folder first, click here to find out how to do that<\/a>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Inside the .storage folder, locate a &#8220;homekit.xxxxxxxxxxxxxxxx.state&#8221; file, where xxx will be a random hash(?)\/uuid unique to your install and delete it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">make sure to delete the <strong>.state<\/strong> file and not the <strong>.aids<\/strong> file (whilst I did not experience any issues with deleting that one too)<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"405\" height=\"221\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_p0zm3aqjFf.png\" alt=\"\" class=\"wp-image-392\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_p0zm3aqjFf.png 405w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_p0zm3aqjFf-300x164.png 300w\" sizes=\"auto, (max-width: 405px) 100vw, 405px\" \/><figcaption class=\"wp-element-caption\">delete the homekit.&lt;string&gt;.state file<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"restart-home-assistant\">Restart home assistant<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"685\" height=\"146\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_3eV4MW1hP2.png\" alt=\"\" class=\"wp-image-393\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_3eV4MW1hP2.png 685w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_3eV4MW1hP2-300x64.png 300w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><figcaption class=\"wp-element-caption\">go to settings, system<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"156\" height=\"112\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_IEm106vAhC.png\" alt=\"\" class=\"wp-image-394\"\/><figcaption class=\"wp-element-caption\">right upper corner, hit restart<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"locate-the-pincode-in-the-logs\">Locate the pincode in the logs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Head over to settings &gt; logs<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"679\" height=\"148\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_fGJYRDqKa1.png\" alt=\"\" class=\"wp-image-395\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_fGJYRDqKa1.png 679w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_fGJYRDqKa1-300x65.png 300w\" sizes=\"auto, (max-width: 679px) 100vw, 679px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">in the search bar on top, you type in &#8220;pincode&#8221;, and for me not much showed up, you still have to click &#8220;load full logs&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"983\" height=\"338\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_hasEtP6Tpj.png\" alt=\"\" class=\"wp-image-396\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_hasEtP6Tpj.png 983w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_hasEtP6Tpj-300x103.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_hasEtP6Tpj-768x264.png 768w\" sizes=\"auto, (max-width: 983px) 100vw, 983px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"982\" height=\"411\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_Dp1kbBCQka.png\" alt=\"\" class=\"wp-image-397\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_Dp1kbBCQka.png 982w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_Dp1kbBCQka-300x126.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/brave_Dp1kbBCQka-768x321.png 768w\" sizes=\"auto, (max-width: 982px) 100vw, 982px\" \/><figcaption class=\"wp-element-caption\">click &#8220;load full logs&#8221;<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">write down your pincode or just keep the window open.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"re-add-homekit-bridge-to-your-apple-home\">Re-add HomeKit bridge to your Apple Home<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Head over to your Home app (should work on macOS too, but I did it on iOS)<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"870\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/image-1-1024x870.png\" alt=\"\" class=\"wp-image-400\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/image-1-1024x870.png 1024w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/image-1-300x255.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/image-1-768x653.png 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/image-1.png 1284w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">go to your home and hit the &#8220;+&#8221; add an accessory<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"830\" height=\"1024\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5710-830x1024.png\" alt=\"\" class=\"wp-image-401\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5710-830x1024.png 830w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5710-243x300.png 243w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5710-768x948.png 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5710-1244x1536.png 1244w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5710.png 1284w\" sizes=\"auto, (max-width: 830px) 100vw, 830px\" \/><figcaption class=\"wp-element-caption\">click &#8220;More options&#8230;&#8221;<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"979\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5705-1024x979.png\" alt=\"\" class=\"wp-image-402\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5705-1024x979.png 1024w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5705-300x287.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5705-768x735.png 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5705.png 1284w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">click &#8220;My Accessory Isn&#8217;t Shown Here&#8221;<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">there is a chance the Home Assistant HomeKit Bridge shows up, just click it if that is the case, if not hit the button<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"867\" height=\"1024\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5706-867x1024.png\" alt=\"\" class=\"wp-image-403\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5706-867x1024.png 867w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5706-254x300.png 254w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5706-768x907.png 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5706.png 1284w\" sizes=\"auto, (max-width: 867px) 100vw, 867px\" \/><figcaption class=\"wp-element-caption\">Tap &#8220;Enter code&#8230;&#8221;<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1020\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5707-1024x1020.png\" alt=\"\" class=\"wp-image-404\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5707-1024x1020.png 1024w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5707-300x300.png 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5707-150x150.png 150w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5707-768x765.png 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5707.png 1284w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Enter the code we found in the Home Assitant logs earlier<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"1024\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5687-801x1024.png\" alt=\"\" class=\"wp-image-405\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5687-801x1024.png 801w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5687-235x300.png 235w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5687-768x982.png 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5687-1202x1536.png 1202w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/IMG_5687.png 1284w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><figcaption class=\"wp-element-caption\">It might nag you about &#8220;uncertified&#8221; stuff, just hit Add Anyway<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"that-s-it-you-have-relinked-your-bridge-to-homekit\">That&#8217;s it! you have relinked your Bridge to HomeKit!<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/huzaifa-tariq-hYymUER1qnY-unsplash-1024x683.jpg\" alt=\"\" class=\"wp-image-409\" srcset=\"https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/huzaifa-tariq-hYymUER1qnY-unsplash-1024x683.jpg 1024w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/huzaifa-tariq-hYymUER1qnY-unsplash-300x200.jpg 300w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/huzaifa-tariq-hYymUER1qnY-unsplash-768x512.jpg 768w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/huzaifa-tariq-hYymUER1qnY-unsplash-1536x1024.jpg 1536w, https:\/\/cln.io\/blog\/wp-content\/uploads\/2022\/08\/huzaifa-tariq-hYymUER1qnY-unsplash-2048x1365.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Photo by <a href=\"https:\/\/unsplash.com\/@ihuzaifatariq?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\" target=\"_blank\" rel=\"noreferrer noopener\">Huzaifa Tariq<\/a> on <a href=\"https:\/\/unsplash.com\/s\/photos\/homepod?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\" target=\"_blank\" rel=\"noreferrer noopener\">Unsplash<\/a><\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently had to delete\/wipe my Homekit setup \/ Apple Home thing.This erased my link between Home Assistant HomeKit Bridge and my Apple Home. According to the documentation, it should show the pincode in a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":399,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4,19],"tags":[],"class_list":["post-386","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-automation","category-homeassistant","category-homekit"],"_links":{"self":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts\/386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/comments?post=386"}],"version-history":[{"count":5,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts\/386\/revisions"}],"predecessor-version":[{"id":1196,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/posts\/386\/revisions\/1196"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/media\/399"}],"wp:attachment":[{"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/media?parent=386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/categories?post=386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cln.io\/blog\/wp-json\/wp\/v2\/tags?post=386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}