<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://hawksley.org/feed.xml" rel="self" type="application/atom+xml" /><link href="https://hawksley.org/" rel="alternate" type="text/html" /><updated>2026-11-03T03:21:53+00:00</updated><id>https://hawksley.org/feed.xml</id><title type="html">Joel Hawksley</title><subtitle>Joel Hawksley is a software engineer based in Colorado.</subtitle><author><name>Joel Hawksley</name></author><entry><title type="html">Are motorized window shades worth it?</title><link href="https://hawksley.org/2026/10/30/powered-window-shades-worth-it.html" rel="alternate" type="text/html" title="Are motorized window shades worth it?" /><published>2026-10-30T00:00:00+00:00</published><updated>2026-10-30T00:00:00+00:00</updated><id>https://hawksley.org/2026/10/30/powered-window-shades-worth-it</id><content type="html" xml:base="https://hawksley.org/2026/10/30/powered-window-shades-worth-it.html"><![CDATA[<figure>
  <img src="/img/posts/2026-10-30-powered-window-shades-worth-it/sun-angle-alt.jpg" alt="A top-down shade partially covers a window, leaving a view of blue sky and mountains above it." />
  <figcaption>Using a little bit of trigonometry to block the sun while preserving the view.</figcaption>
</figure>

<p>I get a lot of <a href="https://hawksley.org/2026/02/23/smart-home-solver.html">questions</a> about our motorized window shades. They basically all boil down to: are they worth it? In short, yes. In this post, I’ll answer some common questions and help you decide if a similar system would be worth it for you.</p>

<h2 id="what-shade-system-did-you-use">What shade system did you use?</h2>

<p>In our old home, had top-down/bottom-up (TDBU) shades throughout our house and really liked the combination of light and privacy. Since Hunter Douglas offered TDBU but Lutron did not, it made our decision easy.</p>

<h2 id="do-i-have-to-prewire">Do I have to prewire?</h2>

<p>Ideally. Since we have 40 shades, it’s nice to not have 40 batteries to charge, even if it’s only every year or so. We have batteries on our three door-mounted shades and hardwired the rest. If I was doing a retrofit installation, I’d use a system that can be solar powered like Hunter Douglas or Smartwings.</p>

<p>We ran shade wiring to the top corner of each window frame:</p>

<figure>
  <img src="/img/posts/2026-10-30-powered-window-shades-worth-it/prewire.jpg" alt="Shade wiring runs through exposed framing to the upper-right corner of a window during construction." />
  <figcaption></figcaption>
</figure>

<p>The wires all run to our utility closet, terminating into three power supplies:</p>

<figure>
  <img src="/img/posts/2026-10-30-powered-window-shades-worth-it/power-supplies.jpg" alt="Labeled shade wires connect to three wall-mounted Hunter Douglas power supplies." />
  <figcaption></figcaption>
</figure>

<h2 id="what-shades-did-you-use">What shades did you use?</h2>

<p>In general, we went with a simple honeycomb shade throughout the house. With the same paint color for walls and trim in every room, we picked a single color fabric for all of the shades.</p>

<p>In the bedrooms, we wanted our shades to have <em>both</em> TDBU privacy and blackout layers. Our dealer came up with a clever solution using a pair of shades with a light-blocking channel between the two, painted to match the window trim:</p>

<figure>
  <img src="/img/posts/2026-10-30-powered-window-shades-worth-it/wall-channel.jpg" alt="A close-up of two shade headrails with a light-blocking channel between them, painted to match the white window trim." />
  <figcaption>The light-blocking channel between the privacy and blackout shades.</figcaption>
</figure>

<figure>
  <img src="/img/posts/2026-10-30-powered-window-shades-worth-it/half-lit.jpg" alt="Two bedroom windows with cellular shades; daylight filters through the lower half of the left shade while the right window is fully darkened." />
  <figcaption>The privacy and blackout layers let us choose how much light to let in.</figcaption>
</figure>

<h2 id="how-much-were-they">How much were they?</h2>

<p>Pricing varies depending on size, fabric, and number of motors (for TDBU), but we paid around $1k/window.</p>

<p>When we started our build, we didn’t know if we’d have room in our budget for the system, so we prewired just to be safe, for a minimal increase in cost. In a few cases, we did not install a shade until we knew we wanted one, hiding the wire in a small plastic box inside the window frame in the mean time.</p>

<h2 id="do-you-have-to-use-an-app-to-control-them">Do you have to use an app to control them?</h2>

<p>While there is a Hunter Douglas app, we basically only used it for the initial system setup, using the wall-mounted and handheld remotes for any manual control.</p>

<p>For the initial installation, we temporarily mounted all of the remotes next to existing light switches using Command strips. After a year of living with the system, we did not move a single remote. In a few cases, we added additional remotes where we had other existing light switches. With how much daylight we get in Colorado, the shades are really just another lighting system, so it feels natural to have the shades controlled in the same location as the lights for a room.</p>

<h2 id="what-kinds-of-automations-do-you-use">What kinds of automations do you use?</h2>

<p>While the Hunter Douglas app (PowerView) has support for basic time and sunrise/sunset offsets for schedules, it doesn’t compare to what can be done with <a href="https://www.home-assistant.io/">Home Assistant</a>. Our automations fall into a couple of categories:</p>

<h3 id="time-of-day">Time of day</h3>

<p>Our simplest automations are triggered at a fixed time, such as having the shades open as our morning alarm clock (and turning on our side table lamps if the sun isn’t up yet):</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">triggers</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">trigger</span><span class="pi">:</span> <span class="s">time</span>
    <span class="na">at</span><span class="pi">:</span> <span class="s2">"</span><span class="s">06:00:00"</span>
<span class="na">actions</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">action</span><span class="pi">:</span> <span class="s">scene.turn_on</span>
    <span class="na">target</span><span class="pi">:</span>
      <span class="na">entity_id</span><span class="pi">:</span>
        <span class="pi">-</span> <span class="s">scene.primary_bedroom_open</span>
    <span class="na">data</span><span class="pi">:</span> <span class="pi">{}</span>
  <span class="pi">-</span> <span class="na">if</span><span class="pi">:</span>
      <span class="pi">-</span> <span class="na">condition</span><span class="pi">:</span> <span class="s">sun.is_set</span>
    <span class="na">then</span><span class="pi">:</span>
      <span class="pi">-</span> <span class="na">action</span><span class="pi">:</span> <span class="s">scene.turn_on</span>
        <span class="na">target</span><span class="pi">:</span>
          <span class="na">entity_id</span><span class="pi">:</span> <span class="s">scene.primary_table_lamps_low</span>
</code></pre></div></div>

<h3 id="sun-angle">Sun angle</h3>

<p>We have several automations that open and close shades based on the angle of the sun relative to the window, reducing glare and keeping our home’s temperature consistent room-to-room. For example, this automation controls an east-facing shade using a combination of elevation as a sunrise offset and azimuth to determine when the window is no longer in direct sun:</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1"># Close when the sun gets high enough</span>
<span class="pi">-</span> <span class="na">triggers</span><span class="pi">:</span>
    <span class="pi">-</span> <span class="na">trigger</span><span class="pi">:</span> <span class="s">numeric_state</span>
      <span class="na">entity_id</span><span class="pi">:</span> <span class="s">sun.sun</span>
      <span class="na">attribute</span><span class="pi">:</span> <span class="s">elevation</span>
      <span class="na">above</span><span class="pi">:</span> <span class="m">20</span>
  <span class="na">actions</span><span class="pi">:</span>
    <span class="pi">-</span> <span class="na">action</span><span class="pi">:</span> <span class="s">cover.close_cover</span>
      <span class="na">target</span><span class="pi">:</span>
        <span class="na">entity_id</span><span class="pi">:</span> <span class="s">cover.east_shade</span>

<span class="c1"># Reopen after the sun passes the east window</span>
<span class="pi">-</span> <span class="na">triggers</span><span class="pi">:</span>
    <span class="pi">-</span> <span class="na">trigger</span><span class="pi">:</span> <span class="s">numeric_state</span>
      <span class="na">entity_id</span><span class="pi">:</span> <span class="s">sun.sun</span>
      <span class="na">attribute</span><span class="pi">:</span> <span class="s">azimuth</span>
      <span class="na">above</span><span class="pi">:</span> <span class="m">135</span>
  <span class="na">actions</span><span class="pi">:</span>
    <span class="pi">-</span> <span class="na">action</span><span class="pi">:</span> <span class="s">cover.open_cover</span>
      <span class="na">target</span><span class="pi">:</span>
        <span class="na">entity_id</span><span class="pi">:</span> <span class="s">cover.east_shade</span>
</code></pre></div></div>

<h3 id="seasonal-triggers">Seasonal triggers</h3>

<p>For some windows, they only pass the open/close criteria during certain times of year. We have a window in our living room that gets a lot of glare for about an hour in the evening on the longest days of the year, so that shade closes based on sun angle and a minimum elevation:</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">triggers</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">trigger</span><span class="pi">:</span> <span class="s">numeric_state</span>
    <span class="na">entity_id</span><span class="pi">:</span>
      <span class="pi">-</span> <span class="s">sensor.sun_solar_azimuth</span>
    <span class="na">above</span><span class="pi">:</span> <span class="m">275</span>
<span class="na">conditions</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">condition</span><span class="pi">:</span> <span class="s">numeric_state</span>
    <span class="na">entity_id</span><span class="pi">:</span> <span class="s">sensor.sun_solar_elevation</span>
    <span class="na">above</span><span class="pi">:</span> <span class="m">14</span>
<span class="na">actions</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">action</span><span class="pi">:</span> <span class="s">cover.close_cover</span>
    <span class="na">target</span><span class="pi">:</span>
      <span class="na">entity_id</span><span class="pi">:</span> <span class="s">cover.north_shade</span>
</code></pre></div></div>

<h3 id="sun-angle-control-of-shade-height">Sun angle control of shade height</h3>

