{"id":1193,"date":"2023-01-16T06:41:38","date_gmt":"2023-01-16T12:41:38","guid":{"rendered":"https:\/\/lab.rapternet.us\/?p=1193"},"modified":"2023-01-07T20:28:52","modified_gmt":"2023-01-08T02:28:52","slug":"setting-up-zigbee-in-home-assistant-on-proxmox","status":"publish","type":"post","link":"https:\/\/lab.rapternet.us\/?p=1193","title":{"rendered":"Setting up Zigbee in Home Assistant on Proxmox"},"content":{"rendered":"\n<p>I have Z-Wave setup on my home assistant and a reasonable network of devices. I haven&#8217;t been able to find some types of devices using Z-Wave however, only on ZigBee, so it is time to setup another radio in home assistant.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>The first step is the same as setting up the Z-Wave USB stick with proxmox. We need the host ID of the USB device. The device we&#8217;re looking for is the ConBee II made by Dresden Elektronik. Once we have the device ID we can update the proxmox settings.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@pve:~# lsusb<br>Bus 003 Device 007: ID <strong>1cf1:0030<\/strong> Dresden Elektronik<br>Bus 003 Device 003: ID 051d:0002 American Power Conversion Uninterruptible Power Supply<br>Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub<br>Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br>Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub<br>Bus 002 Device 003: ID 0658:0200 Sigma Designs, Inc. Aeotec Z-Stick Gen5 (ZW090) - UZB<br>Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br>Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub<br>Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<\/pre>\n\n\n\n<p>With the host tag for the USB device, we pass it through to the VM. Also since this is the second USB device that I&#8217;m paying through, I&#8217;ll be using USB1 for ZigBee.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@pve:~# qm set 115 -usb1 host=1cf1:0030<\/pre>\n\n\n\n<p>With the settings in place, fully shut down the home assistant VM and boot it back up from the proxmox GUI. The full reboot is needed for the hardware changes to take effect.<\/p>\n\n\n\n<p>I saw the notification below in home assistant for setting it up.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"269\" height=\"186\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2021\/11\/image.png\" alt=\"\" class=\"wp-image-1197\"\/><figcaption class=\"wp-element-caption\">Home assistant detecting the USB device<\/figcaption><\/figure>\n\n\n\n<p>All that&#8217;s left is to setup ZHA or your ZigBee control software of choice. I followed the setup steps for that software and setting it up to add devices.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"829\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2021\/11\/image-1-1024x829.png\" alt=\"\" class=\"wp-image-1198\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2021\/11\/image-1-1024x829.png 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2021\/11\/image-1-300x243.png 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2021\/11\/image-1-768x622.png 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2021\/11\/image-1.png 1162w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Home assistant ZigBee network options<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>This worked out well for my setup and is very stable. I don&#8217;t have any problems with the USB passthrough. I do have to make sure that if I unplug a device, it takes a full shutdown of the VM to pick it back up again once it&#8217;s plugged back in. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have Z-Wave setup on my home assistant and a reasonable network of devices. I haven&#8217;t been able to find some types of devices using Z-Wave however, only on ZigBee, so it is time to setup another radio in home assistant.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[39,49],"class_list":["post-1193","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-home-assistant","tag-smart-home"],"_links":{"self":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/1193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1193"}],"version-history":[{"count":12,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/1193\/revisions"}],"predecessor-version":[{"id":2191,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/1193\/revisions\/2191"}],"wp:attachment":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}