Skip to content
All articles

Smart Domotik, part 2: Keeping the wall switches working

I want anyone to be able to walk into a room and turn on the light at the wall, even if the web server or the automation controller is down. I can make that possible now, while I still have a chance to change the wiring.

Put in the conduits while the walls are open

The house is still being built, so I asked the electrician to put an extra set of conduits alongside the conventional installation. For a few hundred euros, I get space for the automation connections and more Ethernet runs. I can keep working on my side without asking the electrician to redesign the conventional circuits around a prototype.

Gray and green conduits laid before the floor was finished
The green conduits are for the automation side of the build. There’s still time to make room for later changes while the floor is open.

Give the wall buttons and the browser the same view

The electrician normally uses multi-way switches to control a light from several places. I asked for latching relays and momentary wall buttons. A press at the wall changes the relay state without going through the controller. Once I’ve mounted the cabinet, I’ll connect the controller so it can also request a change and read back whether the light is on.

That feedback is what will make the browser trustworthy. If someone turns a light on at the wall, the interface will show the new state the next time it reads the inputs. If the automation side stops responding, the wall buttons will still have their ordinary path to the relay.

Shutters are a different problem

For the shutters, I plan to run the motor for a fixed interval. One press will run it long enough to reach the top or bottom. A shorter interval should stop it somewhere in between. Half the time is an estimate of the midpoint, since the design doesn’t measure the shutter’s position.

The next step is to put the cabinet in place and connect the controller. I can work on that without making the house depend on it for something as basic as turning on a light.

Smart Domotik series · Part 1 — The controller and browser interface · Part 2 · Part 3 — Scenes · Part 4 — Inside the cabinet