<figure>
  <img src="/img/posts/2026-10-30-powered-window-shades-worth-it/sun-angle.jpg" alt="An exterior view of a window with a partially lowered top-down shade and a roof overhang casting a shadow above it." />
  <figcaption>The shade meets the shadow from the roof overhang, blocking direct sunlight while leaving the top of the window open.</figcaption>
</figure>

<p>Since we have TDBU shades, we can set them to the exact height necessary to block direct sunlight while still allowing a view. For a couple of south-facing shades, I calculate the shade height (which is just a percentage of the opening) using a little bit of trigonometry:</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="pi">{</span><span class="err">%</span> <span class="nv">set overhang_depth = 30 %</span><span class="pi">}</span>
<span class="pi">{</span><span class="err">%</span> <span class="nv">set overhang_height = 4.5 %</span><span class="pi">}</span>
<span class="pi">{</span><span class="err">%</span> <span class="nv">set opening_height = 51 %</span><span class="pi">}</span>

<span class="pi">{</span><span class="err">%</span> <span class="nv">set tangent = tan(states('sensor.sun_solar_elevation') | float * pi/180) %</span><span class="pi">}</span>
<span class="pi">{</span><span class="err">%</span> <span class="nv">set shadow_height = tangent * overhang_depth %</span><span class="pi">}</span>
<span class="pi">{</span><span class="err">%</span> <span class="nv">set shade_height = opening_height + overhang_height - shadow_height %</span><span class="pi">}</span>

<span class="pi">{{</span> <span class="nv">(100 - (shade_height / opening_height) * 100) | int | abs</span> <span class="pi">}}</span>
</code></pre></div></div>

<p>That helper value is then used as part of an azimuth and elevation-driven automation to set the shade to match the angle of the sun. Every hour, the shade re-positions to the updated value, then opens completely once the sun has moved past.</p>

<h3 id="scenes-remote">Scenes remote</h3>

<p>For our main common area, we have a Lutron pico remote (ironically) for picking from a couple of scenes:</p>

<figure>
  <img src="/img/posts/2026-10-30-powered-window-shades-worth-it/scenes-remote.jpg" alt="A Lutron Pico remote on a tabletop stand with buttons labeled Open, Privacy, and Closed." />
  <figcaption>A Lutron Pico remote mapped to our Open, Privacy, and Closed shade scenes.</figcaption>
</figure>

<h2 id="what-happens-in-a-power-outage">What happens in a power outage?</h2>

<p>The first time we had a power outage, none of the shades worked! We plugged the power supplies into our server rack UPS and haven’t had any issues since.</p>

<h2 id="are-they-guestkid-friendly">Are they guest/kid friendly?</h2>

<p>Not especially. Now that cordless shades are more common, some guests have tried to manually lift the shades, which doesn’t do anything. The remotes take some explaining, and our 3-year-old can’t use them properly yet (which is a good thing, most of the time!)</p>

<h2 id="did-you-really-need-to-do-double-shades">Did you really need to do double shades?</h2>

<p>No. We probably could have gone without the privacy shade and just done a single blackout layer.</p>

<h2 id="did-you-motorize-the-sliding-door-shade">Did you motorize the sliding door shade?</h2>

<p>Yes, but we switched to a non-motorized <a href="https://www.hunterdouglas.com/enhancements/vertiglide">Vertiglide</a> shade. The motorized option was slow, loud, and its manual override was not meant to be used regularly.</p>

<h2 id="are-they-energy-efficient">Are they energy efficient?</h2>

<p>There is a real insulating effect to the cellular shades. On cold nights in the winter, we have to open the shades slightly to avoid trapping cold air behind them, which causes humidity in the air to freeze to the inside of the window! In our case, we were able to get a ~$1k total energy-savings credit for installing the system. (The credit is the same for motorized and non-motorized installations).</p>

<h2 id="are-they-worth-it">Are they worth it?</h2>

<p>Overall, we are incredibly happy with our motorized shades. While it was by far the most expensive smart home feature of our project, it’s also been the most practical. On most days, we never have to adjust any of them manually; they are always in the right position.</p>]]></content><author><name>Joel Hawksley</name></author><summary type="html"><![CDATA[Common questions about our motorized window shades and whether a similar system would be worth it for you.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://hawksley.org/img/posts/2026-10-30-powered-window-shades-worth-it/sun-angle-alt.jpg" /><media:content medium="image" url="https://hawksley.org/img/posts/2026-10-30-powered-window-shades-worth-it/sun-angle-alt.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">10 lessons from 4,000 miles of cargo biking</title><link href="https://hawksley.org/2026/09/19/10-lessons-from-4000-miles-of-cargo-biking.html" rel="alternate" type="text/html" title="10 lessons from 4,000 miles of cargo biking" /><published>2026-09-19T00:00:00+00:00</published><updated>2026-09-19T00:00:00+00:00</updated><id>https://hawksley.org/2026/09/19/10-lessons-from-4000-miles-of-cargo-biking</id><content type="html" xml:base="https://hawksley.org/2026/09/19/10-lessons-from-4000-miles-of-cargo-biking.html"><![CDATA[<figure>
  <img src="/img/posts/2026-09-19-10-lessons-from-4000-miles-of-cargo-biking/mesa.jpg" alt="A cargo bike carrying two children is parked beside cows grazing below the Flatirons." />
  <figcaption>Stopping to watch the cows grazing on <a href="https://www.alltrails.com/trail/us/colorado/davidson-mesa-loop">Davidson Mesa</a> on the way to get groceries.</figcaption>
</figure>

<p>Over the past two years, I’ve put more than 4,000 miles on my cargo bike, 1,000 of them in the past three months! It has become my default mode of transportation for daycare, groceries, and other errands. I think it could do the same for many families with access to good cycling infrastructure. Here are some things I’ve learned along the way:</p>

<h2 id="1-you-can-run-most-errands">1) You can run most errands</h2>

<figure>
  <img src="/img/posts/2026-09-19-10-lessons-from-4000-miles-of-cargo-biking/costco.jpg" alt="A cargo bike carrying a child, toilet paper, dog food, and other bulk goods outside Costco." />
  <figcaption>A full Costco trip, with room to spare.</figcaption>
</figure>

<p>Between bungee cords, panniers, a <a href="https://www.clevermade.com/products/clevercrate-utility-crate">large front folding basket with high sides</a> (so it can be folded down when strapping something larger on top of it), and <a href="https://www.chewy.com/aosom-dog-bike-trailer/dp/1601958">the cheapest bike trailer I could find</a>, I’ve hauled all sorts of loads. Most spectacularly, I’ve made full trips to Costco, hauling massive packages of toilet paper, dog food, and seltzer.</p>

<figure>
  <img src="/img/posts/2026-09-19-10-lessons-from-4000-miles-of-cargo-biking/trailer.jpg" alt="A cargo bike and trailer are parked beside a child sitting in a field below the Flatirons." />
  <figcaption>Stopping for a snack break while pulling the trailer.</figcaption>
</figure>

<h2 id="2-it-can-be-faster-than-a-car">2) It can be faster than a car</h2>

<p>Between easier parking, less resistance to loading up, and plentiful underpasses in our area, the door-to-door time for many of our common trips is not that different from taking a car. There are six traffic lights between our house and our favorite grocery store, but it’s only a 10-minute bike ride.</p>

<p>With even a little traffic, the bike quickly becomes the faster option.</p>

<h2 id="3-better-parking">3) Better parking</h2>

<p>Bike parking is often more convenient than car parking. No more walking through parking lots with the kids! For example, the bike racks at our farmers market save us a five- to ten-minute walk from where we typically have to park our car. This means we can go without a stroller at the market too.</p>

<p>With the simple addition of a <a href="https://www.seattleelectricbike.net/products/abus-amparo-4750xl-frame-wheel-lock-119mm-mount-spacing-93mm-clearance?_pos=3&amp;_sid=1a8784556&amp;_ss=r">frame lock</a>, we don’t even need a rack to lock up! The newer model of our bike has a built-in electronic immobilizer, which some friends use without a physical lock at all.</p>

<h2 id="4-kids-love-it">4) Kids love it</h2>

<figure>
  <img src="/img/posts/2026-09-19-10-lessons-from-4000-miles-of-cargo-biking/kids.jpg" alt="A child sits on a cargo bike watching road construction equipment at work." />
  <figcaption>What better way to break up the daily routine than with some construction site action?</figcaption>
</figure>

<p>Our boys aren’t huge fans of being in their car seats for very long. We’ve had almost no complaints about being on the bike. They love how spontaneous we can be when biking. It’s a lot easier to pull over on a bike to see an interesting bird or construction site! One afternoon, our toddler looked out our kitchen window and saw a foundation being poured across town. We hopped right on the bike and went to find it!</p>

<figure>
  <img src="/img/posts/2026-09-19-10-lessons-from-4000-miles-of-cargo-biking/pump-crane.jpg" alt="A child sits on a cargo bike watching a concrete pump pour a foundation." />
  <figcaption>Watching a concrete pump pour a foundation across town.</figcaption>
</figure>

<h2 id="5-we-have-incredible-cycling-infrastructure">5) We have incredible cycling infrastructure</h2>

<p>From protected bike lanes to an extensive trail system and even the <a href="https://ridewithgps.com/routes/44098187">US 36 bikeway</a> connecting Denver and Boulder, we are privileged to have such great options for cycling in Louisville and throughout Boulder County. There are hundreds of miles of cycling infrastructure, nearly all interconnected.</p>

<h2 id="6-you-can-ride-in-most-weather">6) You can ride in most weather</h2>

<figure>
  <img src="/img/posts/2026-09-19-10-lessons-from-4000-miles-of-cargo-biking/weather.jpg" alt="A wet cargo bike fitted with a black rain canopy is parked under shelter." />
  <figcaption>Riding in a downpour with the Clubhouse Fort.</figcaption>
</figure>

