Sunday, September 14, 2025

So Long Microsoft! Hello Pi!

Another one of the most stable things I did was ditching the VM I was using to run HA and go to a Raspberry Pi.

I was using Microsoft Windows 10 as the platform on the PC, and then using VM software to create the HA system. In and of itself, the HA VM was very stable and I had no problems with it. But - Microsoft, in all of its haughty and oh-so-mighty glory, decides when you will install Windows updates (including restarting the PC), and if you don't like it - tough toenails. Long and short: I'd find that my wall-mount pads were unresponsive and automations weren't running, so I'd check the PC that ran the VM and it was sitting at the login screen.

Which created another bigger problem: a corrupted VM. I had to reinstall HA several times from the activity. It got old and frustrating very, very quickly.

I switched over to a Raspberry Pi 5 (using a nice Flirc case) with a 480GB external SSD, stuck the SSD in a clear case, and I've never looked back. This has been rock solid from day 1. I would highly recommend, with absolutely no reservations, going this route to run your HA system. 

It runs a back-up every night and puts a copy of that back-up in the cloud; on the SSD; and on my home's NAS. But knock-on-wood, I haven't needed a back-up since I made the switch. It's been rock solid.

Do yourself a favor and put your HA system on a Pi.




Choose Your Views

Back when I started this journey, I found a really cool theme package that made my views look like LCARS straight out of Star Trek: TNG. To be clear, to this day, I still admire the work that Jesse has done with his theme. THe problem I had, though, is that for me, screen real estate is a premium. Especially on the 2 monitors I keep running in my "cockpit" to keep track of everything going on in the house. I needed to go for something more compact.

You know that old saying, "You don't know what you don't know?" Yeah, that works with HA too. By utilizing AI, I've been able to find packages that do exactly what I'm looking for - but, that I had no idea of their existence! 

You can easily get lost in the world of HACS and add-ons. As far as I know, there is no comprehensive catalog out there of all the different add-ons available. In my last post, I talked about decluttering templates I didn't know that existed! Nor did I know about Custom Button Cards. I've since made extreme use of those, and here's why.

Yes, there are many different packages out there that can make your dashboard look snazzy, sexy, sleek, or whatever adjective you want to use. For my tastes, I needed functional. Something that "just works" and gives me, in an instant, a snapshot of my environment. Custom Button Cards does that for me, in spades.

 

 

 Those two screens stay up in my cockpit, and I can tell at a glance if something is amiss just by keying in on the colors.

As always, your mileage may vary. For me, this just works, and my wife and mother-in-law like the simplicity as well. I had to work to win them over to HA and my obsession with collecting data from the house and automating what I could. Having dashboards that were easy to understand and use helped that process out tremendously. 

Weather Alerting System for Home Assistant

When we last left off 2 years ago, my huge project was baking weather alerting features into the HA system. Sure, we have a couple of NOAA weather radios and messages on our phones, but if we have an HA system in the house - why not do some cool stuff with it?

So - that's what I did.

Over the next 2 years, I fine tuned things, found what worked and what didn't, and have a system now that I think works really well.

For starters: my ideas for using a flashing red pattern for tornado & severe thunderstorm warnings had to go away. Both Meross and Govee block all attempts to flash their lights as I wanted (think: Star Trek red alert), warning that it exceeds their API access limits. Thus, no more flashing red; steady red was going to be the way it worked.

I made a lot of tweaks and changes over the next two years. I had a strip of lights outside, wrapped around the pole that holds my outside light. It eventually died in a blistering heat wave, so it's gone.

I added a Govee can light in one room to change colors as necessary. I added that to a Wyze color bulb in an old table lamp fixture; one of the old original Meross strips; and then a Govee dual-LED fixture. All of these ended up being my "alert lights" which, more or less, worked OK. I also had conditional cards that would pop up on most of the wall-mounted tablets around the house.

The logic for making all of that work was insanely complex, though. Making one change (like, adding logic to turn the lights red if a smoke detector activated) was very touchy and prone to a cascading unintentional error. So, with the help of AI, I blew up the entire system and started over. I now have a system that, so far, has been stable and easy to modify as necessary.

An important tip that I can add is to USE PACKAGES. Don't put everything in configuration.yaml. I ended up making a package for each of the subroutines that I added to HA. Doing so means that I can make changes to a small section of my system A) without having to restart the whole system, and B)  minimizing the risk of collateral damage unrelated parts of the system.

