{"id":2637,"date":"2022-12-15T16:28:10","date_gmt":"2022-12-15T22:28:10","guid":{"rendered":"https:\/\/www.n5hrk.com\/blog\/?p=2637"},"modified":"2022-12-16T09:05:20","modified_gmt":"2022-12-16T15:05:20","slug":"a-delicate-matter-of-power","status":"publish","type":"post","link":"https:\/\/www.n5hrk.com\/blog\/ha\/a-delicate-matter-of-power\/","title":{"rendered":"A Delicate Matter of Power"},"content":{"rendered":"\n<p>On the heels of solving <a href=\"https:\/\/www.n5hrk.com\/blog\/homelan\/wifi-elevation\/\" target=\"_blank\" rel=\"noreferrer noopener\">one problem<\/a> comes another.<\/p>\n\n\n\n<p>We had a scary storm nearby a few days ago. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_0ZQ4YLwpZv.png\"><img loading=\"lazy\" decoding=\"async\" width=\"998\" height=\"569\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_0ZQ4YLwpZv.png\" alt=\"\" class=\"wp-image-2638\" srcset=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_0ZQ4YLwpZv.png 998w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_0ZQ4YLwpZv-300x171.png 300w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_0ZQ4YLwpZv-768x438.png 768w\" sizes=\"auto, (max-width: 998px) 100vw, 998px\" \/><\/a><\/figure><\/div>\n\n\n<p>This is just a few miles north of us and it is just a tiny bit of the storm damage. It took power out for our neighborhood, though only for about two hours. That was long enough for the little <a rel=\"noreferrer noopener\" href=\"https:\/\/www.cyberpowersystems.com\/product\/ups\/ecologic\/ec850lcd\/\" target=\"_blank\">CyberPower UPS<\/a> feeding my network stuff to run down. It was also the first time I have had something hooked up back there that was apparently sensitive to losing power, namely my Home Assistant VM hosted on a Synology NAS.<\/p>\n\n\n\n<p>Before I get into the rest of this story, I&#8217;ll say that my UPS does have a USB port, but it is not specifically listed on Synology&#8217;s compatibility page. Still, I will secure the proper cable and give it a try. Doing an orderly shutdown of the NAS might have avoided this whole thing. Or not; I suppose that depends on what it takes to finally fix it.<\/p>\n\n\n\n<p>After we got power back, the Home Assistant VM would not finish booting up.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_AVSjfrGixp.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"148\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_AVSjfrGixp-1024x148.png\" alt=\"\" class=\"wp-image-2639\" srcset=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_AVSjfrGixp-1024x148.png 1024w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_AVSjfrGixp-300x44.png 300w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_AVSjfrGixp-768x111.png 768w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_AVSjfrGixp.png 1193w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<p>Note that it had been waiting for nearly 6 minutes for whatever it was holding up for. Deep digging seemed to indicate that a database file for something may have gotten corrupted, meta.db. About the time I was figuring this out, I also remembered that I have the Synology doing nightly snapshot backups of this VM!<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_yc5x2QJqU9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"293\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_yc5x2QJqU9-1024x293.png\" alt=\"\" class=\"wp-image-2640\" srcset=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_yc5x2QJqU9-1024x293.png 1024w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_yc5x2QJqU9-300x86.png 300w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_yc5x2QJqU9-768x220.png 768w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_yc5x2QJqU9.png 1248w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<p>Though just this moment I don&#8217;t remember why, I elected to restore the snapshot from Dec 11. I have also since then locked that snapshot so that it won&#8217;t be rolled out. I may need it again.<\/p>\n\n\n\n<p>That process at least got Home Assistant booted up and usable, though it took me a while realize that the Zigbee controller was not up. Zwave was up and working, which was a relief after the previous <a rel=\"noreferrer noopener\" href=\"https:\/\/www.n5hrk.com\/blog\/ha\/the-little-board-that-could-and-that-one-time-i-was-an-idiot\/\" target=\"_blank\">debacle <\/a>involving it. I needn&#8217;t have worried, though. The attempts to restore Zigbee operation would soon kill ZWave, too.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_tYPebObR7k.png\"><img loading=\"lazy\" decoding=\"async\" width=\"541\" height=\"294\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_tYPebObR7k.png\" alt=\"\" class=\"wp-image-2641\" srcset=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_tYPebObR7k.png 541w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_tYPebObR7k-300x163.png 300w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/a><\/figure><\/div>\n\n\n<p>The details of both seem to indicate that the software can&#8217;t find the hardware. Almost surprisingly, however, the hardware is there.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_abdiYMI7Hy.png\"><img loading=\"lazy\" decoding=\"async\" width=\"236\" height=\"93\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_abdiYMI7Hy.png\" alt=\"\" class=\"wp-image-2642\"\/><\/a><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_04SrA1Y6Kw.png\"><img loading=\"lazy\" decoding=\"async\" width=\"698\" height=\"64\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_04SrA1Y6Kw.png\" alt=\"\" class=\"wp-image-2643\" srcset=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_04SrA1Y6Kw.png 698w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_04SrA1Y6Kw-300x28.png 300w\" sizes=\"auto, (max-width: 698px) 100vw, 698px\" \/><\/a><\/figure><\/div>\n\n\n<p>The kernel sees them. So, why can&#8217;t Home Assistant?<\/p>\n\n\n\n<p>My first concern is Zigbee because I have more devices on Zigbee and they include the lights in the back yard, used frequently for letting the doggies out. The oldest of these doggies has enough trouble finding the door in the daytime.<\/p>\n\n\n\n<p>For experimental purposes, I also tried another snapshot option wherein you can configure a new VM from one of these snapshot backups. Interestingly, it generates a new bogus MAC address, so DHCP gives the new instance a new IP address. That was slightly unhandy, but easy to fix. The oldest December snapshot, from the 4th, behaved exactly the same, which leads me to believe that this is probably not a filesystem issue, so I have put back the December 11 snapshot and have been working with it.<\/p>\n\n\n\n<p>I tried something kind of radical and deleted the Zigbee Home Automation (ZHA) integration. Home Assistant discovers the dongle like a newly installed piece of hardware:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_1spEakYcQ7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"286\" height=\"179\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_1spEakYcQ7.png\" alt=\"\" class=\"wp-image-2660\"\/><\/a><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p>Unfortunately, it returns an unknown error upon attempting to configure it.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_EMGKBSqDP3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"430\" height=\"193\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_EMGKBSqDP3.png\" alt=\"\" class=\"wp-image-2661\" srcset=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_EMGKBSqDP3.png 430w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_EMGKBSqDP3-300x135.png 300w\" sizes=\"auto, (max-width: 430px) 100vw, 430px\" \/><\/a><\/figure><\/div>\n\n\n<p>If I instead choose to Add Integration and search for Zigbee, I get these options:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_kOsP2YJvFg.png\"><img loading=\"lazy\" decoding=\"async\" width=\"486\" height=\"299\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_kOsP2YJvFg.png\" alt=\"\" class=\"wp-image-2662\" srcset=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_kOsP2YJvFg.png 486w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_kOsP2YJvFg-300x185.png 300w\" sizes=\"auto, (max-width: 486px) 100vw, 486px\" \/><\/a><\/figure><\/div>\n\n\n<p>The first option is the same as trying to configure the new hardware. The second option complains that Zigbee integration is not yet set up, but gives an option to proceed to set it up:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_zOTRyX0O6v.png\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"361\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_zOTRyX0O6v.png\" alt=\"\" class=\"wp-image-2663\" srcset=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_zOTRyX0O6v.png 576w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_zOTRyX0O6v-300x188.png 300w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/a><\/figure><\/div>\n\n\n<p>It proceeded to look very normal, like it was going to work:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_WSmf4vUhZ7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"510\" height=\"421\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_WSmf4vUhZ7.png\" alt=\"\" class=\"wp-image-2664\" srcset=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_WSmf4vUhZ7.png 510w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_WSmf4vUhZ7-300x248.png 300w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/><\/a><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_NoGEhSByae.png\"><img loading=\"lazy\" decoding=\"async\" width=\"373\" height=\"488\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_NoGEhSByae.png\" alt=\"\" class=\"wp-image-2665\" srcset=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_NoGEhSByae.png 373w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_NoGEhSByae-229x300.png 229w\" sizes=\"auto, (max-width: 373px) 100vw, 373px\" \/><\/a><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_5l8fmqcN05.png\"><img loading=\"lazy\" decoding=\"async\" width=\"395\" height=\"254\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_5l8fmqcN05.png\" alt=\"\" class=\"wp-image-2666\" srcset=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_5l8fmqcN05.png 395w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_5l8fmqcN05-300x193.png 300w\" sizes=\"auto, (max-width: 395px) 100vw, 395px\" \/><\/a><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_zhs2r91j61.png\"><img loading=\"lazy\" decoding=\"async\" width=\"378\" height=\"109\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_zhs2r91j61.png\" alt=\"\" class=\"wp-image-2667\" srcset=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_zhs2r91j61.png 378w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_zhs2r91j61-300x87.png 300w\" sizes=\"auto, (max-width: 378px) 100vw, 378px\" \/><\/a><\/figure><\/div>\n\n\n<p>Then, it ground to a halt.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_KMb7VrgcOO.png\"><img loading=\"lazy\" decoding=\"async\" width=\"378\" height=\"139\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_KMb7VrgcOO.png\" alt=\"\" class=\"wp-image-2668\" srcset=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_KMb7VrgcOO.png 378w, https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_KMb7VrgcOO-300x110.png 300w\" sizes=\"auto, (max-width: 378px) 100vw, 378px\" \/><\/a><\/figure><\/div>\n\n\n<p>There is something new here, though. It looks like it has the same port in there twice, neither working.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_O7Wclj3Mlk.png\"><img loading=\"lazy\" decoding=\"async\" width=\"289\" height=\"182\" src=\"https:\/\/www.n5hrk.com\/blog\/wp-content\/uploads\/2022\/12\/chrome_O7Wclj3Mlk.png\" alt=\"\" class=\"wp-image-2669\"\/><\/a><\/figure><\/div>\n\n\n<p>If I click on either of those, I get the same &#8216;failed to set up\/check logs&#8217; message as always, so <a href=\"https:\/\/www.scientificamerican.com\/article\/einstein-s-parable-of-quantum-insanity\/\" target=\"_blank\" rel=\"noreferrer noopener\">insanity<\/a>.<\/p>\n\n\n\n<p>To break the chain, I have ordered Sonoff&#8217;s *other* Zigbee device, based on the Silicon Labs chipset. It would seem they had cause to add to the Texas Instruments architecture, whether it was to help assure a diverse supply chain or in pursuit (or retreat) of some features. I hope to know soon.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On the heels of solving one problem comes another. We had a scary storm nearby a few days ago. This is just a few miles north of us and it is just a tiny bit of the storm damage. It took power out for our neighborhood, though only for about two hours. That was long &hellip; <a href=\"https:\/\/www.n5hrk.com\/blog\/ha\/a-delicate-matter-of-power\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">A Delicate Matter of Power<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-2637","post","type-post","status-publish","format-standard","hentry","category-ha"],"_links":{"self":[{"href":"https:\/\/www.n5hrk.com\/blog\/wp-json\/wp\/v2\/posts\/2637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.n5hrk.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.n5hrk.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.n5hrk.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.n5hrk.com\/blog\/wp-json\/wp\/v2\/comments?post=2637"}],"version-history":[{"count":6,"href":"https:\/\/www.n5hrk.com\/blog\/wp-json\/wp\/v2\/posts\/2637\/revisions"}],"predecessor-version":[{"id":2680,"href":"https:\/\/www.n5hrk.com\/blog\/wp-json\/wp\/v2\/posts\/2637\/revisions\/2680"}],"wp:attachment":[{"href":"https:\/\/www.n5hrk.com\/blog\/wp-json\/wp\/v2\/media?parent=2637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.n5hrk.com\/blog\/wp-json\/wp\/v2\/categories?post=2637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.n5hrk.com\/blog\/wp-json\/wp\/v2\/tags?post=2637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}