<p>While our weather is far from mild, I’ve been able to ride almost every day of the year thanks to having the right equipment. We use a <a href="https://www.ternbicycles.com/us/explore/product-guides/clubhouse-fort-all-weather-passenger-cabin-kids-tern-cargo-bikes">Tern Clubhouse Fort</a> (mounted with 3D-printed parts from <a href="https://betterabound.familybikeride.org/winter-kit/">Better Abound</a>), <a href="https://barmitts.com/">bar mitts</a>, and <a href="https://www.schwalbetires.com/Marathon-Plus-Spike-11159003.01">studded tires</a>.</p>

<p>Winter biking is a lot like skiing: low cardio and high speed in cold weather. On chillier days, I proudly put on ski goggles (and ski pants/jacket, when it’s well below freezing).</p>

<h2 id="7-bike-maintenance-is-a-great-hobby">7) Bike maintenance is a great hobby</h2>

<p>While e-bikes are more complicated than conventional bikes, they only require a little bit of regular maintenance that I’ve found very zen. Keeping the tires inflated, checking spoke tension, and lubricating the drivetrain every couple of weeks is a nice way to work with my hands.</p>

<p>A <a href="https://tealtriangle.com/products/elite-kayak-system">kayak hoist</a> makes it much easier to lift the bike for maintenance. For out and about, you’ll need a few more tools to change a flat on a hub-motor wheel than you would for a conventional bike.</p>

<h2 id="8-cheaper-than-a-car">8) Cheaper than a car</h2>

<p>While you can spend $5,000, $10,000, or even $20,000 on an electric cargo bike, <a href="https://www.aventon.com/products/abound-lr-ebike?variant=44189242818755">ours was around $1,700</a> (plus maybe another $750 in accessories), not counting the state and city rebates often available. I spend a few hundred dollars a year on maintenance and maybe $50 a year on electricity.</p>

<h2 id="9-access-to-places-only-reachable-by-bike">9) Access to places only reachable by bike</h2>

<figure>
  <img src="/img/posts/2026-09-19-10-lessons-from-4000-miles-of-cargo-biking/creek-wide.jpg" alt="A child stands beneath trees on a quiet dirt bank at a bend in Coal Creek." />
  <figcaption>A quiet day at our favorite bend in Coal Creek.</figcaption>
</figure>

<p>There is a limit to how far our young kids can walk. Biking unlocks a whole world of fun places to explore around town that are far from car parking, such as our favorite bend in Coal Creek where we catch tadpoles and crayfish.</p>

<h2 id="10-good-for-your-mood">10) Good for your mood</h2>

<figure>
  <img src="/img/posts/2026-09-19-10-lessons-from-4000-miles-of-cargo-biking/creek.jpg" alt="A cyclist rides beside Coal Creek under trees with golden fall leaves." />
  <figcaption>A fall morning along Coal Creek on the way to daycare.</figcaption>
</figure>

<p>You’ll rarely see someone sad to be riding an e-bike. You can’t say the same about cars!</p>

<p>I’ve found our morning 10-mile round trip to daycare to be my favorite part of the day, now that we can ride as a whole family and chat on our <a href="https://www.sena.com/en-us/product/bikom-20/">Sena</a> headsets along the way.</p>

<hr />

