mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-13 13:29:12 +00:00
Home-Assistant Config by @ccostan
Home Assistant configuration files (YAMLs)
This is my Home Assistant Configuration created with the All In One installer expanded to 16GB. I update it pretty regularly. Home Assistant runs on my Raspberry Pi 3 with Aeon Labs Z Wave Stick (GEN 5). I've also added a 433Mhz Transmitter and receiver
Software on the Pi : Home Assistant , Dasher, SSL via SSLS - 5 Bucks A Year! , HomeBridge for full HA <-> Homekit compatibility.
Devices I have :
- Lots of iOS Devices (iPads, iPods, iPhones)
- Nest Thermostats
- Amazon Echo and DOT
- Amazon Dash Buttons
- Amazon Fire TV
- Phillips Hue Hub Gen 2
- Circle by Disney
- Rachio Sprinkler system
- SkyBell HD
- Rokus for all streaming
- Samsung Smart TV
- ChromeCast Audios
- AMPs - These are cheap but effective for the Dots, Chromecasts or other speakers.
- Etekcity Outlets
- Door Sensors (AEON Labs)
- Garadget - Garage Door opener/sensor - "Siri, are my garage doors closed?"
- Nintendo Wii
- Emulated Hue pushes all Switch, Group, input_boolean, script and scene information to Alexa for First Class Control!
- iTeadStudio goodies - SonOff and SonOn with a Slampher!
- LED RGB Wifi Controller - flux_led compatible with LED Strip kits - ~100 Feet. These are great Power supplies
- [Digital Smart Water Main ShutOff/Leak Detector] (http://www.providencecpc.org/wp-content/uploads/2016/01/work_in_progress.png) - Beta test to monitor Water usage and Leaks centrally.
- Aeon Labs AEDSB09104ZWUS Aeotec Z-Wave Smart Energy Monitor Meter to measure energy usage in the home.
Automations:
- Voice Notifications via the AMPs connected to ChromeCast Audios. Accomplished via the
GoogleAmazon Polly TTS component. - Guest mode to disable certain interior automations. Trigger via Alexa & IFTTT.
- IFTTT Notifications for Offline Devices, BadLogins, HA Startups, new HA versions and External IP changes for DSN.
- Monitor the reflection rates of Garadget and notify when they being to drop too low when closed (indicating a shift in the controller)
- Notifications when the garage door is left open at night or when we leave the house.
- (IFTTT) Logging entries in Logbooks for Rachio, Doorbell
- Auto Heal ZWave at 2:30am
- Using Etekcity Outlets to control accent lighting above kitchen cabinets and room cutouts.
- Turn on Hallway light for no more than 20 minutes when Pantry door is opened.
- Turn on TV Time Lights (dim and color) at Sunset (if home and TV is on)
- Turn on Upstairs light if Nest detects people and it's nighttime.
- Turn off lights when Nest detects we are away. (Upstairs and Downstairs)
- Turn on some lights abd switches when we get home
- Turn on some outdoor Lights at Sunset or if it gets darkish in the house, Turn off 4 hours before sunrise. Turn off interior lights when we go to sleep.
- Turn on lights during school days for a morning routine for the kids and wife. Has No School overide boolean in GUI.
- Rainy days trigger extra light inside the house.
- Detects when lights are turned on and adjusts them to correct brightness based on time of day.
- Leverage Alexa, IFTTT and Elekcity outlet to control Printer On/Off via Voice. Turns off automatically after 20 minutes.
- Turn on AMPs when Chromecast reports 'Playing'. Turn them off when we are done streaming music.
- (IFTTT) Blink ALL lights at 9:30 to remind me to take medicine. (also Alexa Alert)
- (IFTTT) Blink Office lights 15 minutes before ANY meeting on my calendar (using IFTTT)
- (IFTTT) Stop watering grass via Rachio if winds are greater than 20 MPH.
- (IFTTT) Blink ALL lights if Winds get to 70MPH - Hurricance warning.
- Sets up the front lights in the house with preset colors depending on the
monthday!. - On motion from Doorbell (IFTTT) Turn front lights to Bright White lights for 10 minutes and then back to original colors.
- When someone rings the Doorbell (IFTTT), the backyard and Bathroom lights Flash - Since we might not hear the doorbell.
Time Based Automation TimeLine
ALL DAY LONG:
Check to see if we are away.
SUNRISE minus 1 hour
Turn off ALL SWITCHES
Turn off ALL LIGHTS
05:00 AM ** Light Brightness helper 50 Brightness **
06:00 AM ( on school days) : Turn on Dining Room lights, Kitchen Accents and start Kid's bedroom [Hue Go](http://amzn.to/2iB36Ii) wake up lights.
06:51 AM Turn on Dinette lights, Turn off Dining Room Lights and Kitchen Accents
07:51 AM Turn on Kitchen Lights
08:00 AM ** Light Brightness helper FULL 255 Brightness **
08:31 AM (on school days) Turn off ALL interior lights.
SUNSET:
Turn on Den Outlet, Living Room Outlet, Dining Room Outlet, Outdoor Bathroom light, TV lights
Activate Monthly Front Lighting Scene
Check if Garage Door is open (Every 60 minutes)
** Kitchen Light/Accent Helper Activated **
08:00 PM ** Late Night Helper is active **
08:00 PM ** Light Brightness helper 35 Brightness **
08:00 PM TV time Scene triggered if the TV is on.
09:00 PM Turn on [Hue Go](http://amzn.to/2iB36Ii) lights for the kid's rooms and start fading down.
02:00 AM ** Late Night Help Deactivated **
02:31 AM Heal ZWave Network
#Todo List I've moved this entire section to the issues section on github.
#Lab notes:
Add codesend backup to RF Plugs!
@CCOSTAN I followed the info here: https://home-assistant.io/components/switch.command_line/
command_on: "/var/www/html/rfoutlet/codesend 4543795 -l 177 -p 0"
{%- if now().month in [01, 11, 12] -%} Yes {%- else -%} NO {%- endif %}
#Great Template Sensor Example
- platform: template
sensors:
front_door_lock_alarm_state:
value_template: >
'{{
{
'21': 'Secured using Key or inside thumb-turn',
'22': 'Un-Secured using Key or inside thumb-turn',
'26': 'Auto Secured – Bolt Jammed',
'27': 'Auto Secured – Successful',
'17': 'Secured at Keypad – Bolt Jammed',
'18': 'Secured at Keypad – Successful',
'19': 'Un-Secured by User at Keypad',
'23': 'Secured by Controller – Bolt Jammed',
'24': 'Secured by Controller – Successful',
'25': 'Un-Secured by Controller – Successful',
'112': 'New User Code added to the lock',
'32': 'All User Codes deleted from lock',
'161': 'Failed User Code attempt at Keypad',
'162': 'Attempted access by user outside of schedule',
'167': 'Low battery level',
'168': 'Critical battery level',
'169': 'Battery level too low to operate lock'
}[states('sensor.kwikset_touchpad_electronic_deadbolt_alarm_type_26_0')]
}}'
friendly_name: 'Deadbolt Status:'
#Handy Little Set trick
{% for entity_id in states.group.my_group.attributes.entity_id %}
{% set domain = entity_id.split('.')[0] %}
{% set entity = entity_id.split('.')[1] %}
Temperature: {{ states[domain][entity].attributes.temperature }}
{% endfor %}
Description
🏠 Home Assistant configuration & Documentation for my Smart House. Write-ups, videos, part lists, and links throughout. Be sure to ⭐ it. Updated FREQUENTLY!
alexaamazonautomationhacktoberfesthome-assistanthome-assistant-confighome-automationhomeassistanthomeassistant-confighomeautomationhueiotled-controllerlovelacenestraspberry-pismart-homesmarthomeyoutubeyoutube-videos
Readme
MIT
418 MiB
Languages
Shell
53.7%
Python
46.3%