Skip to content

Sniperson2002/Home-Assistant-Config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hanifin Smart Home

My Repository Home Assistant Community
Github Action Status Github Linter Status Community Forum
GitHub Activity Last Commit Discord
Home Assistant Version

Smart Home Articles

I write instructional articles on brianhanifin.com. Topics primarily revolve around Home Assistant and ESPHome code and devices, but I also I have written about my HomeLab server setup.


An occasionally updated summary of our smart home

I started using Home Assistant in the spring of 2018 when we outgrew the limited automations on Apple's HomeKit platform. Our Home Assistant initially included many HomeKit smart plugs our collection of smart lights, switches, plugs, cameras, and sensors. Since we have added many devices that use protocols like Zigbee and Z-Wave and even several custom built electronic modules.

Home Assistant now manages our smart home devices with lots of intelligence handled by automations. It is important that our devices can be controlled by standard wall switches, but we also use Google Nest speakers to control our devices with our voice. Not only can we talk to Google, but she can let us know when a laundry cycle, 3D Print, or laser cutting job is complete.

User Interface

Physical Buttons

We use a variety of physical switches from hard-wired to battery powered.

In-wall Dimmers and Switches

These can be used to control dumb lights. However, some devices allow you pass constant power so you can control smart bulbs with Home Assistant. For example a switch in my Dining Room leaves power to my Hue bulbs so I can turn the lights on with my voice or the physical wall switch.

bedroom_switches

Bedside Toggle Switches

A battery powered double switch to my wife's bedside table. Single clicks toggle the lights on either side of our bed. While a double click toggles the bedroom fan, or the sound machine.

Google Nest Speakers and Displays

We can also interact with our devices with Google Nest speakers in all of the major rooms of the house.

Our Google Nest also make announcements when something needs our immediate attention. For example: when it is time to leave for school, or its time to start cooking dinner because mom's on her way home from work.

Tablet Reference User Interface

We have a 7-inch Amazon tablet in the Kitchen which displays useful information such as our family calendar and which child's turn is it do the dishes this week.

Mobile User Interface (Lovelace)

I exclusively Interact with Home Assistant with my phone (or computer when coding). If noone else needs to bother with it, I have done a good job! 😏


Smart Home Devices

Disclosure: This article may contain affiliate links. If you decide to make a purchase, I'll make a small commission at no extra cost to you.

Lutron Caseta

Device recommendations: Dimmer, Pico Remote, Dimmer and Pico Remote, Lutron Caseta Pro Bridge

In-wall dimmer switches and in-wall (or handheld) wireless remotes. Get the Lutron Caseta Pro Bridge so you can us your Pico Remotes with Home Assistant to control any device in your house! The standard bridge is less expensive but you cannot watch for Pico Remote button press events.

Project Ideas

  1. Add a battery powered Pico Remote next to a room which doesn't have a wall switch! Control a smart bulb by any manufacturer! My Living Room was lacking a switch, but I cut a little hole in drywall and now it does! 🍻
  2. Replace a dumb wired light switch or dimmer with a Caseta Dimmer so Home Assistant can automatically turn the lights on at night when a motion sensor detects you have entered the room!
  3. Use Home Assistant to brighten the lights gradually to help you wake up in the morning.

Inovelli Red Series Switches and Dimmers

Device recommendations: Red Series Dimmer, Red Series Switch, Red Series Fan & Light Switch

Inovelli Z-Wave devices are high quality and they really care about our niche community. The Red Series switches handle double, triple, quadruple, and event quintuple click events. These even have a led light strip on the right side which we use different color and animations to indicate the state of things around the house.

Project Ideas

  1. Multi-click actions! 2x click to turn on/off the bright floor lamp, 3x click to turn on/off the floor fan, 4x click to activate your "Goodnight" scene, 5x click to activate guest mode on your way to answer the door!
    See my automation: automations/buttons/zwjs_button_click.yaml
  2. House Status Indicator Use the Led Strip to indicate when the garage is open, or the alarm is disarmed.
    See my article: "Inovelli Red Series Status LED Update"

Philips Hue Bulbs

Device recommendations: Starter Kit (3 color bulbs, battery dimmer, & hub)

The Hue ecosystem is easy to get setup with Home Assistant. We primarily use their tunable white bulbs for plug in floor and table lamps, but we do have 9 colored bulbs in our dining room chandelier for holiday fun.

Project Ideas

  1. Use these bulbs to make your plug in lamps controllable by Home Assistant.
  2. Create a realistic sunrise to wakeup in the morning using the tunable white light.

Smoke + Carbon Monoxide Detectors

Device recommendation: First Alert Z-Wave 2-in-1 Smoke Detector & Carbon Monoxide Alarm

Thanks to Carlo's article "PSA: CHECK OUT YOUR SMOKE DETECTORS (ONCE EVERY 10 YEARS)" I realized that I had lived in my house for almost 11 years, and we were due for new smoke detectors. So I replaced them with new First Alert ZCombo Z-Wave smoke detectors.