<p>4,000 miles later, our family’s daily life looks a lot different. If you have access to good cycling infrastructure, a cargo bike might change yours too.</p>]]></content><author><name>Joel Hawksley</name></author><summary type="html"><![CDATA[After 4,000 miles by cargo bike, I’ve learned how it can replace a car for daycare, groceries, and family adventures.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://hawksley.org/img/posts/2026-09-19-10-lessons-from-4000-miles-of-cargo-biking/mesa.jpg" /><media:content medium="image" url="https://hawksley.org/img/posts/2026-09-19-10-lessons-from-4000-miles-of-cargo-biking/mesa.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Be a better listener by picking the right distractions</title><link href="https://hawksley.org/2026/09/08/be-a-better-listener-by-picking-the-right-distractions.html" rel="alternate" type="text/html" title="Be a better listener by picking the right distractions" /><published>2026-09-08T00:00:00+00:00</published><updated>2026-09-08T00:00:00+00:00</updated><id>https://hawksley.org/2026/09/08/be-a-better-listener-by-picking-the-right-distractions</id><content type="html" xml:base="https://hawksley.org/2026/09/08/be-a-better-listener-by-picking-the-right-distractions.html"><![CDATA[<figure>
  <img src="/img/posts/2026-09-08-be-a-better-listener-by-picking-the-right-distractions/workshop.jpg" alt="An iPad sits in a stroller displaying a video call while a bike hangs in the air on a pulley." />
  <figcaption>Doing my monthly cargo bike maintenance during a recent retro.</figcaption>
</figure>

<p>At a recent Boulder Ruby meetup, we talked about our struggles with paying attention during remote meetings, especially after several in a row. My approach raised a few eyebrows: I actively try to distract myself during meetings! It’s the only way I can pay attention: the key is finding the right distractions.</p>

<p>For years, my computer, phone, and watch have conspired to distract me during remote meetings. I’ve had some luck hiding non-call windows, leaving my phone plugged in elsewhere, and putting my watch in do-not-disturb. Even then, I’d find myself mindlessly alt-tabbing to my browser or Slack.</p>

<p>I’d tell myself that I was still paying attention to the person speaking, but it’s really only possible to process a single stream of language input at a time; you have to choose between listening or reading.</p>

<p>I remembered how my old manager <a href="https://github.com/benjaminleesmith">Ben</a> took many of his 1:1s on foot, racking up tens of thousands of steps in the neighborhoods around our office in Denver. So I started doing the same.</p>

<p>Now, I try to take meetings away from my desk whenever I can. I go on walks around the neighborhood, do dishes, clean the garage, really anything that involves moving my body and doesn’t involve processing another language stream. Company all-hands? Time to do my monthly half-hour of bike maintenance.</p>

<p>For some folks, this might mean doodling, playing with fidget toys, or even looking out the window (something my eye doctor tells me I should be doing more!). Since most of our meetings are recorded, I’ll often listen to calls I don’t need to participate in a day or two later while biking home from daycare drop-off, driving around town for errands, or even going for a run.</p>

<p>I wouldn’t be comfortable with this approach without the psychological safety I feel at work. My <a href="https://github.com/attamusc">director</a> models and encourages it himself, often doing his 1:1s from the kitchen while cooking meals and preparing snacks for his kids.</p>

<p>Since making this change, I’ve noticed that I am remembering more from my calls, ending my days significantly less fatigued than before, and can be just as present in my fourth call of the day as I am in my first. While it may seem counterintuitive, I believe that the ability to truly listen to others is the most professional, respectful thing we can do. And for me, the right distractions are a big part of listening well.</p>]]></content><author><name>Joel Hawksley</name></author><summary type="html"><![CDATA[At a recent Boulder Ruby meetup, we talked about our struggles with paying attention during remote meetings, especially after several in a row. My approach raised a few eyebrows: I actively try to distract myself during meetings! It’s the only way I can pay attention: the key is finding the right distractions.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://hawksley.org/img/posts/2026-09-08-be-a-better-listener-by-picking-the-right-distractions/workshop.jpg" /><media:content medium="image" url="https://hawksley.org/img/posts/2026-09-08-be-a-better-listener-by-picking-the-right-distractions/workshop.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Adopting Herb at GitHub</title><link href="https://hawksley.org/2026/05/06/adopting-herb-at-github.html" rel="alternate" type="text/html" title="Adopting Herb at GitHub" /><published>2026-05-06T00:00:00+00:00</published><updated>2026-05-06T00:00:00+00:00</updated><id>https://hawksley.org/2026/05/06/adopting-herb-at-github</id><content type="html" xml:base="https://hawksley.org/2026/05/06/adopting-herb-at-github.html"><![CDATA[<p><em>A transcript of a spring 2026 lightning talk, as presented at Boulder Ruby.</em></p>

<p><em>Bio: Joel is a staff software engineer at GitHub, working on the health of the GitHub.com Rails monolith.</em></p>

<p><em>Abstract: We’ve spent the past few months integrating Herb into the GitHub.com monolith. It caught numerous bugs missed by our existing tooling and allowed us to migrate off the effectively-archived erb_lint, but a key performance blocker remains. In this talk, I’ll share how you can see similar benefits in your codebase today and help improve the project ahead of its 1.0 release.</em></p>

<p>Before I get started, how many people here have heard of Herb?</p>

<p>For those who haven’t, <a href="https://github.com/marcoroth/herb">Herb</a> is an “ecosystem of powerful and seamless developer tools for HTML+ERB (HTML + Embedded Ruby) templates” created by <a href="https://marcoroth.dev/">Marco Roth</a>. The crown jewel of the Herb ecosystem is the Herb parser, which is written in C. Based on Prism, its syntax tree is the basis for all the modern developer experience features you’d expect but were otherwise missing from the ERB stack, like a language server, formatter, etc.</p>

<p>Marco has been on a world-wide speaking tour presenting his work on the project. Last I checked, he had <a href="https://www.rubyevents.org/profiles/marcoroth">seven talks on Ruby Events</a> already this year! I’d encourage you to check them out to learn more about the project.</p>

<p>Today, I’m going to share our experience adopting Herb at GitHub and why I think you should do the same in your codebase. I’ll also share a few things you’ll wish you never knew about ERB.</p>

<h2 id="why-we-are-adopting-herb">Why we are adopting Herb</h2>

<p>The Rails core team is interested in having Herb replace Erubi. As GitHub is almost certainly the most prolific renderer of ERB in the world, Marco asked us to help validate Herb before it lands in Rails.</p>

<p>How prolific? We have about half a million lines of ERB across about 10,000 files, so about 50 lines/file on average. Despite building most of our new UI in React, we still added 350 files with over 15,000 lines of ERB in 2025, twice as many files as we added in 2024.</p>

<p>While the Herb test suite is quite thorough, there was no substitute for testing it against a real, large-scale codebase. So that’s what I’ve been doing since December.</p>

<h2 id="our-process">Our process</h2>

<p>When I started out, Herb could not parse all of our ERB, due to both errors in our ERB and shortcomings in the Herb parser.</p>

<p>The first milestone was simple. I aimed to pass <code class="language-plaintext highlighter-rouge">npx @herb-tools/linter</code> with only the <code class="language-plaintext highlighter-rouge">parser-no-errors</code> rule enabled. The first time I ran the linter, fewer than 75% of our ERB files passed. I had 2,768 files to fix! Thankfully, the bugs Herb caught in our codebase were mostly benign.</p>

<h2 id="bugs-found-by-herb">Bugs found by Herb</h2>

<h3 id="invalid-html">Invalid HTML</h3>

<p>Herb found piles of missing closing tags. Thankfully, browsers are tolerant of bad HTML and will close unclosed tags for you:</p>

<div class="language-erb highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;p&gt;</span>Hello World! <span class="c">&lt;%# missing &lt;/p&gt; %&gt;</span>
</code></pre></div></div>

<div class="language-erb highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;/div</span>
</code></pre></div></div>

<p>There were also many cases where the closing tags for elements or ERB blocks were swapped:</p>

<div class="language-erb highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="cp">&lt;%</span> <span class="k">if</span> <span class="n">active?</span> <span class="cp">%&gt;</span>
<span class="nt">&lt;span&gt;</span>Hello World!
<span class="cp">&lt;%</span> <span class="k">end</span> <span class="cp">%&gt;</span>
<span class="nt">&lt;/span&gt;</span>
</code></pre></div></div>

<h3 id="conditional-openingclosing-tags">Conditional opening/closing tags</h3>

<p>In other cases, we did things in ERB that are difficult to translate into an AST, such as conditional opening and closing tags:</p>

<div class="language-erb highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="cp">&lt;%</span> <span class="k">if</span> <span class="n">show_wrapper?</span> <span class="cp">%&gt;</span>
  <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"wrapper"</span><span class="nt">&gt;</span>
<span class="cp">&lt;%</span> <span class="k">end</span> <span class="cp">%&gt;</span>
  <span class="nt">&lt;p&gt;</span>Content<span class="nt">&lt;/p&gt;</span>
<span class="cp">&lt;%</span> <span class="k">if</span> <span class="n">show_wrapper?</span> <span class="cp">%&gt;</span>
  <span class="nt">&lt;/div&gt;</span>
<span class="cp">&lt;%</span> <span class="k">end</span> <span class="cp">%&gt;</span>
</code></pre></div></div>

<p>Which I fixed by switching to:</p>

<div class="language-erb highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="cp">&lt;%</span> <span class="n">content</span> <span class="o">=</span> <span class="n">capture</span> <span class="k">do</span> <span class="cp">%&gt;</span>
  <span class="nt">&lt;p&gt;</span>Content<span class="nt">&lt;/p&gt;</span>
<span class="cp">&lt;%</span> <span class="k">end</span> <span class="cp">%&gt;</span>

<span class="cp">&lt;%</span> <span class="k">if</span> <span class="n">show_wrapper?</span> <span class="cp">%&gt;</span>
  <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"wrapper"</span><span class="nt">&gt;</span><span class="cp">&lt;%=</span> <span class="n">content</span> <span class="cp">%&gt;</span><span class="nt">&lt;/div&gt;</span>
<span class="cp">&lt;%</span> <span class="k">else</span> <span class="cp">%&gt;</span>
  <span class="cp">&lt;%=</span> <span class="n">content</span> <span class="cp">%&gt;</span>
<span class="cp">&lt;%</span> <span class="k">end</span> <span class="cp">%&gt;</span>
</code></pre></div></div>

<p>Herb has since <a href="https://github.com/marcoroth/herb/pull/1153">added support</a> for this pattern, but I think this is a case where the refactored code is just better anyway.</p>

<p>We had about 150 cases like this, which you might think would have been pretty painful to refactor. And you would have been right a year ago! But with the recent Claude Opus models, I’ve had a nearly 100% success rate of one-shot fixes simply by pasting in the Herb error. Herb does of course have a <code class="language-plaintext highlighter-rouge">--fix</code> option as well, but for the cases where it doesn’t, AI has done a very effective job.</p>

<h3 id="invalid-ruby">Invalid Ruby</h3>

<p>But some of the bugs were quite serious. Herb caught invalid Ruby in quite a few places:</p>

<div class="language-erb highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="cp">&lt;%</span> <span class="k">if</span> <span class="n">x</span><span class="p">.</span><span class="nf">y?</span> <span class="o">&amp;&amp;</span> <span class="n">x</span><span class="p">.</span><span class="nf">z?</span> <span class="o">&amp;&amp;</span> <span class="cp">%&gt;</span>
</code></pre></div></div>

<div class="language-erb highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="cp">&lt;%</span> <span class="k">if</span> <span class="n">x?</span> <span class="k">do</span> <span class="cp">%&gt;</span>
</code></pre></div></div>

<p>This was surprising, as we run <code class="language-plaintext highlighter-rouge">erb_lint</code> on all of our files and have a pretty decent test suite. But we never ran these lines outside of production. Since Herb uses Prism to actually parse the Ruby in ERB files, it caught the issues right away.</p>

<h2 id="bugs-found-in-herb">Bugs found in Herb</h2>

<p>After passing the Herb linter, I turned to getting our test suite to pass with the Herb engine replacing Erubi. We found a couple of bugs in Herb:</p>

<h3 id="whitespace-bugs">Whitespace bugs</h3>

<p>We caught a <a href="https://github.com/marcoroth/herb/pull/1361">few whitespace bugs</a>.</p>

<p>For example, the following template:</p>

<div class="language-erb highlighter-rouge"><div class="highlight"><pre class="highlight"><code>hello<span class="cp">&lt;%=</span> <span class="cp">-%&gt;</span>
world
</code></pre></div></div>

<p>Would output <code class="language-plaintext highlighter-rouge">helloworld</code> in Erubi, but in Herb would output:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>hello
world
</code></pre></div></div>

<h3 id="invalid-ruby-1">Invalid Ruby</h3>

<p>In another, more serious <a href="https://github.com/marcoroth/herb/pull/1363">case</a>, when a comment was on the same line as an <code class="language-plaintext highlighter-rouge">end</code>, Herb produced invalid Ruby.</p>

<div class="language-erb highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="cp">&lt;%=</span> <span class="n">render</span> <span class="no">Foo</span><span class="p">.</span><span class="nf">new</span> <span class="k">do</span> <span class="cp">%&gt;</span>
  hello
<span class="cp">&lt;%</span> <span class="k">end</span> <span class="c1"># comment </span><span class="cp">%&gt;</span>
</code></pre></div></div>

<p>This bug in particular put me in a cold sweat. As I mentioned earlier, we do not run every line of ERB in CI. As Rails does not compile templates until they are needed at runtime, this kind of bug would be a runtime exception. This is as much an issue with Rails as it is with Herb, as Rails blindly trusts the output of ActionView handlers such as Herb to provide valid Ruby.</p>

<p>While I think we need to add safety measures to Rails for this issue, Marco <a href="https://github.com/marcoroth/herb/pull/1259">added</a> Ruby validation to <code class="language-plaintext highlighter-rouge">herb analyze</code>.</p>

<h3 id="vendored-templates">Vendored templates</h3>

<p>The invalid Ruby issue becomes much trickier when it comes to ERB provided by gems, such as Primer ViewComponents and dashboard engines from tools like good_job. Currently, all <code class="language-plaintext highlighter-rouge">herb</code> CLI commands, including <code class="language-plaintext highlighter-rouge">analyze</code> and the linter, ignore the vendor directory. If a gem includes ERB that Herb cannot parse, it could crash production at request time. I’ve filed <a href="https://github.com/marcoroth/herb/pull/1508">a report</a>.</p>

<p>In the meantime, we have a custom CI check that force-compiles all vendored <code class="language-plaintext highlighter-rouge">.erb</code> files, catching incompatibilities before they reach production. I’ve also written PRs to fix Herb-incompatible ERB in <a href="https://github.com/rmosolgo/graphql-ruby/pull/5497">graphql-ruby</a> and <a href="https://github.com/primer/view_components/pull/3850">Primer ViewComponents</a>.</p>

<h3 id="performance-impact">Performance impact</h3>

<p>With the linter passing and our test suite green, we were ready to go to production. As a final verification step, we turned on Herb in a production cluster we use for measuring the performance impact of code changes.</p>

<p>While we saw no impact on runtime performance, we unfortunately saw a significant increase in our boot time, from two minutes to almost three. After some investigation, we identified the cause: Herb takes much longer to compile templates than Erubi does.</p>

<p>Depending on the size of the template, we observed Herb being an order of magnitude slower than Erubi:</p>

<table>
  <thead>
    <tr>
      <th>Template</th>
      <th>Size</th>
      <th>Erubi</th>
      <th>Herb</th>
      <th>Added</th>
      <th>Ratio</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Tiny</td>
      <td>58 B</td>
      <td>3.9 µs</td>
      <td>28.3 µs</td>
      <td>+24 µs</td>
      <td>7.2x</td>
    </tr>
    <tr>
      <td>Small</td>
      <td>250 B</td>
      <td>10.4 µs</td>
      <td>116.1 µs</td>
      <td>+106 µs</td>
      <td>11.2x</td>
    </tr>
    <tr>
      <td>Medium</td>
      <td>1 KB</td>
      <td>24.4 µs</td>
      <td>365.6 µs</td>
      <td>+341 µs</td>
      <td>15.0x</td>
    </tr>
    <tr>
      <td>Large</td>
      <td>3 KB</td>
      <td>81.7 µs</td>
      <td>1,059.7 µs</td>
      <td>+978 µs</td>
      <td>13.0x</td>
    </tr>
  </tbody>
</table>

<p>In a typical Rails application, a template is compiled from ERB to Ruby when it is rendered for the first time in a process, with subsequent renders hitting a cache. Switching to Herb meaningfully increases this cold render overhead. This can become an issue in applications with many templates that are regularly deployed, as the cache must be re-populated every time the application boots.</p>

<p>In GitHub.com, we use a library called <a href="https://github.com/jhawthorn/actionview_precompiler/">ActionView::Precompiler</a> to warm this cache at boot time, which is why we saw our app take longer to boot (ViewComponent also compiles templates at boot time, contributing to the slowdown). The precompiler also saves significant memory (around 500 MB per container) due to the Copy-on-Write memory usage characteristics of forking servers.</p>

<p>While we’ve explored a few solutions to the issue, such as a build-time cache similar to Bootsnap, we’re currently blocked on using Herb in production until it’s resolved. Marco <a href="https://github.com/marcoroth/reactionview/issues/96#issuecomment-4275244576">thinks we can optimize Herb</a> to avoid this issue, as Herb hasn’t seen much performance optimization yet.</p>

<p>In the meantime, I’ve opened a long-overdue PR to <a href="https://github.com/rails/rails/pull/57234">upstream ActionView::Precompiler into Rails</a>. As an added benefit, having Rails applications precompile templates at boot time will raise Herb parsing errors before they can cause runtime exceptions.</p>

<h2 id="whats-next">What’s next</h2>

<p>But more work remains. After all of our efforts to pass the linter and our test suite, 8 of the 108 tests from Erubi are <a href="https://github.com/marcoroth/herb/pull/1548">still failing</a>. Even at our scale, we do not use all of the features of Erubi. That’s where you come in! We need you to try out Herb and run it against your codebases, because ERB is maybe the pinnacle of <a href="https://www.hyrumslaw.com/">Hyrum’s Law</a>:</p>

<blockquote>
  <p>With a sufficient number of users of an API, it does not matter what you promise in the contract: all observable behaviors of your system will be depended on by somebody.</p>
</blockquote>

<p>With ERB being over 20 years old and Erubi nearing a decade, there is likely a lot of code out there that depends on undocumented behavior.</p>

<p>So what’s next for Herb at GitHub? Beyond the performance blocker, there are a few more areas we hope to see value from the project:</p>

<ul>
  <li>We are working to drop our dependency on <code class="language-plaintext highlighter-rouge">erb_lint</code> and <code class="language-plaintext highlighter-rouge">erb_lint-github</code>, as Herb has the same rules.</li>
  <li>We’ll look into turning on more lint rules to improve the quality and safety of our ERB codebase.</li>
  <li>Using the Herb AST to transpile ERB to React.</li>
</ul>

<h2 id="wrapping-up">Wrapping up</h2>

<p>Overall, I’ve been really impressed by the work Marco and company have done with Herb. It will breathe new life into the Rails frontend story and I look forward to seeing it land in Rails core.</p>

<p>In the meantime, give it a try! I have no hesitation recommending using it outside of production today, where you’ll see most of the benefits over Erubi anyways.</p>

<h2 id="thanks">Thanks</h2>

<p>Thanks to my colleagues <a href="https://danieljamescolson.com/">@composterinteralia</a> and <a href="https://hparker.xyz/">@hparker</a> who served as my peer reviewers for this project, and to <a href="https://marcoroth.dev/">@marcoroth</a> for reviewing this post.</p>]]></content><author><name>Joel Hawksley</name></author><summary type="html"><![CDATA[We've spent the past few months integrating Herb into the GitHub.com monolith. It caught numerous bugs missed by our existing tooling and allowed us to migrate off the effectively-archived erb_lint, but a key performance blocker remains. In this talk, I'll share how you can see similar benefits in your codebase today and help improve the project ahead of its 1.0 release.]]></summary></entry><entry><title type="html">Split-screen baby monitor in Apple Home</title><link href="https://hawksley.org/2026/04/02/baby-monitor.html" rel="alternate" type="text/html" title="Split-screen baby monitor in Apple Home" /><published>2026-04-02T00:00:00+00:00</published><updated>2026-04-02T00:00:00+00:00</updated><id>https://hawksley.org/2026/04/02/baby-monitor</id><content type="html" xml:base="https://hawksley.org/2026/04/02/baby-monitor.html"><![CDATA[<figure>
  <img src="/img/posts/2026-04-02-baby-monitor/picture-in-picture.jpg" alt="A picture-in-picture feed of two baby monitors is displayed in the bottom right hand corner of a tv screen. There is dramatic blue lighting in the room." />
  <figcaption>Displaying the combined feed during a Peloton workout.</figcaption>
