Wizworks

DIY, Technology, Imagination

  • 95.1FM The Mothership
  • HOME
  • PROJECTS
    • Ammo Can Hotspot
    • DLNA Network Media Player
    • Free TV
    • Home Automation
    • LED Kitchen Makeover
    • Misc Wireless
    • PBX for the home
    • Power Supply
  • RESOURCES
    • Blameless Bittorrent
    • FSK RADIOS
    • Ham Radio – D-Star
    • Single Board Computers
    • Streaming Radio Feeds
  • RADIO STATION – K1WIZ
  • Contact

Home Automation

There are many home automation technologies available today.  To list a few, some are:

  • Z-Wave – easy to setup (a robust open wireless mesh type system with a central controller)
  • ZigBee – requires serious skills (another wireless system – not the same as Z-Wave)
  • X10 – easy to setup (uses timing signals sent over power lines, not reliable, but easy and cheap)
  • Insteon – easy to setup (proprietary wireless system)

In my project, I chose Z-Wave since it is open source and it is supported by many different device manufacturers (GE, Leviton, Echolink, Iris, etc).  Z-Wave also has the distinct advantage in that you can place the central control node anywhere in your building since the wireless protocol forms a mesh and each node (light switch, outlet, etc) is also essentially a repeater.  When nodes act as repeaters in addition to their primary function of controlling an outlet or switch of some kind, they also relay commands to neighboring nodes and keep track of who their neighbors are.  This is extremely useful since any commands destined for a distant node will quickly be relayed to the farthest node.  The more nodes you have in your control network, the greater the footprint your control network can cover.  Possible node types can include the following devices:

  • Switched AC outlet
  • Light Switch/Dimmer
  • Door/Window Sensor
  • PIR (Passive Infrared) motion sensors
  • Door Locks
  • Relays

Given the cost of the various components in your Z-Wave automation system, it is generally recommended that you plan deployment one room at a time.  Replacing your switches and outlets with Z-Wave ones is a way you can add value to your home since you can advertise your home as “Z-Wave” or “Automation” ready, so all this is added value since more people these days are not only becoming familiar with smart devices in the home, but some are expecting it.   Also, it should be obvious here that if you aren’t comfortable with working with electricity, please get qualified help.  You can easily cause property damage or worse, be killed by taking short cuts, or not paying the proper respect to electrical safety.

There are a number of controllers available such as:

  • DIY approach: I built mine out of a Raspberry Pi, Linux, and Aeon Labs Gen5 Z-Stick
  • Vera Edge
  • Wink
  • Samsung SmartThings Hub
  • Dlink Connected Home Hub

I chose the DIY route as I wanted to build my own controller, this choice has advantages in that I learn how it works and I can do custom stuff, like scripting and interconnectivity with other devices in the home.  Here is a view of my Raspberry Pi/Z-Stick based control node (click for larger view on all images):

control-node

The Raspberry Pi runs Debian Linux with OpenZwave and Domoticz web UI.  These are all free software.  You can download a prepared Domoticz image build here.  This build has everything you need to roll your own home automation system using the Raspberry Pi, which is extremely efficient and only draws about 7 watts!

Once you setup your controller and you have replaced/added z-wave devices, you can add them to Domoticz web UI and start setting them up.  At the time of this writing, I have several z-wave devices on my control system.  You can view the device communication topology and see the mesh formed here in Domoticz, which shows how the nodes are linked to each other forming a Z-Wave mesh (click for larger view):

zwave-topology

Clearly, you can easily see why Z-Wave is extremely robust and reliable.  There is no way for a control command to be missed.  Once you have added z-wave switches (carefully!) and they are on your controller, you can easily assign them to a name and device type for easy use.

zwave-outlet

Most Z-Wave devices WILL need a HOT (black) and NEUTRAL (white) connection in addition to GROUND (copper) in order to work properly.  For switches, sometimes you do not have a neutral line in your switchbox, in which case you must somehow provide a neutral connection or the Z-Wave module will malfunction.  When you have finished adding your devices, you will be able to see them in the devices screen:

devices

When you have added and assigned z-wave devices to your control system, you can then proceed to set them up as you like and they will appear on the SWITCHES tab of the web UI:

switch setup

In this example, you can see that I have many different types of nodes on my control system.  I can set notifications on door sensors, motion sensors, or in my case, I can use PIR motion sensors to trigger lights to go on when I enter the room.  Door sensors alert me to doors being opened/closed and these alerts appear on my mobile phone and even my Apple Watch.  From my mobile device, I can control or be alerted to things happening in the house:

IMG_1573

Here you can see that I can also check the total home electrical consumption in real time as well as weather data:

IMG_1574

In addition to checking in from my mobile, I also have the ability to enjoy a full dashboard which gives me the ability to control devices or review data from the many functions in the system for utility, weather, set notifications, timers, just about anything:

dashboard

and for looking at weather data:

wind temp chart

I can also tweak Domoticz to do my bidding in the settings menu:

settings

In addition to all this, I can set notifications for events such as motion, door sensor, and device state change:

notifications

Notice that you can use a variety of notification options.  I use a free push service called pushover.  Pushover has apps for android and apple.  It works like a charm.  For times when the UI doesn’t have a work flow for getting the type of settings or actions you require, you can easily script them and it’s as simple as putting blocks of logic code together.  This allows for creativity and imagination in your automation routines.  Here you can see that at night after 10PM I only want the kitchen counters to light when I enter the kitchen, but for other times, turn on all the kitchen lights:

blocky

I can also monitor total electric power usage and even get details on how we use energy:

utility

utility2

  • What are you looking for?

  • Here’s What’s Happening

    • From CSV to JSON using PHP November 30, 2021
    • Mic McCloud – A Cloud Microphone November 22, 2021
    • Setting up Liquidsoap for AAC+ streaming November 4, 2021
    • Recycling Swap October 23, 2021
    • DIY High Power Smart Switch October 2, 2021
    • DDNS script using Cloudflare October 1, 2021
    • Create your own WiFi QR Code September 29, 2021
    • How to tell when your school is watching you at home September 24, 2021
    • Garage Door Operation June 29, 2021
    • FM / Raspberry Pi Translator May 27, 2021
    • Smart Solar Powered Landscape Lighting May 1, 2021
    • Streaming Municipal Services March 29, 2021
  • Galactic Archives

    • November 2021 (3)
    • October 2021 (3)
    • September 2021 (2)
    • June 2021 (1)
    • May 2021 (2)
    • March 2021 (1)
    • February 2021 (1)
    • December 2020 (2)
    • September 2020 (1)
    • July 2020 (1)
    • June 2020 (1)
    • October 2019 (1)
    • July 2019 (1)
    • June 2019 (1)
    • January 2019 (1)
    • December 2018 (2)
    • August 2018 (1)
    • July 2018 (1)
    • January 2018 (1)
    • November 2017 (1)
    • October 2017 (2)
    • September 2017 (1)
    • January 2017 (1)
    • December 2016 (1)
    • November 2016 (1)
    • September 2016 (1)
    • August 2016 (1)
    • July 2016 (1)
    • May 2016 (1)
    • March 2016 (3)
    • November 2015 (1)
    • October 2015 (2)
    • July 2015 (1)
    • March 2015 (6)