Roll Your Own Home Alarm System (Part 1): Hardware and Software

There are a lot of home alarm systems on the market, and most require you to purchase a bundled package from a provider that includes hardware, professional installation, and a monthly subscription. While these solutions work for many, I wanted something more customizable. I also didn’t want a company constantly tracking my cameras and sensors, if they want my data, they can pay me for it. I’m not about to pay them to take it.

I’ve been using Home Assistant on and off for years, and it has really matured. I recently put together a simple DIY alarm system that mimics many of the features of a traditional setup. Here’s what I wanted:

  • Window and Door sensors
  • Phone app control (as a front panel)
  • Smoke/Fire/CO monitoring
  • A loud siren
  • Voice announcements when doors open and alerts if they’re left open

At the heart of my system is a Raspberry Pi 5 from Canakit. This kit is great because it includes everything you need to start: power supply, case, SD card, card reader, cables, and a fan. For this project, there’s no need for a monitor, mouse, or keyboard. You’ll access it over your home network.

Next, I added a UPS battery backup to keep the Pi, router, and modem running in a power outage. Only one side of the unit is backed up so be sure to plug essential devices into that side. The other side functions as a surge protector for non-critical gear like your TV or game console.

Wireless Protocols

For wireless sensors, I prefer Z-Wave over Zigbee. Z-Wave is generally more secure, though it’s slightly pricier and offers fewer product options. Zigbee is widely used and supports more device types (like bulbs and outlets), but in my opinion, it’s too easy to hack for use in a security system. You can use both in Home Assistant if you want the best of both worlds.

Z-Wave is more secure partly because it’s governed by the Z-Wave Alliance. Devices must be certified to use the protocol. Z-Wave frequencies vary by region, so check the Alliance’s site to find compatible devices and manuals for pairing or resetting.

Door and Window Sensors

You’ll need a Z-Wave USB dongle to connect the Pi to your sensors.

For sensors, I recommend Ring’s Z-Wave contact sensors. They’re affordable and easy to install. If your doors or frames aren’t aligned, these risers help position the magnets properly. You can also 3D print your own and use extra adhesive strips. For garage doors, I use these handy brackets.

Smoke and CO Monitoring

If your home has wired smoke detectors, you can retrofit them with this Z-Wave sensor. It listens for alarms and sends a signal to Home Assistant. If you’re buying new detectors, Ring’s listener is a solid option. Note that it doesn’t detect CO directly. Instead, it listens for the sound of a CO alarm and then alerts your system.

Siren

The siren I use is discontinued, but this Aeotec model is a good replacement. These sirens often support multiple chimes and alarms, so you can assign different sounds to different events, like a door chime or an intrusion alert. You’ll configure these behaviors through Home Assistant automations.

Announcements

I currently use an Echo Dot for spoken notifications when doors open or to remind me if they’re left open at night. You can also use Google Home or other smart speakers.

Other Devices

Depending on your needs, you can add leak sensors near washers, sinks, or sump pumps. Zooz even makes an actuator that can shut off your water supply in an emergency.

Brands I’ve used successfully include Zooz, Aeotec, Dome, and Ecolink which are all great for Z-Wave sensors and actuators.

Home Assistant Setup

Home Assistant is the software platform powering all of this. You can do everything from integrating smart bulbs to automating your HVAC. For this build, we’ll stick to the basics, sensor monitoring and phone access.

The simplest and most stable install is flashing Home Assistant as the Raspberry Pi’s operating system. Their official install guide walks you through it. You won’t need a monitor or keyboard, just plug the Pi into your router with Ethernet and power it up.

After a few minutes, go to http://homeassistant:8123/ in your browser to finish setup by creating your username and password. In the next post, we’ll walk through adding sensors and automations. Then we’ll learn how to access the system remotely and have voice announcements for when events happen.

Recreating a Chrome Extension for Pinboard.in Using AI Assistants