</figure>

<blockquote>
  <p>I saw your smart home through the video on Smart Home Solver. I went to check out your site, hoping to find more info on your “baby monitoring” setup you did through your Apple TV, Unifi stack, and HA. I have the exact same setup, and my wife and I are about to welcome our firstborn. Could you point me in the right direction on how you managed to make all of that happen? Thank you. - Caleb L., Ohio</p>
</blockquote>

<p>First of all, thank you for the question Caleb! Congrats!</p>

<p>While we do have an offline baby monitor for our baby sitter, we use Ubiquiti cameras as our primary monitoring setup, mostly via the Protect app on our phones. The motion event patterns help us see how the kids are sleeping, and we use the AI baby crying detection to turn on our bedroom lights overnight!</p>

<p>Unfortunately, you can only listen to the audio from multiple cameras using the Unifi web app. Also, we like to keep our phones put away whenever possible, so we were looking for a way to display the cameras on our TV and Apple Watches.</p>

<p>With those problems in mind, set out to 1) combine the two streams into a single feed and 2) get the feed into Apple Home.</p>

<p>To combine the two streams, I used the <a href="https://github.com/AlexxIT/go2rtc">go2rtc</a> Home Assistant Add-on/App. Under <code class="language-plaintext highlighter-rouge">config</code>, I added:</p>

<div class="language-yml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">streams</span><span class="pi">:</span>
  <span class="na">combined</span><span class="pi">:</span>
    <span class="pi">-</span> <span class="s2">"</span><span class="s">exec:ffmpeg</span><span class="nv"> </span><span class="s">-rtsp_transport</span><span class="nv"> </span><span class="s">tcp</span><span class="nv"> </span><span class="s">-i</span><span class="nv"> </span><span class="s">rtsp://CAMERA_A_IP:7447/xxx</span><span class="nv"> </span><span class="s">-rtsp_transport</span><span class="nv"> </span><span class="s">tcp</span><span class="nv"> </span><span class="s">-i</span><span class="nv"> </span><span class="s">rtsp://CAMERA_B_IP:7447/yyy</span><span class="nv"> </span><span class="s">-filter_complex</span><span class="nv"> </span><span class="s">[0:v]transpose=1[left];[1:v]transpose=1[right];[left][right]hstack=inputs=2,scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2:black[out];[0:a][1:a]amix=inputs=2:duration=longest[aout]</span><span class="nv"> </span><span class="s">-map</span><span class="nv"> </span><span class="s">[out]</span><span class="nv"> </span><span class="s">-map</span><span class="nv"> </span><span class="s">[aout]</span><span class="nv"> </span><span class="s">-c:v</span><span class="nv"> </span><span class="s">libx264</span><span class="nv"> </span><span class="s">-preset</span><span class="nv"> </span><span class="s">ultrafast</span><span class="nv"> </span><span class="s">-tune</span><span class="nv"> </span><span class="s">zerolatency</span><span class="nv"> </span><span class="s">-c:a</span><span class="nv"> </span><span class="s">aac</span><span class="nv"> </span><span class="s">-f</span><span class="nv"> </span><span class="s">rtsp</span><span class="nv"> </span><span class="s">{output}"</span>
</code></pre></div></div>

<p>This combines the two Unifi cameras (note the <code class="language-plaintext highlighter-rouge">rtsp</code> protocol, changed port number and no <code class="language-plaintext highlighter-rouge">enableSrtp</code> flag), rotates them to be vertical to fit in a single frame, merges the audio, and outputs a single RTSP feed.</p>

<p>Then, in the Scrypted Home Assistant Add-on/App, add an RTSP camera with the RTSP Stream URL of <code class="language-plaintext highlighter-rouge">rtsp://homeassistant.local:8554/combined</code>. From there, it’s simply a matter of scanning the HomeKit QR code for the camera to add it to Apple Home!</p>

<figure>
  <img src="/img/posts/2026-04-02-baby-monitor/apple-watch.jpg" alt="A feed of two baby monitors is displayed on an Apple Watch. There is dramatic red lighting in the room." />
  <figcaption>Displaying the combined feed on my Apple Watch.</figcaption>