Project ideas:

  1. Safety Alert! Have Home Assistant alert you which detector sensed the Smoke so you can decide whether to try to put it out, or get to safety!

Xiaomi Aqara Zigbee Smart Home Devices

Device recommendations: Wireless Buttons, Motion & Luminance Sensors, Temperature & Humidity Sensors, Door & Window Sensors, Leak Sensors, Vibration Sensors Hub recomendations: Phoscon Conbee II USB Gateway, Aqara Homekit Hub, Aqara Starter Kit: Hub, Plug, Button, Motion, Door/Window

This Chinese company makes a lot of very useful and inexpensive wireless smart home products. At first I used their Zigbee smart hub to get these devices to talk to Home Assistant. However I now use a USB Stick connected to my server to communicate with all of my Zigbee devices.

Project ideas

  1. Door and window sensors: Stick door and window sensors on doors and windows around your house and have Home Assistant remind you to close the doors and windows when it starts to get warm outside.
  2. Motion lights: stick a motion sensor in your
    2a. Kitchen to turn on an LED strip under your cabinets to give yourself a nightlight when getting water in the middle of the night.
    2b. Bedroom to light a dim path to the bathroom.
  3. Flood damage alert! Place leak sensors under your all sinks, dishwasher, clothes washer, refrigerator, and water heater. Setup an alert to notify you where the leak is. This will give you valuable time to stop major flood damage!
  4. Medicine logger: stick a wireless button inside the medicine cabinet to log when you gave seizure medicine to your dog.
  5. Automatic bathroom exhaust: use a Temperature & Humidity Sensor to automatically turn on your exhaust fan and turn it back off when the humidity drops again.

DIY Smart Home Devices

I have flashed the below devices with ESPHome firmware which I have full control over! You can see my code at my esphome-config GitHub repository.

Shelly 1 Boards

Device recommendations: Shelly 1 (1 pack, 2 pack), Shelly 2

These devices are great for shoving in a box behind a light switch to add smarts.

Project ideas

  1. Hue Bulb functional light switch: my dining room has a 9 bulb chandelier, this provides constant power, while allowing the switch to remain functional.
  2. Smart Bathroom Exhaust Fan
    2a. turns the fan off after 10 minutes when manually turned on (note: a battery powered motion sensor resets the countdown).
    2b. turns the fan on then back off when the humidity is up due to a shower (note: a battery powered humidity sensor in the bathroom is compared to one in a neighboring room).
  3. Garage Door Controller: I plan to replace the cloud based Chamberlain MyQ controller soon using The Hook Up's video for reference .

SonOff S31 Plugs

Device recommendations: S31, S31 Lite

The SonOff S31 is a reliable Wi-Fi controlled smart switch which can be flashed with Tasmota or ESPHome if you wish. The original S31 has Power Monitoring built in, while the new S31 Lite omits that for a discount.

S31 Power Monitoring Project Ideas

Note: the relay can be left always on to put these in a monitor only mode.

  1. Monitor your washing machine so Home Assistant can notify you when your wash is ready to be hung up or moved to the dryer! No more stinky clothes!
  2. Monitor your dishwasher or clothes dryer.
  3. Monitor your 3D Printer or Laser Cutter to let you know when it is time to check out that thing you just created!

S31 Lite Project Ideas

  1. Plug one of these into every floor and table fan you own and just ask your Google or Alexa to "turn on the bedroom fan!".
  2. Plug one into a sound machine to help you sleep at night. Have Home Assistant automatically start this when your phone starts charging for the night.

Presence detection

Life360 Integration

I use Life360 for presence tracking on my son's, wife's, and my phone. This has made me comfortable enough to do things like having Home Assistant close the garage door if one of us leaves the home zone. This covers us for those few times we may forget to close the door before driving away! :)

Ubiquiti UniFi Integration

For extended family visitors I use the Home Assistant Ubiquiti UniFi Integration to track when their phones are connected to my Wireless Access points.

Guest Mode Helper

Finally, I have a "Guest Mode" input_boolean setup as both a trigger and a condition on many of my lighting and front door locking automations.

Wireless Communications

Wi-FI: Ubiquiti Unifi

Device recommendations: Unifi 6 Lite Access Point (Wi-Fi 6), Unifi AC-PRO Access Point (802.11ac, I have 3 of these), Unifi Security Gateway

Eventually you outgrow even the fanciest home WiFi setup. There were just too many devices for my Netgear Orbi mesh networking system to handle, so I had to upgrade to a business grade solution.

Pros:

  • Rock solid WiFi all throughout the downstairs.
  • Household members don't complain about the WiFi anymore!
  • Long Ethernet cable runs make all access points equally fast!

Cons:

  • Requires a long Ethernet cable run to each Access Point. (But also a "Pro"... see the last point above.)

Zigbee

Recommendation: Phoscon Conbee II USB Gateway

Home Assistant's ZHA Integration directly runs all of my Zigbee devices. This includes all of my Philips Hue bulbs and all of my Xiaomi Aqara sensors!