Recently, one of my most essential Chrome extensions was automatically disabled after an update. Google Chrome has migrated to Manifest V3 for extensions, causing older, unmaintained extensions to stop working. While I’ve dabbled with extension development in the past, I wasn’t familiar with the new manifest format. This presented a perfect opportunity to test the capabilities of AI assistants like ChatGPT and Claude.

The Problem

The extension in question was simple but critical to my workflow: it allowed me to right-click and post the current page or selection directly to Pinboard.in, my bookmarking service of choice. Pinboard offers a straightforward API for adding links – you simply use the pinboard.in/add URL and pass parameters for the title, link, and description. The service then displays a page where you can adjust these values or add tags before saving.

My initial approach was to ask ChatGPT to convert the old extension to the newer manifest format. This failed completely. Since I couldn’t verify the license of the original extension (the creator’s personal website is offline – I hope they’re okay!), I decided to build a new extension from scratch.

Building a new Plugin from Scratch with AI

I started by explaining my goal to ChatGPT and requesting a Manifest V3 template. This generated the foundational file I used moving forward. I think templating is a really good use case for AI assistants to make. But from there, things went a little awry.

For example, a seemingly simple request like:

"When I right click and select my 'post to pinboard' entry, I want a popup to appear with the pinboard.in/add page"

led to several iterations because my language wasn’t as precise as it should have been. First, ChatGPT created a Chrome popup using chrome.action.openPopup() which is technically correct based on my prompt, but not what I needed.  Once I closed the Chrome popup, then a blank pinboard.in/add page opened in the browser window.  The Title and Link info I entered into the popup did not pass to the pinboard window either. Obviously I was going to have to assume less of the AI when writing my prompts.

After clarification, the new code opened the pinboard.in/add page in a new tab which was closer, but still not ideal. I gave it one more try, clarifying I wanted a new window. Finally, it created a separate popup window, but it wouldn’t automatically close after submission

This inability to autoclose the window was tricky for ChatGPT. Once the user clicks the “Add Bookmark” button, the popup window just went completely white, but would not close, regardless of the command I tried in the listener callback function.  This was frustrating because every time I asked for new code, ChatGPT would reply as if it had made some change, but you produce identical code. The responses were something like

You’re right, I added a window.close() call in the function to make the window close when the “Add Bookmark” button is clicked.

After multiple attempts with ChatGPT producing identical code despite my clarifications, I switched to Claude to see if it could help solve the popup closing issue. I pasted in my code and asked it for help closing the pop up window. Initially, Claude produced similar results, but after some persistence, it understood what I was trying to accomplish.  In it’s final response, it mentioned making the popup window a “true popup” which is the solution I was looking for from the beginning.

With the “post page to Pinboard” feature working properly, I then extended the extension to work with selected text. When text is highlighted on a page, the extension now adds it as the description parameter in the Pinboard form – creating a more versatile bookmarking tool. The last step was making custom icons in inkscape and post it on github.

Installing and Using the Final Product

  1. Click here to see the complete, working extension is available on GitHub.
  2. To test this plugin, simply download the code as a zip file to you PC.
  3. Unzip this folder my right-clicking it and selecting “Extract All” if in windows.
  4. Then open chrome://extensions/
  5. In the top right corner, click to activate “Developer mode”
  6. This will show 3 additional button on the top right of the window. Click “Load Unpacked” and select the folder
  7. Then on any webpage, right-click and select “Post page to Pinboard” (Obviously you should have a pinboard.in account for this to work)

This project shows both the potential and limitations of using AI assistants for development tasks. While they excel at generating boilerplate code and understanding common patterns, precise implementation details sometimes require persistence and clear communication. You can spend longer debugging what they give you rather than just writing the code yourself, even if you aren’t familiar with all the details of the language.  By asking the AI tools for a description of how to do atomic tasks, or how a particular function might work if you are unfamiliar, you’ll get farther than just expecting it to produce good ode on its own.

Fix Your Fire TV Showing a Blank Screen After the Logo