</figure>]]></content><author><name>Joel Hawksley</name></author><summary type="html"><![CDATA[A reader asked how I integrate our Unifi baby monitor cameras into Apple Home. Here is how to combine two cameras into a split-screen view with a combined audio feed for our Apple TVs, iPhones, and Apple Watches using Scrypted and go2rtc:]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://hawksley.org/img/posts/2026-04-02-baby-monitor/picture-in-picture.jpg" /><media:content medium="image" url="https://hawksley.org/img/posts/2026-04-02-baby-monitor/picture-in-picture.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Automatic bird identification with Home Assistant</title><link href="https://hawksley.org/2026/03/10/automated-birdwatching.html" rel="alternate" type="text/html" title="Automatic bird identification with Home Assistant" /><published>2026-03-10T00:00:00+00:00</published><updated>2026-03-10T00:00:00+00:00</updated><id>https://hawksley.org/2026/03/10/automated-birdwatching</id><content type="html" xml:base="https://hawksley.org/2026/03/10/automated-birdwatching.html"><![CDATA[<figure>
  <img src="/img/posts/2026-03-10-automated-birdwatching/most-interesting.jpg" alt="Close-up image of an e-paper display with text saying 'Barred Owl'." />
  <figcaption>A Barred Owl detected by BirdNET-Go</figcaption>
</figure>

<p>My wife and I love birding. Our interest in the hobby intensified during COVID, spending many mornings at our <a href="https://bouldercounty.gov/open-space/parks-and-trails/walden-ponds-wildlife-habitat/">favorite birdwatching spot</a>.</p>

<p>When <a href="https://merlin.allaboutbirds.org/">Merlin Bird ID</a> added <a href="https://merlin.allaboutbirds.org/sound-id/">Sound ID</a> in 2021, we were hooked immediately! It felt like something out of Harry Potter to be able to have our phones tell us what bird we were hearing, even if we couldn’t see it. About a year later, the <a href="https://github.com/mcguirepr89/BirdNET-Pi">BirdNET-Pi</a> project made it easy to run the Sound ID model locally. One of the audio sources supported was the RTSP output, which I used with two of our Ubiquiti cameras.</p>

<p>While it worked well at identifying birds accurately, the app crashed randomly. First, I tried installing BirdNET-Pi as a Home Assistant Addon, as my HA hardware was vastly overprovisioned compared to the Raspberry Pi. This reduced the crashes, but did not eliminate them. A few months later, a fellow birding and Home Assistant enthusiast recommended I try <a href="https://github.com/tphakala/birdnet-go">BirdNET-Go</a>, which is a rewrite of BirdNET-Pi with improved stability and performance. This fixed the reliability issues once and for all and I haven’t had any crashes since then.</p>

<h2 id="sifting-through-the-data">Sifting through the data</h2>

<p>With the stability issue resolved, I had a bigger problem: what to do with all of this data? While BirdNET-Go provided a nice dashboard for viewing detections, I wanted to find a way to surface insights about the data that were interesting to me without having to comb through the feed. Around the same time, I was developing the latest version of <a href="/2026/02/17/timeframe.html">Timeframe</a>, my e-paper dashboard system. Caitlin suggested we highlight the most interesting detection of the past day.</p>

<p>After trying a few different algorithms, I ended up with a simple REST sensor. The sensor fetches the summary data from BirdNET-Go, filters it to only include detections from the past day, then sorts them by the bird most recently heard for the first time:</p>

<div class="language-yml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1"># configuration.yaml</span>
<span class="na">sensor</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">platform</span><span class="pi">:</span> <span class="s">rest</span>
    <span class="na">resource</span><span class="pi">:</span> <span class="s">http://homeassistant.local:8080/api/v2/analytics/species/summary</span>
    <span class="na">scan_interval</span><span class="pi">:</span> <span class="m">300</span>
    <span class="na">name</span><span class="pi">:</span> <span class="s2">"</span><span class="s">Most</span><span class="nv"> </span><span class="s">Interesting</span><span class="nv"> </span><span class="s">Bird"</span>
    <span class="na">unique_id</span><span class="pi">:</span> <span class="s">birdnet_most_interesting</span>
    <span class="na">value_template</span><span class="pi">:</span> <span class="pi">&gt;</span>
      <span class="s">{% set cutoff = (now() - timedelta(hours=24)).strftime('%Y-%m-%d %H:%M:%S') %}</span>
      <span class="s">{% set birds = value_json</span>
        <span class="s">| rejectattr('common_name', 'eq', 'Engine')</span>
        <span class="s">| selectattr('last_heard', 'ge', cutoff)</span>
        <span class="s">| sort(attribute='first_heard', reverse=true)</span>
        <span class="s">| list %}</span>
      <span class="s">{{ birds[0].common_name if birds | length &gt; 0 else 'Unknown' }}</span>
</code></pre></div></div>

<p>It’s been fun to see new species appear for the first time as an early spring arrives here in Colorado:</p>

<figure>
  <img src="/img/posts/2026-03-10-automated-birdwatching/detections.png" alt="A timeline view of the sensor's value showing it changing from Black-capped Chickadee to Western Bluebird to Say's Phoebe" />
  <figcaption>Three new species in two days!</figcaption>
</figure>]]></content><author><name>Joel Hawksley</name></author><summary type="html"><![CDATA[I use Birdnet-Go to identify bird calls using the audio from my Ubiquiti cameras, displaying the most interesting bird detected in the past day on my Timeframe displays:]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://hawksley.org/img/posts/2026-03-10-automated-birdwatching/most-interesting.jpg" /><media:content medium="image" url="https://hawksley.org/img/posts/2026-03-10-automated-birdwatching/most-interesting.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Featured on Smart Home Solver</title><link href="https://hawksley.org/2026/02/23/smart-home-solver.html" rel="alternate" type="text/html" title="Featured on Smart Home Solver" /><published>2026-02-23T00:00:00+00:00</published><updated>2026-02-23T00:00:00+00:00</updated><id>https://hawksley.org/2026/02/23/smart-home-solver</id><content type="html" xml:base="https://hawksley.org/2026/02/23/smart-home-solver.html"><![CDATA[<p>Our home was recently featured on Smart Home Solver. Check it out!</p>

<div style="position: relative; padding-bottom: 56.25%; height: 0; max-width: 100%;">
  <iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" src="https://www.youtube.com/embed/Wkzg8sNkm8Y?si=KAb_C_GB2NSa29My" title="Smart Home Solver tour of Joel Hawksley's smart home" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen=""></iframe>
</div>

<p>(<a href="/archive/videos/Wkzg8sNkm8Y.mp4">archived copy</a>)</p>]]></content><author><name>Joel Hawksley</name></author><summary type="html"><![CDATA[Our home was recently featured on Smart Home Solver:]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://hawksley.org/img/posts/2026-02-23-smart-home-solver/thumbnail.png" /><media:content medium="image" url="https://hawksley.org/img/posts/2026-02-23-smart-home-solver/thumbnail.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">How I built Timeframe, our family e-paper dashboard</title><link href="https://hawksley.org/2026/02/17/timeframe.html" rel="alternate" type="text/html" title="How I built Timeframe, our family e-paper dashboard" /><published>2026-02-17T00:00:00+00:00</published><updated>2026-02-17T00:00:00+00:00</updated><id>https://hawksley.org/2026/02/17/timeframe</id><content type="html" xml:base="https://hawksley.org/2026/02/17/timeframe.html"><![CDATA[<p><em><strong>TL;DR:</strong> Over the past decade, I’ve worked to build the perfect family dashboard system for our home, called <a href="https://github.com/joelhawksley/timeframe">Timeframe</a>. Combining calendar, weather, and smart home data, it’s become an important part of our daily lives.</em></p>

<p><em>See <a href="https://news.ycombinator.com/item?id=47113728">https://news.ycombinator.com/item?id=47113728</a> for a lively discussion of this post.</em></p>

<p><img src="/img/posts/2026-02-17-timeframe/nook-wide.jpg" alt="Timeframe display in phone nook" /></p>

<p>When Caitlin and I got married a decade ago, we set an intention to have a healthy relationship with technology in our home. We kept our bedroom free of any screens, charging our devices elsewhere overnight. But we missed our calendar and weather apps.</p>

<h2 id="initial-prototypes">Initial prototypes</h2>

<p>So I set out to build a solution to our problem. First, I constructed a <a href="https://magicmirror.builders/">Magic Mirror</a> using an off-the-shelf medicine cabinet and LCD display with its frame removed. It showed the calendar and weather data we needed:</p>

<p><img src="/img/posts/2026-02-17-timeframe/magic-mirror.jpg" alt="Magic Mirror prototype" /></p>

<p>But it was hard to read the text, especially during the day as we get significant natural light in Colorado. At night, it glowed like any backlit display, sticking out sorely in our living space.</p>

<p>I then spent about a year experimenting with various jailbroken Kindle devices, eventually landing on design with calendar and weather data on a pair of screens. The Kindles took a few seconds to refresh and flash the screen to reset the ink pixels, so they only updated every half hour. I designed wood enclosures and laser-cut them at the <a href="https://boulderlibrary.org/makerspaces/bldg-61/">local library makerspace</a>:</p>

<p><img src="/img/posts/2026-02-17-timeframe/kindle-enclosure.jpg" alt="Kindle e-paper display in laser-cut wood enclosure" /></p>

<p>Software-wise, I built a Ruby on Rails app for fetching the necessary data from Google Calendar and Dark Sky. The Kindles woke up on a schedule, loading a URL in the app that rendered a PNG using <a href="https://github.com/csquared/IMGKit">IMGKit</a>. The prototype proved e-paper was the right solution: it was unobtrusive regardless of lighting:</p>

<p><img src="/img/posts/2026-02-17-timeframe/kindle-enclosure-lit.jpg" alt="Kindle display in low light" /></p>

<h2 id="a-more-reliable-approach">A more reliable approach</h2>

<p>The Kindles were a hack, requiring constant tinkering to keep them working. It was time for a more reliable solution. I tried an OLED screen to see if the lack of a global backlight would be less distracting, but it wasn’t much better than the Magic Mirror:</p>

<p><img src="/img/posts/2026-02-17-timeframe/oled-comparison.jpg" alt="OLED tablet compared with epaper display" /></p>

<p>So it was back to e-paper. I found a system of displays from <a href="https://www.visionect.com/">Visionect</a>, which came in 6”/10”/13”/32” sizes and could update every ten minutes for 2-3 <em>months</em> on a single charge:</p>

<p><img src="/img/posts/2026-02-17-timeframe/visionect-range.jpg" alt="Visionect display range" /></p>

<p>The 32” screen used an outdated lower-contrast panel and its resolution was too low to render text smoothly. The smaller sizes used a contrasty, high-PPI panel. I ended up using a combination of them around the house: a 6” in the mudroom for the weather, a 13” (with its built-in magnetic backing) in the kitchen attached to the side of the fridge, and a 10” in the bedroom.</p>

<p><img src="/img/posts/2026-02-17-timeframe/visionect-fridge.jpeg" alt="Visionect display on fridge" /></p>

<p>The Visionect displays required running custom closed-source software, either as a SaaS or locally with Docker. I opted for a local installation on the Raspberry Pi already running the Rails backend. I had my best results <em>pushing</em> images to the Visionect displays every five minutes in a recurring background job. It used IMGKit to generate a PNG and send it to the Visionect API, logic I extracted into <a href="https://github.com/joelhawksley/visionect-ruby">visionect-ruby</a>. This setup proved to be incredibly reliable, without a single failure for months at a time.</p>

<h2 id="first-customer-pilot">First customer pilot</h2>

<p>Visiting friends often asked how they could have a similar system in their home. Three years after the initial prototype, I did my first market test with a potential customer. At their request, I experimented with different formats, including a month view on the 13” screen:</p>

<p><img src="/img/posts/2026-02-17-timeframe/monthly.jpg" alt="Monthly calendar view on display" /></p>

<p>Unfortunately, the customer didn’t see enough value to justify the $1000 price tag (in 2019!) for the 13” device, let alone anything I’d charge for a subscription service. At around the same time, Visionect started charging a $7/mo per-device fee to run their backend software on premises with Docker, after years of it being free to use. I’d have needed to charge $10/month, if not more, for a single screen!</p>

<h2 id="an-unexpected-pivot">An unexpected pivot</h2>

<p>In late 2021, the <a href="https://en.wikipedia.org/wiki/Marshall_Fire">Marshall Fire</a> destroyed our home along with ~1,000 others. Our homeowner’s insurance gave us two years to rebuild, so we set off to redesign our home from the ground up.</p>

<p><img src="/img/posts/2026-02-17-timeframe/redesigning.jpg" alt="Redesigning our home" /></p>

<p>Around the same time, Boox released the <a href="https://onyxboox.com/boox_mirapro">25.3” Mira Pro</a>, the first high-resolution option for large e-paper screens. Best of all, it could update in realtime! Unlike the Visionect devices, it was just a display with an HDMI port and needed to be plugged into power. A quick prototype powered by an old Mac Mini made it immediately obvious that it was a huge step forward in capability. The larger screen allowed for significantly more information to be displayed:</p>

<p><img src="/img/posts/2026-02-17-timeframe/mira-pro.jpg" alt="Boox Mira Pro e-paper display" /></p>

<p>But the most compelling innovation was having the screen update in realtime. I added a clock, the current song playing on our Sonos system (using <a href="https://github.com/jishi/node-sonos-http-api">jishi/node-sonos-http-api</a>) and the next-hour precipitation forecast from Dark Sky:</p>

<p><img src="/img/posts/2026-02-17-timeframe/realtime.jpg" alt="Realtime display updates" /></p>

<p>The working prototype was enough to convince me to build a place for it in the new house. We designed a “phone nook” on our main floor with an art light for the display:</p>

<p><img src="/img/posts/2026-02-17-timeframe/nook-wide.jpg" alt="Timeframe display in phone nook" /></p>

<p>We also ran power to two more locations for 13” Visionect displays, one in our bedroom and one by the door to our garage:</p>

<p><img src="/img/posts/2026-02-17-timeframe/bedroom-mudroom.jpg" alt="Bedroom and mudroom displays" /></p>

<h2 id="backend-overhaul">Backend overhaul</h2>

<p>The real-time requirements of the Mira Pro immediately surfaced performance and complexity issues in the backend, prompting an almost complete rewrite.</p>

<p>While the Visionect system worked just fine with multiple-second response times, switching to long-polling every two seconds put a ceiling on how slow response times could be. To start, I moved away from generating images. The Visionect folks added the ability to render a URL directly in the backend, freeing up resources to serve the long-polling requests.</p>

<p>Most significantly, I started migrating towards Home Assistant (HA) as the primary data source. HA already had integrations for Google Calendar, Dark Sky (now Apple Weather), and Sonos, enabling me to remove over half of the code in the Timeframe codebase! I ended up landing a <a href="https://github.com/home-assistant/core/pull/128900">PR to Home Assistant</a> to allow for the calendar behavior I needed, and will probably need to write a couple more before HA can be the sole data source.</p>

<p>With less data-fetching logic, I was able to remove both the database and Redis from the Rails application, a massive reduction in complexity. I now run the <a href="https://github.com/joelhawksley/timeframe/blob/434da5569bdb84037a5f6f09551ec29a04dd86ff/config/scheduler.rb">background tasks</a> with <a href="https://github.com/jmettraux/rufus-scheduler">Rufus Scheduler</a> and save data fetching results with the Rails <a href="https://github.com/joelhawksley/timeframe/blob/434da5569bdb84037a5f6f09551ec29a04dd86ff/app/apis/api.rb#L19">file store cache backend</a>.</p>

<p>In addition to data retrieval, I’ve also worked to move as much of the application logic into Home Assistant. I now <a href="https://github.com/joelhawksley/timeframe/blob/main/app/apis/home_assistant_api.rb#L33">automatically display</a> the status of any sensor that begins with <em>sensor.timeframe</em>, using a simple <em>ICON,Label</em> CSV format.</p>

<p>For example, the other day I wanted to have a reminder to start or schedule our dishwasher after 8pm if it wasn’t set to run. It took me about a minute to write a template sensor using the power level from the outlet:</p>

<div class="language-jinja highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="cp">{%</span> <span class="k">if</span> <span class="nv">states</span><span class="p">(</span><span class="s1">'sensor.kitchen_dishwasher_switched_outlet_power'</span><span class="p">)</span><span class="o">|</span><span class="nf">float</span> <span class="o">&lt;</span> <span class="nv">2</span> <span class="ow">and</span> <span class="nv">now</span><span class="p">()</span><span class="err">.</span><span class="nv">hour</span> <span class="o">&gt;</span> <span class="nv">19</span> <span class="cp">%}</span>
utensils,Run the dishwasher!
<span class="cp">{%</span> <span class="k">endif</span> <span class="cp">%}</span>
</code></pre></div></div>

<p>In the month since adding the helper, it reminded me twice when I’d have otherwise forgotten. And I didn’t have to commit or deploy any code!</p>

<h2 id="today">Today</h2>

<p>Since moving into our new home, we’ve come to rely on the real-time functionality much more significantly. Effectively, we’ve turned the top-left corner of the displays into a status indicator for the house. For example, it shows what doors are open/unlocked:</p>

<video autoplay="" muted="" loop="" playsinline="" controls="" style="width:100%" aria-label="Timeframe display updating in real time to show which doors are open or unlocked">
  <source src="/img/posts/2026-02-17-timeframe/door-status.mp4" type="video/mp4" />
  Your browser does not support the video element.
</video>

<p>Or whether the laundry is done:</p>

<p><img src="/img/posts/2026-02-17-timeframe/laundry-done.jpg" alt="Laundry done notification on display" /></p>

<p>It has a powerful function: if the status on the display is blank, the house is in a “healthy” state and does not need any attention. This approach of only showing what information is relevant in a given moment flies right in the face of how most smart homes approach communicating their status:</p>

<p><img src="/img/posts/2026-02-17-timeframe/ha-dashboard.jpg" alt="Home Assistant dashboard" /></p>

<p>The single status indicator removes the need to scan an entire screen. This change in approach is possible because of one key difference: we have separated the <em>control</em> of our devices from the <em>display</em> of their status.</p>

<h2 id="whats-next">What’s next</h2>

<p><img src="/img/posts/2026-02-17-timeframe/mudroom-dark.jpg" alt="Home Assistant dashboard" /></p>

<p>I continue to receive significant interest in the project and remain focused on bringing it to market. A few key issues remain:</p>

<h3 id="hardening-for-deployment">Hardening for deployment</h3>

<p>While I have made significant progress in <a href="https://github.com/joelhawksley/timeframe/blob/main/app/controllers/displays_controller.rb#L15">handling runtime errors gracefully</a>, I have plenty to learn about creating embedded systems that do not need maintenance.</p>

<h3 id="home-assistant-integration">Home Assistant integration</h3>

<p>There are still several data sources I fetch directly outside of Home Assistant. Once HA is the sole source of data, I’ll be able to have Timeframe be a Home Assistant App, making it significantly easier to distribute.</p>

<h3 id="hardware-cost-and-complexity">Hardware cost and complexity</h3>

<p>The current hardware setup is not ready for adoption by the average consumer. The 25” Boox display is excellent but costs about $2000! It also doesn’t include the hardware needed to drive the display. There are a couple of potential options to consider, such as Android-powered devices from <a href="https://shop.boox.com/products/notemax">Boox</a> and <a href="https://www.almoproav.com/productdetails/PHILIP/25BDL4150I/00">Philips</a> or low-cost options from <a href="https://trmnl.com/">TRMNL</a>.</p>

<h2 id="conclusion">Conclusion</h2>

<p>Building Timeframe continues to be a passion of mine. While my day job has me building software for over a hundred million people, it’s refreshing to work on a project that improves my family’s daily life.</p>]]></content><author><name>Joel Hawksley</name></author><summary type="html"><![CDATA[Over the past decade, I've worked to build the perfect family dashboard system for our home, called Timeframe:]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://hawksley.org/img/posts/2026-02-17-timeframe/nook-wide.jpg" /><media:content medium="image" url="https://hawksley.org/img/posts/2026-02-17-timeframe/nook-wide.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Home Assistant video call status light</title><link href="https://hawksley.org/2026/02/05/home-assistant-video-call-status-light.html" rel="alternate" type="text/html" title="Home Assistant video call status light" /><published>2026-02-05T00:00:00+00:00</published><updated>2026-02-05T00:00:00+00:00</updated><id>https://hawksley.org/2026/02/05/home-assistant-video-call-status-light</id><content type="html" xml:base="https://hawksley.org/2026/02/05/home-assistant-video-call-status-light.html"><![CDATA[<video autoplay="" muted="" loop="" playsinline="" controls="" style="width:100%" aria-label="Demonstration of office status light changing color when joining a video call">
  <source src="/img/posts/2026-02-05-home-assistant-video-call-status-light/office-call-light-720.mp4" type="video/mp4" />
  Your browser does not support the video element.
</video>

<p><em><strong>TL;DR:</strong> Use the Home Assistant MacOS app to control smart lights based on video call status.</em></p>

<p>I often wear noise cancelling headphones to help me focus, but they make it difficult to hear a knock on the door. I’m also in meetings quite a bit, when a door knock is less welcome. While I try to keep my calendar up to date so my wife knows when I’m on a call, I’ll occasionally have ad-hoc conversations for pairing, etc.</p>

<p>I recently set up a system to indicate whether I am listening to music or on a video call, using Zigbee night lights from Third Reality, one in the hallway and another in my office so I can know what the hallway light is set to.</p>

<p>In Home Assistant, I created a helper called <code class="language-plaintext highlighter-rouge">Office audio state</code> using sensor data from the Home Assistant app running on my personal and work laptops. It returns <code class="language-plaintext highlighter-rouge">input</code>, <code class="language-plaintext highlighter-rouge">output</code>, or <code class="language-plaintext highlighter-rouge">off</code> (be sure to replace the sensor names with yours):</p>

<div class="language-jinja highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="cp">{%</span> <span class="k">if</span> <span class="nv">states</span><span class="p">(</span><span class="s2">"binary_sensor.joelhawksley_audio_input_in_use"</span><span class="p">)</span> <span class="o">==</span> <span class="s2">"on"</span> <span class="ow">or</span> <span class="nv">states</span><span class="p">(</span><span class="s2">"binary_sensor.joel_audio_input_in_use"</span><span class="p">)</span> <span class="o">==</span> <span class="s2">"on"</span> <span class="cp">%}</span>
input
<span class="cp">{%</span> <span class="nv">elif</span> <span class="nv">states</span><span class="p">(</span><span class="s2">"binary_sensor.joelhawksley_audio_output_in_use"</span><span class="p">)</span> <span class="o">==</span> <span class="s2">"on"</span> <span class="ow">or</span> <span class="nv">states</span><span class="p">(</span><span class="s2">"binary_sensor.joel_audio_output_in_use"</span><span class="p">)</span> <span class="o">==</span> <span class="s2">"on"</span> <span class="cp">%}</span>
output
<span class="cp">{%</span> <span class="k">else</span> <span class="cp">%}</span>
off
<span class="cp">{%</span> <span class="k">endif</span> <span class="cp">%}</span>
</code></pre></div></div>

<p>I then have an automation listening to changes to the helper (debounced for 5 seconds to avoid false triggers from momentary changes) and switching between scenes on the lights (blue for video call, yellow for listening, off otherwise):</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">alias</span><span class="pi">:</span> <span class="s">OFFICE Hallway nightlight audio input indication</span>
<span class="na">description</span><span class="pi">:</span> <span class="s2">"</span><span class="s">"</span>
<span class="na">triggers</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">trigger</span><span class="pi">:</span> <span class="s">state</span>
    <span class="na">entity_id</span><span class="pi">:</span>
      <span class="pi">-</span> <span class="s">sensor.office_audio_state</span>
    <span class="na">for</span><span class="pi">:</span>
      <span class="na">hours</span><span class="pi">:</span> <span class="m">0</span>
      <span class="na">minutes</span><span class="pi">:</span> <span class="m">0</span>
      <span class="na">seconds</span><span class="pi">:</span> <span class="m">5</span>
<span class="na">conditions</span><span class="pi">:</span> <span class="pi">[]</span>
<span class="na">actions</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="na">if</span><span class="pi">:</span>
      <span class="pi">-</span> <span class="na">condition</span><span class="pi">:</span> <span class="s">state</span>
        <span class="na">entity_id</span><span class="pi">:</span> <span class="s">sensor.joelhawksley_audio_state</span>
        <span class="na">state</span><span class="pi">:</span>
          <span class="pi">-</span> <span class="s">input</span>
    <span class="na">then</span><span class="pi">:</span>
      <span class="pi">-</span> <span class="na">action</span><span class="pi">:</span> <span class="s">scene.turn_on</span>
        <span class="na">metadata</span><span class="pi">:</span> <span class="pi">{}</span>
        <span class="na">data</span><span class="pi">:</span> <span class="pi">{}</span>
        <span class="na">target</span><span class="pi">:</span>
          <span class="na">entity_id</span><span class="pi">:</span> <span class="s">scene.upstairs_hallway_night_light_blue</span>
    <span class="na">else</span><span class="pi">:</span>
      <span class="pi">-</span> <span class="na">if</span><span class="pi">:</span>
          <span class="pi">-</span> <span class="na">condition</span><span class="pi">:</span> <span class="s">state</span>
            <span class="na">entity_id</span><span class="pi">:</span> <span class="s">sensor.joelhawksley_audio_state</span>
            <span class="na">state</span><span class="pi">:</span>
              <span class="pi">-</span> <span class="s">output</span>
        <span class="na">then</span><span class="pi">:</span>
          <span class="pi">-</span> <span class="na">action</span><span class="pi">:</span> <span class="s">scene.turn_on</span>
            <span class="na">metadata</span><span class="pi">:</span> <span class="pi">{}</span>
            <span class="na">data</span><span class="pi">:</span> <span class="pi">{}</span>
            <span class="na">target</span><span class="pi">:</span>
              <span class="na">entity_id</span><span class="pi">:</span> <span class="s">scene.upstairs_hallway_night_light_yellow</span>
        <span class="na">else</span><span class="pi">:</span>
          <span class="pi">-</span> <span class="na">type</span><span class="pi">:</span> <span class="s">turn_off</span>
            <span class="na">entity_id</span><span class="pi">:</span> <span class="s">068da57</span>
            <span class="na">domain</span><span class="pi">:</span> <span class="s">light</span>
          <span class="pi">-</span> <span class="na">type</span><span class="pi">:</span> <span class="s">turn_off</span>
            <span class="na">entity_id</span><span class="pi">:</span> <span class="s">46e8791</span>
            <span class="na">domain</span><span class="pi">:</span> <span class="s">light</span>
<span class="na">mode</span><span class="pi">:</span> <span class="s">single</span>
</code></pre></div></div>

<p>As a bonus, the night lights also serve as Zigbee routers, extending the range and stability of our Zigbee network!</p>]]></content><author><name>Joel Hawksley</name></author><summary type="html"><![CDATA[TL;DR: Use the Home Assistant MacOS app to control smart lights based on video call status.]]></summary></entry><entry><title type="html">Reliable, enhanced Snoo notifications with Home Assistant</title><link href="https://hawksley.org/2026/02/02/reliable-enhanced-snoo-notifications-with-home-assistant.html" rel="alternate" type="text/html" title="Reliable, enhanced Snoo notifications with Home Assistant" /><published>2026-02-02T00:00:00+00:00</published><updated>2026-02-02T00:00:00+00:00</updated><id>https://hawksley.org/2026/02/02/reliable-enhanced-snoo-notifications-with-home-assistant</id><content type="html" xml:base="https://hawksley.org/2026/02/02/reliable-enhanced-snoo-notifications-with-home-assistant.html"><![CDATA[<p><em><strong>TL;DR:</strong> Use a power monitoring outlet to trigger Snoo notifications independent from the cloud.</em></p>

