Incognito Cat

In the Lab: Odds and Ends

In the Lab: Odds and Ends

It's that time of year again. Mother Nature starts throwing out temperatures like lottery numbers (22, 65, 43, and so on). The leaves change into a beautiful array of colors before dropping and needing to be dealt with. Holidays start popping up one after another, each bringing too much food and family time (we're joking). Dragging out the decorations and figuring out why the lights don't work this year. Yes, it's fall heading into winter. Even so, we haven't stopped fixing up and improving our technology stack or testing out better solutions. That work just happens during odd hours and bits of free time.

Of course, Black Friday and Cyber Monday helped with a few of those efforts. We still have a long list of things to clean up or improve so we can better protect our privacy and security. Let's get into it.

Matter Upgrade

We love Home Assistant for privacy-focused home automation. It works with almost every smart home standard, so nearly any device can join. That flexibility is useful, but it can also create a privacy problem. Not every smart device is designed to keep your data at home.

We already use Ollama and a Whisper Docker Stack for voice assistance. Our Reolink surveillance cameras running locally are hooked in as well. Home Assistant running MQTT even controls our Valetudo powered robot vacuums. That left a clear gap: smart plugs. Most older ones rely on cloud services, so they only work if the manufacturer's servers are up and the internet is working. Black Friday gave us a chance to start closing that gap with Matter replacements.

Matter is an open-source standard that lets smart home devices from different brands talk to each other reliably and securely. Think of it as a shared language that devices use so they can work together without needing special software from each company. Developed by the Connectivity Standards Alliance and backed by companies like Apple, Google, Amazon, and Samsung, it works with any Matter-certified controller (including Home Assistant). You do not need a proprietary cloud account or application from a specific company to use them.

On the security side, Matter is a strong fit for privacy-focused setups. Older smart plugs often receive every command from a manufacturer's server. Matter is built for local control by default. Devices communicate directly over your home network using Wi-Fi, Thread (a low-power mesh network), or Ethernet. Commands stay inside your house. Your plugs and lights keep working even if the internet goes down, and there is no mandatory middleman logging when you turn things on or off.

It also includes strong built-in protections. Every certified Matter device carries a unique certificate from its manufacturer. During setup, the controller checks this certificate to confirm the device is genuine. After that, all communication is encrypted and mutually authenticated. Only devices you explicitly approve can join. You prove ownership with a setup code (usually printed on the device or packaging), and the system then issues credentials so only authorized controllers can control it. Access rules further limit what each device can do. In practice, this means fewer privacy leaks and less dependence on a company's servers or changing privacy policies.

The Matter controller still matters. Pairing these devices with Home Assistant keeps everything local and under our control, which is why we are expanding in this direction.

Last year we added Matter-based thermometers and hygrometers, but other options were limited and expensive. The standard has matured since then, the number of devices has grown, and Home Assistant's support has grown with it. During the recent Black Friday sales we found smart plugs and power strips at the lowest prices we had seen. We ordered a couple of packs of plugs, Matter power strips, and a couple of color-changing Matter bulbs.

Onboarding is straightforward. Open the Home Assistant app, go to Settings > Devices & Services > Matter, tap Add Device, and scan the QR code. Home Assistant talks to the device over Bluetooth. No manufacturer app is required.

We hit a small stumbling block at first because our router automatically quarantines new devices. It was doing exactly what we configured it to do. A quick adjustment and everything connected. Most of the old cloud-dependent plugs are now headed to the recycler. That closes a long-standing privacy gap and moves more of our home automation to fully local control.

We should also note that we are not big fans of smart lights. When the light eventually burns out, the entire unit has to be replaced. That feels wasteful and creates a small ongoing maintenance burden, since the new bulb has to be onboarded and integrated after the old one is removed. We generally prefer controlling longer-lived switches, but we got talked into the color-changing and dimming features. This time.

Tessera

This side quest was started by a video from another Home Assistant enthusiast. In the video they had a small Human-Machine Interface (HMI) with a four inch (101.6 mm) display, powered by an ESP32 chip. Within the span of a ten-minute video, they had loaded a custom interface that worked with Home Assistant. That got our interest.

