This is my Smart Home. It uses Home Assistant to bridge and automate all my home automation products. It runs on a Raspberry Pi Model B+ running Hass.io. Related repositories: Arduino for DIY sensors/lights/switches etc, "NextCloudPi" for the NAS.
Around the house I have:
Cloud Devices
| Device | Quantity | Connection | Home Assistant | Notes |
|---|---|---|---|---|
| Amazon Echo Dot | 1 | Wifi | https://www.home-assistant.io/components/alexa/ | Used for voice commands to turn devices on/off using the Emulated Hue Component |
| Google Mini | 1 | Wi-Fi | Assistant | also for voice control, vie build in cloud service or DIY. |
Cloud Devices
| Device | Quantity | Connection | Home Assistant | Notes |
|---|---|---|---|---|
| Wemo Outlet | 1 | Wifi | ||
| Sonoff S31 | 2 | Wifi | mqtt | not set up yet |
| Jinvoo Outlets | 2 | Wifi | Tuya component | not set up yet |
| Device | Quantity | Connection | Home Assistant | Notes |
|---|---|---|---|---|
| Hue Colored lights | 2 | wifi/zigbee | Hue | |
| Ikea TRÅDFRI LED Bulbs | 1 | Wifi/zigbee | Hue | |
| Ikea TRÅDFRI Remote | 1 Wifi/zigbee | - add thru Hue via 1 |
| Device | Quantity | Connection | Home Assistant | Notes |
|---|---|---|---|---|
| IP/Android Cameras | 1 | Wifi | IP Webcam | |
| Amazon Fire 8HD | 1 | Wifi | FloorPlan Blog post dont have yet, may go with Pi Screen | |
| [LG WebOS TV] | 1 | LAN | WebOS | |
| [Sonos] | 2 | Wifi | Sonos |
| Device | Quantity | Connection | Home Assistant | Notes |
|---|---|---|---|---|
| PI Zero | 1 | Wifi | ||
| NodeMCU Development Boards | 8 | Wifi/mqtt | Act as DIY Motion Sensors. Scenes are activated via IFTTT/HA integration. | |
| Pi 2 B | 2 | Wifi | Runs as home computer (Raspbian, etc) with WebCam (installed via 1, CUPS for Printer connection via MQTT, and NAS |
*Technically Zigbee based, but added through Hue they dont require a zigbee hub.
Hardwired Devices
| Device | Quantity | Connection | Home Assistant | Notes | | ------------- | :---: | ------------- | ------------- | ------------- | | [Philips Hue Hub Gen 2](http://amzn.to/2eoQTJy) | 1 | LAN | Hue | | [Pi B+](http://amzn.to/B01CD5VC92)__ Hub, See above (Hass.io) | [Ikea TRÅDFRI Gateway](http://www.ikea.com/us/en/catalog/products/00337813/) | 0 | LAN | |
Outdoor Landscaping
| Device | Quantity | Connection | Home Assistant | Notes | | ------------- | :---: | ------------- | ------------- | ------------- | | [Rachio Sprinkler system](http://amzn.to/2eoPKBW) | 0 | Wifi | | | | [GE ZWave Outdoor Power Module](http://amzn.to/2q17R4S) | 0 | | | |[Phyn Smart Water Main ShutOff/Leak Detector](http://www.phyn.com/) | 0 | | | | [Outdoor LED Lighting](http://www.vmwareinfo.com/2017/08/diy-outdoor-smart-home-led-strips.html) | 0 | | |
Outdoor LED Accents
| Device | Quantity | Connection | Home Assistant | Notes | | ------------- | :---: | ------------- | ------------- | ------------- | | [LED RGB Wifi Controller - flux_led compatible](http://amzn.to/2jUBSBE) | 0 | | | | [LED Strip kits](http://amzn.to/2gJYfZ5) | 0 | | | | [Aluminum light Diffusers](http://amzn.to/2CIId82) | 0 | | | | [Outdoor Housing](http://amzn.to/2m2dG0X) | 0 | | |
Sensors
| Device | Quantity | Connection | Home Assistant | Notes | | ------------- | :---: | ------------- | ------------- | ------------- | | [Pi Zero](http://amzn.to/2ougZQ3) | 0 | | | | [Zigbee2mqtt "hub"](https://github.com/Koenkk/zigbee2mqtt) | 0 | | | | [MX350 Printer]( http://a.co/d/1GxbxER) | 1 | | | | [Xiaomi motion sensors](1) | 0 | | | | [Xiaomic Button](2) | 0 | | |
These are the steps I have taken to add some level of security to my Home Assistant instance.
- Simple protections like enabling a password and limiting the number of incorrect login attempts.
- Anything that doesn't need an internet connection is blocked from any inbound or outbound traffic at the router level.
- Running PiVPN on a spare Raspberry Pi, any external traffic runs through this one port only, needs a cert to access.
- Failed login attempts to the Home Assistant Front end generate a notification to me with the source IP.
- Frontend log-ins are tracked using a Custom Component
- My Home Assistant Traffic is encrypted with Let's Encrypt. I used this guide to get it setup.
A detailed description of each of my automations and a link to the yaml file is located HERE
Typical Automations in use (or planned to be) include
- Turn on / off outside lights at sunset
- Turn on / off indoor light when door opens / closes
- Turn off lights after no activity / motion
- Grouping of lights for use with Alexa/Google for commands
- Perform actions based on people leaving home / arriving home
- Update location for user based on geolocation zones (Work, School, Church, Home)
- Enable holiday color lights on outside lights via scenes
- Turn on lights based on motion / ring front door and return to previous theme after
- Send Text notification and flash lights if water detected in basement
- Send Text notification and flash lights if water detected by washing machine
- Cut power to washing machine if water detected by washing machine
- Send Text notification and flash lights if CO / Smoke detectors go off
- Send alert if power is lost at the house
- Enhance security system through extra sensors and motion reading
- HA cheat sheet for miscellaneous tips and tricks.
- YouTube Series.
- Home Assistant Docs.
- Home Assistant Forum
- Thanks to SilvrrGIT, most of this page is based on his. Thanks to mertenats, most of the Arduino pages are based of his.
- Awesome-HA
- Lovelace Gallery
This is the main directory of the Repo. You will find more helpful ReadMe files in the directories as you browse them. I use a configuration type called split configuration, so my main configuration.yaml file is broken out into many different files located in the directories. I also use packages to combine related items (media players, their automations etc).
I'm currently running Home Assistant version 0.81. My preferred installation method is the HASS.io Method. Simply download, and install on SD card via Etcher. Install addons: see below.
I am running the following Hass.io add-ons:
- DuckDNS - Updates your Duck DNS IP address and generate SSL using Let's Encrypt.
- HASS Configurator - Browser-based configuration file editor.
- Mosquitto - Fast and reliable MQTT broker.
- Samba - Access your configuration files using Windows network shares.
- NGINX SSL proxy - Reverse proxy with SSL termination.
- SSH & Web Terminal - SSH and Web-based terminal with tons of pre-loaded useful tools, including Git, configure via this guide.
- Pi-hole - Network-wide ad blocking.
- UniFi Controller - The UniFi Controller allows you to manage your UniFi network using a web browser.
- Node-RED - Flow-based programming for the Internet of Things.
- Plex Media Server - Your recorded media beautifully organized and ready to stream.
- zigbee2mqtt - Zigbee to MQTT bridge, get rid of your proprietary Zigbee bridges.
- Dropbox Sync - Upload your backup snapshots to Dropbox.
- Log Viewer - Browser-based live log viewing utility.
- Tautulli - Monitor and get statistics from your Plex server.
- motionEye - Simple, elegant and feature-rich CCTV/NVR for your cameras.
- [TasmoAdmin](https://github.com/hassio-addons/addon-tasmoadmin - Easy managment of tasmota flashed devices
Split up into sections, including packages for weather/media players,
- Weather
- GTFS Halifax Transit https://www.halifax.ca/home/open-data/halifax-transit-open-data
- Google Home https://console.actions.google.com/u/0/, https://www.browserling.com/tools/random-string ##Possible Components for the future
- Feedreader
https://github.com/custom-cards https://github.com/kalkih/mini-graph-card https://github.com/kalkih/mini-media-player https://github.com/nervetattoo/banner-card