<p>A couple of months ago, part of Amazon Web Services was down for a good chunk of a Monday, including the cloud backend for the Happiest Baby Snoo, a truly wonderful piece of baby-rearing technology that we’ve used with both of our kids.</p>

<p>Unfortunately, the backend outage broke notifications for the device, including those triggered when your kiddo needs attention. The notifications served as a backstop in case we didn’t hear our little guy fussing on the monitor or down the hallway. They also happened to be non-critical, meaning they wouldn’t break through focus modes on our Apple devices. I set out to fix all these issues and ended up creating a more useful integration than the existing implementation.</p>

<p>The foundational change I made was using a power monitoring outlet (I like the Third Reality Zigbee ones that are ~$10) that provides a real-time power usage sensor. I plugged the Snoo in and was relieved to see the following power data over 24 hours:</p>

<p><img src="/img/posts/2026-02-02-reliable-enhanced-snoo-notifications-with-home-assistant/snoo-power-data.png" alt="24 hours of Snoo power data showing &lt;4w usage when idle and &gt;8w usage when active" /></p>

<p>The data clearly shows when the device is turned on or not. As the Snoo powers down when your kid needs attention, this was all the information I needed to build out my automations without any dependence on the cloud. Here is what I ended up with:</p>

<pre><code class="language-mermaid">---
config:
      theme: redux