Honestly, I wish I'd broken things out into packages a long, long time ago. If I could go back in time and tell the "younger HA me" some tips, this would easily be one of them. 

Moving forward (and in use now) are decluttering templates. By making templates up in the raw configuration editor, I can reuse those templates anywhere in my setup and the cards will always look the same. Another great feature is that the cards can be built with a minimal amount of code on the actual dashboard. I bring this up because for my Lovelace conditional cards that appear under certain conditions, I no longer have to define every card as a conditional card on every dashboard or view! I define it once like this:

type: custom:decluttering-card
template: critical_alerts_block
variables:
  - header: CRITICAL ALERTS

Then, with every type of card already defined in the template critical_alerts_block, they'll all always show up the same on every display. For example: 

 

or

 

Those 4 lines of code above are included on every display. If any other condition were triggered, such as a smoke detector activation, blizzard warning, freezer high temperature alarm... anything that I want to know about in a hurry, those would also show up here; and again, using just those 4 lines of code. By itself, that was a HUGE way to simplify the process. Set it once as a decluttering template and forget about it. Under the old conditional card system, I had to touch every dashboard and make a modification.

 I have my alerts broken down into these categories: 

RED LEVEL – these alerts turn all alerting lights red; display a card on all wall displays; display a message on all display matrices; and produce a sound on all Amazon Echo devices. This level is activated when any of the following actions take place on the HA system:
    • Tornado Warning
    • Severe Thunderstorm Warning
    • Smoke Alarm Activated
    • Boiler Over Temperature
    • Security Alert
    • General Alert
    • Major Solar Storm (wall display card only)

PURPLE LEVEL - these alerts turn all alerting lights purple; display a card on all wall displays; display a message on all display matrices; and produce a sound on all Amazon Echo devices. This level is activated when any of the following actions take place on the HA system:

    • Freezer Over Temperature

ORANGE LEVEL - these alerts turn all alerting lights orange and display a card on all wall displays. This level is activated when any of the following actions take place on the HA system:

    • Flash Flood Warning
    • Excessive Heat Warning
    • Dust Storm Warning
    • Moderate Solar Storm (wall display card only)

BLUE LEVEL - these alerts turn all alerting lights blue and display a card on all wall displays. This level is activated when any of the following actions take place on the HA system:

    • Blizzard Warning
    • Winter Storm Warning
    • Ice Storm Warning
    • Wind Chill Warning

YELLOW LEVEL - these alerts turn all alerting lights yellow and display a card on all wall displays. This level is activated when any of the following actions take place on the HA system:

    • Tornado Watch
    • Severe Thunderstorm Watch
    • Internet Down Condition
    • Minor Solar Storm (wall display card only)

There is a lot here to still unpack and talk about in the blog. For example, the use of 32x64 LED display matrices throughout the house. My goal with this entry is to catch readers up on the changes I've made in the overall alerting system. I'll keep expanding on that, and all other aspects of my system, as we go on. 

 

Saturday, September 13, 2025

Really? Two Years?

Wow - it's been a LONG time since I posted anything here. I've been doing a lot with my HA system. I've blown a few things up in the process, and I've made a ton of progress too. I'll try to cover everything I've done over the next few posts.

Keep in mind that I am, by no means, an HA "guru". I just know what I want, I develop what I can, and I pull in some coding help from AI. I'm not a programmer and I didn't stay at a Holiday Inn Express, either. At 60, I'm not going to learn a lot of new tricks. But I AM going to lament just a tiny bit about the things I didn't do in the past and try to make up for lost time. 

Home Assistant is one of those things. Geez, I wish I'd been able to use this earlier, but I probably would have gotten frustrated with it and put it away. With the tools available now, you don't even have to worry about looking for help from the community necessarily. And that's both a good and bad thing! Bad, because it breaks that spirit of cooperation and camaraderie. But also good, because more than once, I was made to feel like a fool because I didn't find my answer by "RTFM" (if I even got an answer at all).

 So with all that said, I'll take you through some of what I've been doing for the past two years over the next few posts, and I'll try hard to not go so long between updates. Always remember that your mileage may vary. What looks great to you might look cluttered to me, or vice-versa. All I can do is show you what things have worked for me, and maybe it'll inspire something in you.

 And as always - constructive comments are ALWAYS welcome. 

So Long Microsoft! Hello Pi!

Another one of the most stable things I did was ditching the VM I was using to run HA and go to a Raspberry Pi. I was using Microsoft Window...