{"id":2342,"date":"2022-01-19T07:03:15","date_gmt":"2022-01-19T13:03:15","guid":{"rendered":"https:\/\/promincproductions.com\/blog\/?p=2342"},"modified":"2023-03-02T21:13:07","modified_gmt":"2023-03-03T03:13:07","slug":"using-aqara-contact-sensors-in-home-assistant-without-a-hub","status":"publish","type":"post","link":"https:\/\/promincproductions.com\/blog\/using-aqara-contact-sensors-in-home-assistant-without-a-hub\/","title":{"rendered":"Aqara Contact Sensors in Home Assistant without a Hub"},"content":{"rendered":"<p>My journey into smart home setup started with being gifted a <a href=\"https:\/\/amzn.to\/3YigjJM\" rel=\"sponsored nofollow noopener\" target=\"_blank\" data-lasso-id=\"732\">Wyze<\/a> camera many years ago.  Wyze makes nice devices and this gift was when Wyze was in it&#8217;s <em>infantancy<\/em>.  But as they grew as a company, they have been moving more into an &#8220;ecosystem&#8221; with (forced) subscription options.  And my mindset has moved more into keeping my data in house as much as possible.  So as I&#8217;ve leaned more on Home Assistant and keeping my data at home, the more the Wzye devices don&#8217;t fit into my long term goals.  Additionally the Wyze equipment doesn&#8217;t play very nice with Home Assistant.  There is an <a href=\"https:\/\/github.com\/JoshuaMulliken\/ha-wyzeapi\/blob\/master\/custom_components\/wyzeapi\/sensor.py\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"733\">unofficial integration<\/a> that offers limited functionality at the time of witting.<\/p>\n\n\n\n<p>There is a very annoying <em>flaw<\/em> with the <em>Wyze Sense V1<\/em> (no longer offered, not sure if this affects V2 or not).  If the battery dies, the entire device dies.  Replacing the battery doesn\u2019t revive the sensor.  I know this from first hand experience.  [<a href=\"https:\/\/support.wyze.com\/hc\/en-us\/articles\/360047594431-Sensor-isn-t-connecting-anymore-after-changing-the-battery\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"734\">source<\/a>]  To make matters worse, they now only offer <em>Wyze Sense V2<\/em> which requires a home monitoring subscription.  And with that &#8211; I&#8217;m out!  This is just another <em>strike<\/em> against Wyze.  Sad as I really liked their products at first.<\/p>\n\n\n\n<p>This lead me on a venture to look for new options.  I&#8217;ve analyzed many many options out there, done (far too much) research, and found <a href=\"http:\/\/aqara.com\/\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"735\">Aqara<\/a>.  This company feels like what I was hoping Wyze was going to be &#8211; cost friendly smart devices that aren&#8217;t part of a closed ecosystem and\/or subscription based.  Aqara has a large offering of products which is great!  So the next step is to give Aqara a test.  This might be confusing as their products all say <em>Hub Required<\/em>, but read on as that&#8217;s not true.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/05\/home-assistant-aqara-contact-sensor-without-hub-v2.png\" alt=\"Aqara Contact Sensor in Home Assistant Without a Hub\" class=\"wp-image-2740\" width=\"369\" height=\"369\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/05\/home-assistant-aqara-contact-sensor-without-hub-v2.png 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/05\/home-assistant-aqara-contact-sensor-without-hub-v2-500x500.png 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/05\/home-assistant-aqara-contact-sensor-without-hub-v2-150x150.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/05\/home-assistant-aqara-contact-sensor-without-hub-v2-450x450.png 450w\" sizes=\"(max-width: 369px) 100vw, 369px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"why-i-chose-aqara\">Why I Chose Aqara<\/h2>\n\n\n\n<p>Why Aqara?  First off, their name comes up over an over in the Home Assistant forums.  Aqara seems to be well liked by the community.<\/p>\n\n\n\n<p>Aqara uses the open <a href=\"https:\/\/promincproductions.com\/blog\/adding-zigbee-to-home-assistant-on-qnap-ts-251-with-container-station\/#wireless-protocols\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"736\">Zigbee protocol<\/a> which is an open standard that other manufacturers use as well.  This means that despite them saying you need to use <em>their<\/em> hub, you can connect their devices to Home Assistant so long as you have a Zigbee antenna setup.  If this is something you need to do, you can follow my tutorial on <a href=\"https:\/\/promincproductions.com\/blog\/adding-zigbee-to-home-assistant-on-qnap-ts-251-with-container-station\/\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"737\">adding Zigbee to Home Assistant on a QNAP NAS<\/a>.<\/p>\n\n\n\n<p>Price was certainly a factor for Aqara.  They offer good technology at a fair price comparative to the market.<\/p>\n\n\n\n<p>The size of their devices is another factor.  They are small enough to not stand out in my house.  Some of the competitors have rather large devices.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"aqara-contact-sensor\">Aqara Contact Sensor<\/h2>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<p>This is the Aqara contact sensor I am using &#8211; it&#8217;s called the <strong><a href=\"https:\/\/amzn.to\/3mjqhNC\" target=\"_blank\" rel=\"nofollow noopener\" data-lasso-id=\"738\">Aqara Door and Window Sensor<\/a> <\/strong>[model <a href=\"https:\/\/www.aqara.com\/us\/door_and_window_sensor.html\" target=\"_blank\" rel=\"nofollow noopener\" data-lasso-id=\"739\">MCCGQ11LM<\/a>].<\/p>\n\n\n\n<p>In the United States they are sold via Amazon, and when I purchased them you could find a bundle if you need more than one.  The bundles seemed cheaper at first, but there was an Amazon coupon I could apply and it&#8217;s actually cheaper buying them separately with the coupon than in the bundle.  So do some math and see if you can save yourself a few bucks like I did.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/amzn.to\/3mjqhNC\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"740\">Aqara Door and Window Sensors on Amazon<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\"><div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/m.media-amazon.com\/images\/I\/61lm6GkOQcL._AC_SX522_.jpg\" alt=\"Aqara Door and Window Sensor MCCGQ11LM\" width=\"331\" height=\"320\" title=\"Aqara Door and Window Sensor MCCGQ11LM\" \/><\/figure>\n<\/div><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"adding-aqara-contact-sensor-to-home-assistant-without-a-hub\">Adding Aqara Contact Sensor to Home Assistant without a Hub<\/h2>\n\n\n\n<p>There are many Zigbee gateways on the market.  Below are instructions or adding the Aqara contact sensor using two popular Zigbee coordinators and links to tutorials on how to add those integrations to Home Assistant on QNAP.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ZHA (Zigbee Home Automation) Home Assistant integration with the HUSBZB-1 Zigbee Coordinator\n<ul class=\"wp-block-list\">\n<li>Tutorial: <a href=\"https:\/\/promincproductions.com\/blog\/add-zigbee-to-home-assistant-with-husbzb-1-and-zha-on-qnap-ts-251\/\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"741\">Add Zigbee to Home Assistant with HUSBZB-1 and ZHA on QNAP<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>deCONZ Home Assistant integration with the ConBee II Zigbee Coordinator\n<ul class=\"wp-block-list\">\n<li>Tutorial: <a href=\"https:\/\/promincproductions.com\/blog\/add-zigbee-to-home-assistant-with-conbee-ii-and-deconz-on-qnap-ts-251\/\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"742\">Add Zigbee to Home Assistant with ConBee II and deCONZ on QNAP<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Both integration methods work.  In my experience however, the deCONZ integration has been far more reliable.  The contact sensors would loose their connection on the ZHA integration.  That was my main motivation for switching to the deCONZ setup.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Instructions to Add Aqara Contact Sensors with ZHA Home Assistant Integration and HUSBZB-1 Zigbee Coordinator<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click on <strong>Configuration<\/strong><\/li>\n\n\n\n<li>Click on <strong>Integrations<\/strong><\/li>\n\n\n\n<li>Click on <strong>CONFIGURE<\/strong> for the <strong>HubZ Smart Home Controller<\/strong> integration (or similarly named Zigbee integration if Zigbee is integrated differently in your Home Assistant)<\/li>\n\n\n\n<li>Click the <strong>ADD DEVICE<\/strong> button<\/li>\n\n\n\n<li>A screen will show indicating that Home Assistant is scanning for a new device.<\/li>\n\n\n\n<li>Press the button on the bottom of the Sensor Unit for about 3 seconds.  The lights will flash indicating it is in pairing mode.  Let go of the button.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"773\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/3573CC61-3F70-49AF-959F-C931DCBEFAD8-1024x773.jpeg\" alt=\"Press and hold the pair button on the Aqara contact sensor for 3 seconds\" class=\"wp-image-2371\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/3573CC61-3F70-49AF-959F-C931DCBEFAD8-1024x773.jpeg 1024w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/3573CC61-3F70-49AF-959F-C931DCBEFAD8-500x377.jpeg 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/3573CC61-3F70-49AF-959F-C931DCBEFAD8-768x580.jpeg 768w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/3573CC61-3F70-49AF-959F-C931DCBEFAD8-150x113.jpeg 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/3573CC61-3F70-49AF-959F-C931DCBEFAD8-600x453.jpeg 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/3573CC61-3F70-49AF-959F-C931DCBEFAD8-450x340.jpeg 450w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/3573CC61-3F70-49AF-959F-C931DCBEFAD8-795x600.jpeg 795w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/3573CC61-3F70-49AF-959F-C931DCBEFAD8.jpeg 1097w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Press and hold the pair button on the Aqara contact sensor for 3-5 seconds until the lights flash<\/figcaption><\/figure>\n<\/div>\n\n\n<ol class=\"wp-block-list\" start=\"7\">\n<li>Wait as Home Assistant connects to the device.\n<ul class=\"wp-block-list\">\n<li>This often will take more than one attempt.  (this is noted in the <a href=\"https:\/\/www.home-assistant.io\/integrations\/zha\/#best-practices-to-avoid-pairingconnection-difficulties\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"743\">ZHA documentation<\/a>)<\/li>\n\n\n\n<li>I&#8217;m not sure if it <em>technically<\/em> helps or not, but if you&#8217;re having issues connecting I found that pressing the button every 5 seconds or so will ensure the device <em>stays awake<\/em> during the connection step<\/li>\n\n\n\n<li>Ensure you aren&#8217;t &#8220;too far away&#8221; from the Zigbee radio on the Home Assistant device.<\/li>\n\n\n\n<li>I suggest NOT changing the name at this step.  See below in the <strong><a href=\"#connection-stability\">Connection Stability<\/a><\/strong> section for how and why I do my device naming.<\/li>\n\n\n\n<li>I like to set these up at the location they will be used. If they can connect when right next to the Zigbee radio it&#8217;s not very helpful in knowing if the radio can reach the final destination of where this will live. There is one &#8220;dead spot&#8221; in an upstairs bedroom in my house that must be perfectly blocked by ductwork, floors, and walls from where my radio is.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"779\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/4BAC8494-1FEE-4A7E-ACA3-CB27712BE086-1024x779.jpeg\" alt=\"Aqara Window and Door Sensor paired with Zigbee to Home Assistant without a hub\" class=\"wp-image-2370\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/4BAC8494-1FEE-4A7E-ACA3-CB27712BE086-1024x779.jpeg 1024w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/4BAC8494-1FEE-4A7E-ACA3-CB27712BE086-500x381.jpeg 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/4BAC8494-1FEE-4A7E-ACA3-CB27712BE086-768x584.jpeg 768w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/4BAC8494-1FEE-4A7E-ACA3-CB27712BE086-150x114.jpeg 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/4BAC8494-1FEE-4A7E-ACA3-CB27712BE086-600x457.jpeg 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/4BAC8494-1FEE-4A7E-ACA3-CB27712BE086-450x342.jpeg 450w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/4BAC8494-1FEE-4A7E-ACA3-CB27712BE086-788x600.jpeg 788w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/4BAC8494-1FEE-4A7E-ACA3-CB27712BE086.jpeg 1088w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Aqara Window and Door Sensor paired with ZigbBe to Home Assistant without a hub<\/figcaption><\/figure>\n<\/div>\n\n\n<p>If all goes as planned, you&#8217;ll be all setup with a Aqara Window and Door Sensor connected directly to Home Assistant via the Zigbee protocol and NO Aqara Hub was needed!<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"784\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/8260EFBA-1E5F-4DB0-8FB9-0DC8844AE544-1024x784.jpeg\" alt=\"Zigbee showing two entities from Aqara contact sensor\" class=\"wp-image-2369\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/8260EFBA-1E5F-4DB0-8FB9-0DC8844AE544-1024x784.jpeg 1024w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/8260EFBA-1E5F-4DB0-8FB9-0DC8844AE544-500x383.jpeg 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/8260EFBA-1E5F-4DB0-8FB9-0DC8844AE544-768x588.jpeg 768w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/8260EFBA-1E5F-4DB0-8FB9-0DC8844AE544-150x115.jpeg 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/8260EFBA-1E5F-4DB0-8FB9-0DC8844AE544-600x459.jpeg 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/8260EFBA-1E5F-4DB0-8FB9-0DC8844AE544-450x344.jpeg 450w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/8260EFBA-1E5F-4DB0-8FB9-0DC8844AE544-784x600.jpeg 784w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/8260EFBA-1E5F-4DB0-8FB9-0DC8844AE544.jpeg 1082w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>Two entities are now added to the Zigbee integration.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"794\" height=\"253\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-7.png\" alt=\"Aqara Window and Door Sensor adds two entities to Home Assistant\" class=\"wp-image-2372\" title=\"Aqara Window and Door Sensor adds two entities to Home Assistant\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-7.png 794w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-7-500x159.png 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-7-768x245.png 768w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-7-150x48.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-7-600x191.png 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/image-7-450x143.png 450w\" sizes=\"(max-width: 794px) 100vw, 794px\" \/><\/figure>\n<\/div>\n\n\n<p>A <code>sensor<\/code> entity is added for the battery level.<\/p>\n\n\n\n<p>A <code><strong>binary_sensor<\/strong><\/code> entity is added for detecting if the door\/window is open or closed.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th> Sensor Action <\/th><th> state <\/th><th>type<\/th><\/tr><\/thead><tbody><tr><td>Open (two pieces apart)<\/td><td>on<\/td><td>opened<\/td><\/tr><tr><td>Closed (two pieces next to eachother)<\/td><td>off<\/td><td>closed<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Aqara Contact Sensor binary_sensor<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"connection-stability\">Troubleshooting Aqara Contact Sensor ZHA Connection Issues in Home Assistant<\/h4>\n\n\n\n<p>I&#8217;ve seen a lot of conversation across the internet about using Aqara devices with the HUSBZB-1 device and the ZHA integration and how one person says it&#8217;s awesome and the next person says the devices don&#8217;t stay connected and back and forth.  This makes it hard to know if this should be the right integration method or not.  And I&#8217;ll be honest &#8211; I&#8217;ve had some stability issues myself.  Some of it might be my own fault, but other times devices just drop off.  A bit strange.<\/p>\n\n\n\n<p>From what I&#8217;ve read, the Aqara devices didn&#8217;t follow the Zigbee spec 100%, and the HZA integration is still <em>growing<\/em>.  So those are some factors.  Your home layout, interference, etc. are also factors of course.<\/p>\n\n\n\n<p>But one <em>trick<\/em> that I think is critical here is how you name your devices when you add them through ZHA.  On step 7 above when the device is connected, you can rename the device there.  I personally suggest NOT doing that.  I have a theory that the naming of a device there will cause instability.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"722\" height=\"818\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/928AF09E-A98A-4FF4-8FE3-1758A5DACC78.jpeg\" alt=\"do not rename a zigbee zha device when adding the device\" class=\"wp-image-2421\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/928AF09E-A98A-4FF4-8FE3-1758A5DACC78.jpeg 722w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/928AF09E-A98A-4FF4-8FE3-1758A5DACC78-441x500.jpeg 441w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/928AF09E-A98A-4FF4-8FE3-1758A5DACC78-150x170.jpeg 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/928AF09E-A98A-4FF4-8FE3-1758A5DACC78-600x680.jpeg 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/928AF09E-A98A-4FF4-8FE3-1758A5DACC78-450x510.jpeg 450w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/928AF09E-A98A-4FF4-8FE3-1758A5DACC78-530x600.jpeg 530w\" sizes=\"(max-width: 722px) 100vw, 722px\" \/><figcaption class=\"wp-element-caption\">Do not change the name when adding a new Zigbee device in ZHA<\/figcaption><\/figure>\n<\/div>\n\n\n<p>I go back to <strong>Configuration -&gt; Integrations<\/strong>, click on the <strong>Devices<\/strong> link in ZHA, and then click into a newly added device.  In the <strong>Entities<\/strong> section, I&#8217;ll click into each Entity and set the <strong>Name<\/strong> field only.  I do NOT change the <strong>Entity ID<\/strong> field.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"828\" height=\"769\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/71376F43-F5EE-4847-B2EE-CB9AF2918934.jpeg\" alt=\"Set the name on a zigbee zha entity\" class=\"wp-image-2422\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/71376F43-F5EE-4847-B2EE-CB9AF2918934.jpeg 828w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/71376F43-F5EE-4847-B2EE-CB9AF2918934-500x464.jpeg 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/71376F43-F5EE-4847-B2EE-CB9AF2918934-768x713.jpeg 768w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/71376F43-F5EE-4847-B2EE-CB9AF2918934-150x139.jpeg 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/71376F43-F5EE-4847-B2EE-CB9AF2918934-600x557.jpeg 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/71376F43-F5EE-4847-B2EE-CB9AF2918934-450x418.jpeg 450w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/71376F43-F5EE-4847-B2EE-CB9AF2918934-646x600.jpeg 646w\" sizes=\"(max-width: 828px) 100vw, 828px\" \/><figcaption class=\"wp-element-caption\">Set the name of each ZigBee ZHA entity for ease of use in Home Assistant<\/figcaption><\/figure>\n<\/div>\n\n\n<p>After naming the entities, I&#8217;ll click the pencil icon at the top of the device page to rename the device itself.  When it prompts you asking if you want to rename the entity ID&#8217;s choose <strong>NO<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"715\" height=\"582\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/0E46D50B-5224-4CA3-A39E-7941861CFCCE.jpeg\" alt=\"set the name of the zigbee zha device in home assistant\" class=\"wp-image-2423\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/0E46D50B-5224-4CA3-A39E-7941861CFCCE.jpeg 715w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/0E46D50B-5224-4CA3-A39E-7941861CFCCE-500x407.jpeg 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/0E46D50B-5224-4CA3-A39E-7941861CFCCE-150x122.jpeg 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/0E46D50B-5224-4CA3-A39E-7941861CFCCE-600x488.jpeg 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/0E46D50B-5224-4CA3-A39E-7941861CFCCE-450x366.jpeg 450w\" sizes=\"(max-width: 715px) 100vw, 715px\" \/><figcaption class=\"wp-element-caption\">Set the name of the Zigbee ZHA device for ease of use in Home Assistant<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"744\" height=\"558\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/71D382AB-4C2B-42D4-99E1-6AA0B8CA6CE5.jpeg\" alt=\"Do not rename the entities when naming the device\" class=\"wp-image-2424\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/71D382AB-4C2B-42D4-99E1-6AA0B8CA6CE5.jpeg 744w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/71D382AB-4C2B-42D4-99E1-6AA0B8CA6CE5-500x375.jpeg 500w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/71D382AB-4C2B-42D4-99E1-6AA0B8CA6CE5-150x113.jpeg 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/71D382AB-4C2B-42D4-99E1-6AA0B8CA6CE5-600x450.jpeg 600w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/01\/71D382AB-4C2B-42D4-99E1-6AA0B8CA6CE5-450x338.jpeg 450w\" sizes=\"(max-width: 744px) 100vw, 744px\" \/><figcaption class=\"wp-element-caption\">Choose NO when renaming the device.  Name the entities manually instead.<\/figcaption><\/figure>\n<\/div>\n\n\n<p>If you have a device that isn&#8217;t connecting well, click the <strong>REMOVE DEVICE<\/strong> button, go through the process to re-add the device, and ensure you follow this naming process and you should be all set to go.  If you&#8217;ve never changed the <strong>Entity ID<\/strong> for the device, the re-added devices should connect back into your automations and dashboards without issue.  At least that&#8217;s been my experience.<\/p>\n\n\n\n<p>Again, this sequence is a <em>theory<\/em> but so far it&#8217;s been working for me.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Instructions to add Aqara Contact Sensors with deCONZ Home Assistant Integration and ConBee II Zigbee Coordinator<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Phoscon App<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click the three lined hamburger menu to expand it<\/li>\n\n\n\n<li>Click on&nbsp;<strong>Sensors<\/strong><\/li>\n\n\n\n<li>Click the&nbsp;<strong>Add new sensor<\/strong>&nbsp;button<\/li>\n\n\n\n<li>Choose the&nbsp;<strong>Other<\/strong>&nbsp;button<\/li>\n\n\n\n<li>Press and hold the button on the bottom of the Aqara contact sensor for about 3 seconds, until the light flashes indicating it is in pairing mode and let go of the button.<\/li>\n\n\n\n<li>The Phoscon App should show a green bar saying <b>Sensor Ready<\/b>.\n<ol class=\"wp-block-list\">\n<li>If after about ten seconds the Phoscon App doesn\u2019t show <b>Sensor Ready<\/b>, repeat step 5.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Home Assistant<\/h4>\n\n\n\n<p>Now that the Aqara contact sensor is connected to deCONZ in the Phoscon App, confirm that it is connected to the deCONZ Home Assistant integration.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click on&nbsp;<strong>Configuration<\/strong><\/li>\n\n\n\n<li>Click on&nbsp;<strong>Integrations<\/strong><\/li>\n\n\n\n<li>Click on the device ID<\/li>\n\n\n\n<li>Click on the <strong>x devices<\/strong> link<\/li>\n\n\n\n<li>The Aqara contact sensor should show in the list (depending on configuration)<\/li>\n<\/ol>\n\n\n\n<h5 class=\"wp-block-heading\">Home Assistant deCONZ Configuration: Automatic Connection of New Devices<\/h5>\n\n\n\n<p>Within the Home Assistant deCONZ integration configuration section, an option of <strong>Allow automatic addition of new devices<\/strong> is available.  With this checked, there isn&#8217;t an extra effort needed to ensure that new devices show in Home Assistant.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"474\" height=\"396\" src=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/05\/image-1.png\" alt=\"Home Assistant deCONZ configuration options\" class=\"wp-image-2715\" srcset=\"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/05\/image-1.png 474w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/05\/image-1-150x125.png 150w, https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/05\/image-1-450x376.png 450w\" sizes=\"(max-width: 474px) 100vw, 474px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">References:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/community.home-assistant.io\/t\/aqara-door-window-sensor-need-xiaomi-based-hub\/207513\/\" target=\"_blank\" rel=\"nofollow noopener\" data-lasso-id=\"744\">https:\/\/community.home-assistant.io\/t\/aqara-door-window-sensor-need-xiaomi-based-hub\/207513\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.reddit.com\/r\/homeassistant\/comments\/ctwa19\/xiaomi_aqara_sensors_without_the_hub\/exomqen\/\" target=\"_blank\" rel=\"nofollow noopener\" data-lasso-id=\"745\">https:\/\/www.reddit.com\/r\/homeassistant\/comments\/ctwa19\/xiaomi_aqara_sensors_without_the_hub\/exomqen\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.reddit.com\/r\/homeassistant\/comments\/n9c8wh\/aqara_sensors_in_home_assistant\/\" target=\"_blank\" rel=\"nofollow noopener\" data-lasso-id=\"746\">https:\/\/www.reddit.com\/r\/homeassistant\/comments\/n9c8wh\/aqara_sensors_in_home_assistant\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/community.hubitat.com\/t\/xiaomi-aqara-devices-pairing-keeping-them-connected\/623\" target=\"_blank\" rel=\"nofollow noopener\" data-lasso-id=\"747\">https:\/\/community.hubitat.com\/t\/xiaomi-aqara-devices-pairing-keeping-them-connected\/623<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>My journey into smart home setup started with being gifted a Wyze camera many years ago. Wyze makes [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2740,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[387,384,332],"tags":[346,331,334],"class_list":["post-2342","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-home-assistant","category-qnap","category-smart-home","tag-aqara","tag-home-assistant","tag-zigbee"],"jetpack_featured_media_url":"https:\/\/promincproductions.com\/blog\/wp-content\/uploads\/2022\/05\/home-assistant-aqara-contact-sensor-without-hub-v2.png","jetpack_shortlink":"https:\/\/wp.me\/p4BbcR-BM","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts\/2342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/comments?post=2342"}],"version-history":[{"count":20,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts\/2342\/revisions"}],"predecessor-version":[{"id":3238,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/posts\/2342\/revisions\/3238"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/media\/2740"}],"wp:attachment":[{"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/media?parent=2342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/categories?post=2342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/promincproductions.com\/blog\/wp-json\/wp\/v2\/tags?post=2342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}