Home Assistant for Home Automation
In 2020, we completely renovated our home. During this process, we had the chance to decide which cables to run and to integrate a home automation right from the start. I'm not a big fan of proprietary servers and controls, so KNX and co. were out of the game.
At first, I wanted to run Domoticz, but this one lacked an integration for our alarm system. Finally, I switched to Home Assistant and I'm very happy with it and the vast amount of features it provides.
Network and Network Structure
One of the most important backbones in our home is the network infrastructure. We ran CAT7 cables in all rooms, used them for the light switches (see next section) and for the alarm system (see later section). Orange CAT7 cables are either network or light, blue CAT7 cables are alarm system cables.
The whole network is run by a TP-Link T-1600G switch which features 48-Ports and PoE+ on every port with a total power capacity of 384W. It's a L2+ switch, so it provides VLAN and some advanced switching stuff. For Internet access, an Ubiquiti EdgeRouter-X powered by OpenWrt is used. All other switches and the WiFi AP are also VLAN capable: That's important, because we defined three VLANs in our home:
- VLAN “Management”: for configuring devices; does not have Internet access
- VLAN “Private”: for all computers and other private, “trusted” devices
- VLAN “Technik”: for all switches, alarm system etc. with “partially” trusted interfaces
The access point (a TP-Link Archer C7) is also powered by OpenWrt and provides two WiFi networks, one bridge to “Private” and one bridge to “Technik”. This way, also the wireless appliances can be added to an “untrusted” network section.
The OpenWrt firewall on the EdgeRouter-X allows or denies access and routing between the different subnets and the Internet.
Regarding the light switches, I wanted a rather simple solution that can be used stand-alone without any dependency on a central server or infrastructure. After quite a lot of research, I went for Ethernet relay modules: Denkovi smartDEN IP-Maxi. All light switches are connected to the digital inputs and are configured as push buttons for the corresponding relays. They are integrated into Home Assistant and are therefore easily controllable via software.
The door bell solution is yet installed, it will probably consist of Hikvision IP intercom stations.
The newly installed floor heating can be controlled via wall thermostats as well as over IP: The control modules are Möhlenhoff Alpha 2 IP systems that provide an XML interface. Using my custom ezr2json server, the parameters can be polled and set from within Home Assistant.
As an alarm system, we went for a bus-based Jablotron system. There is a native USB integration for Home Assistant (available in HACS) that works very well. This allows the use of the motion detectors for switching on the lights in the corresponding room using an automation rule in Home Assistant.
433 MHz devices
For the integration of 433MHz devices (e.g. our outdoor wireless thermometer), I built an RFLink gateway - most of the hardware devices were available anyway and the gateway is very inexpensive to build.
Some further devices integrated into Home Assistant are our Neff oven (via Home Connect) or some Gosund wireless wall plugs, the entire SqueezeBox eco system and a few other devices. An RFLink integration is currently under development.