writing.exchange is one of the many independent Mastodon servers you can use to participate in the fediverse.
A small, intentional community for poets, authors, and every kind of writer.

Administered by:

Server stats:

325
active users

#homeassistant

22 posts19 participants0 posts today

Did some "vibe coding" this weekend and again today after work to see what the cool kids are doing.

I expected to be disappointed, but it works surprisingly well for simple things!

First experiment was updating a #homeassistant integration I maintain, second was writing an increasingly complex #linux fan control daemon in #rustlang . Tried a few different tools and models, but ended up sticking with #gemini 2.5 and the coding assistant.

I understand why the kids like this.

Set up my AirGradient One air quality sensor in Home Assistant today. Solid integration with all the bells and whistles and a local, no cloud solution. The only downside so far is the poor setup and configuration documentation, and it appears you have to attach the device to a cloud account to get the status light to turn off.

But otherwise I'm very happy to have good air quality information in my home. So much better than the relative AQI information from my ecobee thermostat.

Evolution of Home Assistant:
- Runs on Raspberry Pi, controls a single WiFi light switch
- Controls a dozen switches and plugs
- Automations using Phone locations and time of day
- AddOns! Mosquitto, AdGuard Home and MotionEye/Frigate get installed
- Migrates to beefier server
- Voice and Whisper addons get installed
- Zigbee takes over for switches and plugs

- What's next?

Anybody out there know how to root really old #Android tablets in the year 2025 CE? I have a Dell Venue 3730 that is running KitKat (4.4.2) and that's the most modern thing it can run. I've been searching around the net for options and so much of it either (a) requires Windows (which I don't have) or (b) has died because of link rot, or (c) doesn't go back as far as Android 4.

I want to point this thing at a #homeassistant dashboard and make it like a remote console. But I can't get kiosk mode on something so old without rooting it (I think).

Also, the HTML that comes natively out of Lovelace is way too complex for #Chrome 32.0, which is what I have on the tablet. It just displays the HA logo and I never see more.

So I will need a simpler, possibly not websocket-based way, to load dashboards on HA, as well.

Any #mobile or #homeautomation folks have good pointers on how to do this?

A funny father/son moment.

In my journey with #homeassistant, I converted from a 4-year old docker installation to a VM running HAOS. I have been renaming devices and redoing touchscreens and dashboards. A few things aren’t quite right.

My college age (CS Major) son presses a button labeled “small lamp” and it lights up as active. But the lamp doesn’t come on. I say “Yeah. I renamed some devices. I think your mother’s sewing machine is turning on and off.” And he responds “I think that is the most Dad thing you’ve ever said.” 🤣

Then he makes a funny reference to The Castle ¹. He says “This home automation system is worth almost as much today as when we bought it.“ we had a laugh.

#dadlife #homeautomation

¹ It’s a hilarious and good natured Australian film. A bit of a sleeper hit or cult classic. at the beginning of the film, the house is a mess of DIY and eccentric choices. It’s at the end of a busy airport runway. And the narrator, a teen son who idolises his funny dad, narrates something along the lines of “Dad reckons the house is worth almost as much now as when he bought it.” A funny, low-key line you can miss if you’re not careful.

Continued thread

Yep. Look at that. If you go to the code repo for the kindle screensaver, which is what I'm using here, they have a RENDER_DELAY that is meant to address this issue. It fetches the page into its virtual, headless web browser, and waits a certain amount of time before capturing a screenshot.

You don't have to use an Inky Frame for this. If you have an old kindle and you jailbreak it, you can use it as a wireless display. This code will set the Kindle's "screensaver" to actually fetch and render an image that you host on #HomeAssistant. That's what the original code did, and I just made enough Python to run on the InkyFrame and fetch the dashboard.

This tool generates a png from a Home Assistant Lovelace view, which can be displayed on a Kindle device which has the Online Screensaver plugin installed. - sibbl/hass-lovelace-kindle-screensaver
GitHubGitHub - sibbl/hass-lovelace-kindle-screensaver: This tool generates a png from a Home Assistant Lovelace view, which can be displayed on a Kindle device which has the Online Screensaver plugin installed.This tool generates a png from a Home Assistant Lovelace view, which can be displayed on a Kindle device which has the Online Screensaver plugin installed. - sibbl/hass-lovelace-kindle-screensaver
Continued thread

The new bug is that sometimes something about the kiosk dashboard is wrong. And what I capture and render as an image is a “loading” screen.

The image renderer for it fetches a special #homeassistant Lovelace dashboard designed for this. I think I need to have it fetch once, pause a few seconds, and then fetch again. I suspect there’s some caching or other issue going on.

The frame simply fetches the image and renders it. The image is encoding this loading screen. #selfhosting #homeautomation

I wrote this blog in 2023 about hooking up a bunch of things together to get an e-paper display driven by a Pi Pico-W. It didn’t actually work very well. I would find the thing dead and not updating. Well, I fixed it over the last few nights. I pushed a new version to the git repo that has been running stable for a few days.

The instability arose from super tight memory issues. The python runtime and everything else takes up so much memory that memory allocation would fail and it would have a hard-to-debug runtime error.

The changes amount to 3 big things. 1. I call machine.reset() at the end of my loop. It starts with a clean slate each iteration. 2. I changed most of my import statements to only import the functions I was using. Instead of “import time” I say “from time import gmtime”. 3, in the case of error I just reset() and try again. I wasn’t handling errors well before.

But it has new bugs! Yay!
1/2
#homeautomation #homeassistant #selfhosting

blog.paco.to/2023/inky-frame-l