If you’ve recently encountered an issue where your Fire TV loads the logo but gets stuck on a blank screen, you’re not alone. I experienced this frustrating problem myself. The app buttons for Netflix, Hulu, and Disney worked fine, but I couldn’t get the home screen to load or access Prime Video properly. Every time I tried using Prime, I got an error message: “Error: 1061.”  I tried a lot of recommendations from users on Amazon’s forums such as unplugging the firestick from both the HDMI and power for 15 minutes, then trying again. I also tried their suggestion of changing the HDMI port, but nothing they suggested worked.

After some poking around, I eventually found a quick and effective fix:

  1. Open the Prime Video app on your Fire TV.
  2. Navigate to the Account section within Prime.
  3. Select Sign in with a different Amazon account to log out of your current account.
  4. Log back in using your Amazon credentials.

That’s it! After logging back in, everything worked perfectly again—the home screen loaded, and Prime Video was back to normal.

If you’re facing a similar issue, give this method a try before diving into more complicated fixes. It worked like a charm for me!

Design Nerding – Product Dissection of a Kid’s Meal toy

A while back, the CG version of the Lion King came out in theaters. As advertisement for the release Kid’s meals at McDonalds came with themed toys. One was a talking toy. I’ve long been fascinated by toys like this and took apart tons of them as a kid. They are great case studies for DFM (Design for Manufacture).  I wanted to see how they are making them nowadays.

As typical for McDonald’s, you need the tri-bit (or similar sized flat-head and some patience) to take this toy apart.

Once apart, I was amazed at how simple it was.  In the past, I recall a small PCB with a potted silicon die on the board (black blob tech). I was surprised to find that now they no longer have a PCB at all. Now they just have a 4-terminal IC in a custom package. The pins are Vcc, Gnd, and the 2 speaker outputs. Very minimal costs here.

One of the best parts of these kinds of cheap toys are the switches. It is much cheaper to make the switch yourself versus buy a pre-made switch. This one is an elegant design for sure. Th Gnd side of the chip attaches to a cheap stamped metal spring that is bent along two different axes. The long arm of the metal spring fits into a slot on the switch. The switch itself is molded such that it has a compliant spring that helps it “click” into one of two positions moulded on the base of the toy. (Second pic below makes this more obvious, look at the bump on the right side of the switch and the two indexed locations on the right side of the hole in the plastic base).

   

 

Overall the design is about as cheap as you can get for a talking toy while still being well-engineered and not feeling “cheap”. McDonalds typically has some really great engineering in the toys (if you’d believe it) when compared to some other fast food places. For example, the reinforcements in the base of this toy gives an experience that you wouldn’t know the switch was just an extra cobbled together bit of plastic.  The toys are always solid-feeling (not flimsy when you apply force when actuating the switch for instance) and I find it rare to see sunken areas on the outside of the piece opposite of the reinforcement ribs in the plastic. McDonalds only works with a few suppliers for their toys and rigorously check them for safety (after being sued in the 80s for toys being choking hazards, hence the “for ages 3+” warnings on all toys nowadays). Check out this article on one of the companies and see the journey of a toy from concept to reality.

McDonald’s has decided to stop making plastic toys by 2025 globally. I’m sure there are billions of these types of toy in consignment stores, garages, landfills, and buried in back yards across the world if you want to get ahold of some to take apart.

Keep your eyes peeled for great design!

Transfer Files From Phone to PC Easily

I have a Pixel phone that for some reason always disconnects when I try to transfer files over USB to my laptop. it is almost full of pics and videos since I can’t really transfer them off. I finally filled the phone up and had to make space, so I figured out the method I’m going to use from now on to transfer files on and off my phone.

I set my phone up to be a simple little WebDAV server. This allows me to very easily map it as a network drive in windows and transfer files at will.

I downloaded HTTP File Server (+WebDAV ) on my phone. Then I opened it and clicked the “Start button to start the server. Obviously you have to give this app file permissions for it to work.

Then on my PC, I mapped the drive by right-clicking the “This PC” and selected “Map Network Drive:

 

Then type in the address from the HTTP Server app.

Once this is done you can access the file from the phone via whatever drive letter you selected when you mapped it. In the above image the drive is the Y:/

 

Protected by CleanTalk Anti-Spam