Alex’s notes

Software, useful tools, and making things.

An Hour Offline Proves Nothing

Spencer Kittleson’s post on running a house without a vendor’s server has over eight hundred points on Hacker News, and its first rule is hard to argue with: “Nothing core in my house depends on a vendor’s server. If the internet goes down, the house keeps running.” I’d sign it. I wouldn’t sign the test most people will use to check it, which is pulling the cable for an hour.

The reason is in the thread, in a comment by the author. “Outages are the small part,” Kittleson wrote. The bigger one is the vendor’s server going away for good, “then it’s not off for an hour, it’s off forever.” That is the right worry, and the headline rule checks the other one.

Years ago I was on call for a few hundred networked sensors on a factory floor. The vendor’s licence server went dark one Friday. The sensors carried on for exactly seventy two hours, which was the grace period baked into the firmware, and then every one of them went quiet within the same minute on Monday morning. Our disaster drill, run in a calmer year, had unplugged the uplink for an hour and passed. The report had a green tick on it, and I still think about how good it looked.

The two failures are not the same size

A home connection at 99.9 percent availability is offline about 8.76 hours a year, so 87.6 hours over a ten year device life. That is the failure the rule was written for. Now give the vendor a chance of ending the service. I have no data for that number, so I tried three: 2, 5 and 10 percent a year. I ran a small script with the model in it. At 5 percent a year, the chance the service is gone within ten years is 40 percent, and if the service ends at the end of a year, the device spends about 17,300 hours cut off from it on average. At 2 percent a year it is still about 7,500, roughly eighty times the outage figure. Change my assumptions as you like. The two numbers only meet when the yearly chance falls to about two in ten thousand.

Home Assistant’s own 2016 classification of connected devices lists the disadvantage of a cloud device in one line: “It doesn’t work if the internet is down or the company stops support.” Both failures share one line of documentation, and on my numbers one of them is eighty to three hundred fifty times bigger than the other.

The drill is shorter than the grace period

The drill has a second flaw, which is its length. A commenter in the thread, mountain_peak, kept a cheap WiFi water detector watching a sump pit after its vendor shut the cloud service down. According to the comment, the firmware tried to phone home every 24 hours and dropped off the local network when nothing answered. The fix was a Pico and a MOSFET that cut the detector’s USB power every 23 hours. That detector passes an hour of unplugging without complaint. It fails at hour twenty four, and my sensors failed at hour seventy two.

Timers are the obvious version. The quieter one is a certificate. I wrote a loopback TLS “device” and a client that trusts exactly one certificate, once with a valid certificate and once with one that expired in January 2025. No internet is involved, since everything stays on 127.0.0.1.

ctx = ssl.create_default_context(cafile=certfile)   # trust exactly this cert, nothing else
with socket.create_connection(("127.0.0.1", port), timeout=3) as raw:
    with ctx.wrap_socket(raw, server_hostname="localhost") as t:
        t.sendall(b"status?\n")
valid cert   : light is on
expired cert : SSLCertVerificationError certificate has expired

That ran on OpenSSL 4.0.3 and Python 3.14.7, macOS on Apple silicon, on 11 November 2026. Everything is local, and the client still refuses to talk because a date passed that somebody at the vendor was supposed to deal with. Kittleson’s post mentions a fridge showing a TLS certificate error on its own screen. An expired certificate is one way to get that screen, though I can’t say what killed that one.

The case for the shelf

The best objection in the thread came from cadamsdotcom: “Smart home devices should stay on the shelf.” Going local, they argued, means you “get to also manage a fragile controller device”, and then it dies while you are on holiday. That is a fair description of at least one of my past Septembers, when an SD card gave out the week we were away and the heating schedule I had so carefully moved off the cloud stopped existing. Kittleson’s answer, that one Pi has run five years on minimal updates, is also true. Neither of us has a dataset, and two stories about one board are a failure rate the way one sunny day is a climate.

What survives is smaller than either side wants. Local does cost something, and the shelf is a legitimate place for a device to live. It is also a place Kittleson’s own rule two already leaves open: don’t remove the old way while adding the new one. The wall switch is the only part of the house with a good record against vendor death, and it is the part that costs nothing to keep.

What I’d do

Val Town announced on 10 November that it is winding down: read only mode on 10 December, thirty days out, except for sqlite and blob storage, everything else on 10 January 2027, and the code open sourced on 1 February. By the standards of the Insteon shutdown in April 2022, where cloud servers went off without any warning to customers, that is a gentle death, and thirty days still isn’t a drill anyone scheduled. The test that would have helped is the same for a light switch and for hosted code: pretend the vendor has stopped answering and see what is still standing a week later.

So here is my rule, and its limit. Before a device is allowed to hold anything core, I block its vendor at the router for seven days, a real week with a reboot and a weekend in it. If it still does its one job at the end, it stays. If it doesn’t, it gets the one job nobody will miss and the wall switch stays live. Seven is a compromise, not a theorem. A week catches the daily and weekly timers, a thirty day grace period passes it and dies on day thirty one, and a certificate that expires in year three needs a calendar. For those I have only the habit of reading the date on the label.

The hallway light gets its week starting tonight. If it still works next Wednesday, I’ll buy a second one.

Comments