by efitz · 2y ago · 0 comments
Before I installed the first smart device in my home, however, I had a single requirement: EVERYTHING MUST FAIL NORMAL. By this I mean that if the internet went out or a vendor went out of business or I rage quit a vendor, then the device in question had to act like it was a normal non-smart device.
I avoided things where you had to configure power-on default behaviors, and where you had to cycle power or disconnect the device to reset it. For this reasons I have no smart light bulbs in my house. I replaced every light switch with a smart light switch, and if anything goes wrong, walking over and using the switch will turn the light on or off.
Most of my automation is "zero touch" flavored - I want the house to do what I want without me triggering anything. For instance, I have luminance sensors in several rooms and during the day if it gets gloomy or overcast, or near dusk, it turns lights on. I also use occupancy sensors to turn lights on and off, and have multiple rules to set lights to the appropriate brightness based on time of day (after bedtime, the lights still come on when someone goes in the bathroom, but very dim, etc.). All this happens locally via HomeKit or HomeAssistant. And, if automation fails, then the switches still work.
I'm often surprised how little discussion I see of failure analysis and especially failure design is in software engineering. It is one of the most important concepts in engineering, but I guess we still operate like software can't kill you.
For those unfamiliar with this type of analysis I'll give you 3 examples. 1) Imagine you are building skyscrapers in city with a bunch of other skyscrapers. You don't expect them to fall but you question what happens if they do. You will explicitly design them to fall in on themselves (say after... idk... a plane hits them?) so that they do not fall on their side and take out other buildings around them. An important aspect of security design is explicitly around this whole idea. When your systems fail do you want them to "fail open" or "fail closed"? 2) Fail open would be like TSA, where if you start firing off rounds in the queue the system fails and you get "access" to the rest of the airport. 3) Failing closed is typical of safes, where you accept the fact that you will need to take a blowtorch and drill into the safe. (the TSA thing did happen, just not in America)
While these examples are a bit extreme the ideas are incredibly important for many products. I'll give a good example of this by looking at Android Auto. If a user gets frustrated with the system and is not able to accomplish their task in the way __they want to__, they will disconnect their phone, look down at it, do the thing, and reconnect. No matter how much you want to push voice operations, if the person doesn't like that, they fail over to a more dangerous set of actions than if you had just let them use the console a little longer or let them do a specific task. At least their eyes would be closer towards the road. I'm often amazed that there are lack of consideration for these type of things in home and auto platforms where there are often high stakes. How things fail is one of the most important things when designing systems (I'd argue it even matters for things like law and medicine).
This is a major reason why many "traditional" engineers do not consider programmers to be true engineers.
[0] https://en.wikipedia.org/wiki/Technology_readiness_level
Unless it's a very large safe where people can walk inside, like a bank vault. The fire department gets very grumpy with you if they fail closed and can trap people inside.
So if you want to force open a bank vault, stage a purported terrorist attack, and the FBI will cut power to the building as standard operating procedure. Voila, vault opens.
Software is killing people since decades: https://en.wikipedia.org/wiki/Therac-25
Another rule I include with this is that the "Smart Home" should still be able to operate and be controlled like a non "Smart Home" by a regular person. (e.g. light switches, thermostat, door locks)
I've got dumb bulbs and smart dimmers/switches so everything can be smart, and also can be used by normal people.
This is the Mitch Hedberg Rule.
"An escalator can never break: it can only become stairs. You should never see an Escalator Temporarily Out Of Order sign, just Escalator Temporarily Stairs. Sorry for the convenience."
One example would be if the gearing breaks so that the segments move freely:
Congratulations, you and the crowd--given false confidence by a comedian's joke--just piled onto the top of a downhill treadmill... It will now accelerate until you crash into a smothering crunchy heap at the bottom.
Yes, this, you get it.
I can't believe how many people I talk to are happy to install permanent things in their home that have a strong dependency on (a) the internet being up, (b) the company still existing, (c) the app still being supported.
Things installed in a house have a lifetime measured in decades. IoT companies and apps have lifetimes measured in months. This is not compatible.
I do not need smart home, but if you do, then I think that you are right. This is a good idea and is the most important idea.
IMO that would be the first smart home product strictly superior to its analog counterpart.
I haven't experienced many outages recently, but I'm fine with lights off until I turn them back on as a default. Its also possible to just have the lights revert back to their previous state as an automation in HA, although it seems like a waste of time to program instead of turning lights back on as you need them.
I’d be curious to hear more about this. Most of the “smart” light solutions I’ve tried struggle to go directly to a specific lighting level without some bright flash as they activate.
What brand switches/lights are you using to do this with?
They've added a popup to the app recently saying that soon Hue will require an account to work though, so I don't recommend them anymore. I've been meaning to move them to a separate offline network before they force update them to require an account. I originally purchased them because of how well they functioned locally without needing any Phillips cloud stuff. But sometimes I still use the official app instead of my homebrew setup.
If you own your own home, smart switches with dumb dimming capable lights are the way to go IMO. I'm still renting though.
I’d stay away from consumer grade stuff, it’s pretty much all garbage. Commercial controls will come with a 5 year warranty.
Most commercial lighting controls have 0-10v dimming, but you can get forward or reverse phase line voltage dimmers to use with consumer grade LED lamps (bulbs).
No flashes from any of them.
I went Leviton as they looked the most like low-key, plain-old On/Off lightswitches. But the reliability has been terrible - constantly dropping off the network or requiring a reset (at least the early models I have). It's disappointing considering I thought it was a well-established brand; after dealing with some of their tech support / engineers I'm of the solid opinion they should stick to non-smart appliances.
It'd be even cooler in two-ways, where using the switch on the one side of the room causes the other switch to match. Not sure why this isn't available either.
It's kind of like a joy stick, so in a neutral center position and you flick it momentarily up or down from center to ask for on or off. You have to learn not to lift and hold for too long, because that is how to get it into a very primitive reconfiguration mode. As I recall, you can reconfigure the LED and maybe its behavior on power restoration.
I configured mine so the LED is on when the light circuit is on, to show me the status of an exterior light on the other side of an opaque door. But, I think the default is the inverse so it acts a bit like a night light to locate the switch in the dark. Of course, it's a hideous blue as is the modern fashion.
I linked it to an existing alarm system to set some rules like turning on and off around dusk and dawn periods and turning on in response to camera-based motion/people.
I've ordered some Inovelli switches which do this and have an RGB LED if I need a state status indicator.
Sadly it was very expensive and also locked down to their private cloud. The company went bust and took everyone's 'smart' homes with them.
As a side note Lutron did a pretty good job with led brightness which is a big deal at night with lots of devices.
- FAIL NORMAL - WORK OFFLINE - YOU CAN STILL BUY
I really want my smart home devices to meet these criteria, but at the same time I have a bunch of other stuff I do.... so it would be awesome to have a starting point from people who have done it already.
Mozilla used to have such a database, but seems to have forgotten it.
"Fail normal" would be trickier, I don't think there's one size fits all. For lights, prefer switch relays over smart bulbs. Look out for customizable "default" state when power comes back on.
Most of the stuff either looks to be subsidized to keep online access which will earn data or offline capability is charged more because they dont get data
There's also a home assistant thing for them.
Is the switch always "on" and the sensor then turns on the light and you just have to turn the switch "off"?
And then if the switch is turned "off" will you need to first turn it "on" again in order to make the automation work properly again?
By using occupancy and time of day conditions I can have multiple rules to turn on lights to different brightnesses at different times of day. I turn on sets of lights vs individual lights so it’s not the absolute most efficient in terms of power but on the other hand having lights turn off automatically is a good saver when you have kids.
I use Lutron Caseta wall dimmers and dimmable LEDs everywhere so they already have a nice fade-off effect. I once tried to code a fade-on effect but it turns out that instant on is preferable so I gave up on that (it was unreliable anyway).
For low traffic areas like closets I use Lutron Caseta motion sensors; they work great and have very little configuration.
One note of advice - there is a lot of grey market Lutron stuff on Amazon; you can get burned by clones or up-labeled stuff that doesn’t function exactly as advertised. I would stick to buying at a home store or buying from the Lutron store on Amazon.
So it doesn't matter if you manually turn them on/off - they remain network accessible.
This is why they're strictly nicer to use than smart bulbs. Even if you want smart bulbs, you'll probably want smart switches too, but if you have smart switches you only really get a benefit from smart bulbs if you want to control the colour of the light.
You can control brightness of a smart bulb. Not all dumb bulbs are dimmer-friendly. That said, you can always replace those with dimmable dumb ones.
But also, smart bulbs with a dumb dimmer is the worst combination, so if upgrading somewhere, if it has dimmer switches that's an extra reason to replace the switch too, irrespective of whether you also replace the bulbs...
hmm... wonder why bulbs can't fail normal.
maybe they should make bulbs with a deadman switch. If they don't get a "ping" from a controller in a certain amount of time, they revert to normal light bulbs?
or yeah... smart switches.
The smart bulbs may have appeal for people that are unable or not allowed to modify their light switches.
By keeping the "smarts" at the switch level, you have a lot more choice in what bulbs you use (e.g. along color temperature, color rendition, light output, power consumption/efficiency, etc) versus the smart bulb.
The Lutron Caseta series of lighting products are basically the gold standard for being "fail normal" functional without network connectivity to the system control bridge, and the system also uses different RF frequencies than 2.4GHz Wifi based "smart" switches, so it doesn't rely on or potentially create congestion issues on your home Wifi network(s).
I totally agree with your principle about fail normal, but how is this a violation to that?
Some switches allow for direct control of zigbee or zwave smart bulbs so even if the hub is non functional, a press of the switch will still toggle or even dim them.