---
flowchart TD
        A(["Snoo power level drops below 4 watts"])
        A --&gt; B{"If nursery door 
        is closed"}
        D --&gt;|False| F["Send critical notification"]
        B --&gt;|True| D{"If time is overnight &amp;
        bedroom door is open"}
        D --&gt;|True| E["Turn on bedroom
        table lamps,
        turn off bedroom
        noise machine"]
</code></pre>

<p>Unlike the built-in Snoo notification, my local-only implementation is a critical alert, meaning it will always notify me regardless of my focus mode. Having the notification implementation under my control allowed me to also have it turn off the white noise machine in our bedroom and turn on our table lamps, making sure we didn’t sleep through the sound of the baby needing our attention! The automation only runs when the nursery door is closed, as we turn the Snoo off manually when we wake him up.</p>

<h2 id="conclusion">Conclusion</h2>

<p>When I got into using Home Assistant, I didn’t appreciate the strong feelings folks had about using local-only integrations whenever possible, but now I get it. Between backend, internet, and power outages, cloud-based integrations are simply not reliable. Thankfully, Home Assistant gives us the tools to build our own automations without the need for cloud services.</p>]]></content><author><name>Joel Hawksley</name></author><summary type="html"><![CDATA[TL;DR: Use a power monitoring outlet to trigger Snoo notifications independent from the cloud.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://hawksley.org/img/posts/2026-02-02-reliable-enhanced-snoo-notifications-with-home-assistant/snoo-power-data.png" /><media:content medium="image" url="https://hawksley.org/img/posts/2026-02-02-reliable-enhanced-snoo-notifications-with-home-assistant/snoo-power-data.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>