Z-Wave

Recommendation: Aeotec Z-Stick Gen5 Plus

As of February 2021 Home Assistant's Z-Wave JS Integration directly runs all of my Z-Wave devices. To be precise I am running Zwavejs2Mqtt) with MQTT disabled so I can make use of the Z-Wave Device Management UI built in. This includes several in-wall switches and dimmers, smoke detectors, and a bulb.

Technical Details

Our Home Assistant install has approximately 1173 total entities, including 549 sensors.

21 Custom Integrations
Anniversary Countdown Sensor for Home Assistant
Authors:@pinkywafer.
Average Sensor for Home Assistant
Authors:@Limych.
🔹 A Home Assistant integration to turn your browser into a controllable entity - and also an audio player
Run the CLI config_check from a service call.
Authors:@ludeeus.
HomeAssistant custom sensor to track specific events
Authors:@azogue.
🔹 Use icons from fontawesome in home-assistant
Frigate integration for homeassistant
Authors:@blakeblackshear.
Home Assistant Google Home custom component
Authors:@leikoilja, @DurgNomis-drol, @ArnyminerZ, @KapJI.
HACS gives you a powerful UI to handle downloads of all your custom needs.
Authors:@ludeeus.
Use your Rainforest Automation EMU-2™ Energy Monitoring Unit in Home Assistant.
Authors:@jrhorrisberger.
A custom component for Home Assistant to detect iPhones connected to local LAN, even if the phone is in deep sleep.
Authors:@mudape.
Use Jinja and data from Home Assistant to generate your README.md file
Authors:@ludeeus.
📺 Home Assistant SamsungTV Smart Component with simplified SmartThings API Support configurable from User Interface.
Authors:@ollo69.
Custom component for HA that enables the creation of scheduler entities
Authors:@nielsfaber.
High level health status of UniFi Security Gateway devices via UniFi Controller
Authors:@jchasey.
Home Assistant custom integration for SmartThinQ LG devices configurable with Lovelace User Interface.
Authors:@ollo69.
Home Assistant integration for SpaceX Next Launch and Starman data.
Authors:@djtimca.
Add template sensors from the UI.
Authors:@ludeeus.
A sensor that gives you weather alerts from alerts.weather.gov.
Authors:@ludeeus, @jlverhagen.
Home Assistant Integration for Wyze devices.
Authors:@JoshuaMulliken.
A platform which give you info about the newest video on a channel
Authors:@ludeeus, @pinkywafer.
28 Lovelace Plugins
Custom calendar card for Home Assistant with Lovelace
🔹Automatically populate the entities-list of lovelace cards
🔹 Place badges anywhere in the lovelace layout
❇️ Lovelace button-card for home assistant
🔹 Add CSS styles to (almost) any lovelace card
🔹A collection of tools for other lovelace plugins to use
🧹 Declutter your lovelace configuration with the help of this card
Show a notification count badge.
🔹 A foldable row for entities card, containing other rows
🔹 A lovelace card that does nothing and looks like nothing. Incredibly useful! No, really.
Weather condition card (Lovelace) for Home Assistant.
🙈 Hides the Home Assistant header and/or sidebar
🔹 Get more control over the placement of lovelace cards.
A custom Lovelace card for displaying a combination of persistent notifications, calendar events, and entities in the style of a feed.
A custom Lovelace text input row for use in entities cards
Minimalistic graph card for Home Assistant Lovelace UI
Minimalistic media card for Home Assistant Lovelace UI
Show multiple entity states and attributes on entity rows in Home Assistant's Lovelace UI
🔒 Apply restrictions to Lovelace cards
HA Lovelace card for control of scheduler entities
A different take on the thermostat card for Home Assistant ♨️
🔹 Add sliders to entity cards
🛠 group multiple cards into one card without the borders
🔹Dynamically replace lovelace cards depending on occasion
🔹 Display whatever you want in an entities card row.
🕰️ Time Picker Card for Home Assistant's Lovelace UI
Weather Card with animated icons for Home Assistant Lovelace
3 Addons

ESPHome v1.16.2

ESPHome Hass.io add-on for intelligently managing all your ESP8266/ESP32 devices.

Home Assistant Google Drive Backup v0.104.2

Automatically back up Home Assistant snapshots to Google Drive

Samba share v9.3.1

Expose Home Assistant folders with SMB/CIFS

Inspiration

The following are just some of the people that have inspired my smart home.

Carlo

I aspire to Carlo's level of home connectedness. I have taken baby steps to giving my home a voice, but my speech routines are not being utilized quite as elegantly as at Carlo's house!

DrZzs

I wish I could be more like this guy. He is just so darn positive and happy all of the time. He taught me how to "Tasmota". I like to have one of his videos or streams playing in the background while I am coding.

Frenck

I just learned of Frenck recently, but he is a long time member of the community. I just refactored my code to be similar to his config (as discussed in this video).


All of my configuration files are tested against the most stable version of home-assistant using Github Actions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%