Tessera running on a Waveshare ESP32-S3-Touch-LCD-4B

With Home Assistant, there are multiple options for accessing the functionality. Of course there's the mobile app, but we're opposed to apps except when necessary to onboard Matter devices. Then there's the responsive web interface, and Voice Assistant. However, not everyone in our families is enthusiastic about those options. This inexpensive HMI could really be helpful, especially if the interface was customized to the room it was in. So, without a second thought, a Waveshare ESP32-S3-Touch-LCD-4B was ordered to tinker with. At this point we didn't fully understand what we didn't know.

When the unit was delivered, the package was opened and there it was. And only it. No instructions, no information, just a roughly 3.4 inch (86.5 mm) square, barely a half inch (14 mm) thick, with a 480x480 display. Time to figure out what to actually do with it. After some searching we found a related project called Tessera. Tessera is a Home Assistant add-on that turns affordable ESP32 touch screens into control panels. It handles the firmware setup (built on ESPHome) and provides a drag-and-drop editor so you can arrange tiles for lights, sensors, and other devices without writing configuration files by hand.

After a couple of false starts, we had our first screen up and running. The drag-and-drop tools for switches (automation helpers), sensors, and even the weather feed showed the potential of this little device. Over the course of a week, we started to understand what the add-on can really do. You can tap the current temperature tile and it expands to fill the screen to see the full forecast for the day or week, hook camera sensors so the panel alerts us when a person is approaching, switch groups of lights on and off, or control music playing on the Home Assistant connected speakers.

So, of course we had to see what else was possible. This time we ordered a Waveshare ESP32-P4-WIFI6-Touch-LCD-4B for a few reasons. It offered a higher resolution display at 720x720, a more powerful processor, additional memory, and Wi-Fi 6 connectivity. It arrived with the same fanfare as the first: a nondescript square in a box. We went into Tessera to set it up, but it did not directly support this exact device. It did support a closely related sister unit with a couple of different hardware options, so we used that image. We went through the build process, the firmware loaded, and everything showed green. Except the screen that stayed dark. After some research, we discovered that two different video chips were used in that product line. Following an override that others had success with, we were able to get the screen working.

It's been a couple of weeks and Tessera has issued nearly half a dozen updates to support a multitude of new and different units people are using, plus constant overall improvements. Both of our units have been working well, and more have been ordered. We like the Waveshare ESP32-P4-WIFI6-Touch-LCD-4B better overall, but both work well in their HMI roles.

Additional Projects

With our various testing and their related network configurations, our network had become a junk drawer. Next to the abandoned project VLANs are long forgotten packets of duck sauce and keys to something yet to be identified. This called for a full cleanup and reorganization. All of the VLANs, VqLANs, IP reservations, permission groups, and more were straightened out. Not difficult work but necessary and time-consuming. We also took the necessary time to scan for any misconfigurations that could cause problems down the road.

During the cleanup, we finally decided to install a local Certificate Authority. We were able to spin up a Step CA Docker container with Traefik to generate short lived, automatically renewed certificates. Now almost everything runs over TLS encryption. "Almost" is the important caveat as not everything is designed to even offer a TLS option, like the networked TV tuner. Still, applications like FreshRSS or Jellyfin are secured by default. We'll be writing more about that in the near future.

Of course we wanted to end this update where we started: Home Assistant. Specifically, the Home Assistant Global Health Score (HAGHS) project we were recently made aware of. This add-on will point out all the improvement opportunities available. That covers everything from applying updates, to addressing the Home Assistant Recorder (Home Assistant's database) being stuffed like a Christmas goose, to zombied entities. When devices come and go, especially during testing, those entities can pile up over time. So, yet another cleanup was performed and everything is running at full capacity.

These are some of the things we've been working on. There seems to be plenty of topics we need to revisit, and new topics that have been suggested. We'll get there, right after we get these stupid strands of light untangled!

Remember: We may not have anything to hide, but everything to protect.

In the Lab: Odds and Ends

#DigitalPrivacy #HomeAssistant #Matter #Privacy #Tessera