home-assistant-configuration/configuration.yaml

301 lines
8.0 KiB
YAML
Raw Permalink Normal View History

2018-07-18 17:56:30 +00:00
homeassistant:
name: Home
latitude: !secret MY_LATITUDE
longitude: !secret MY_LONGITUDE
elevation: 315
unit_system: imperial
time_zone: America/New_York
customize: !include customize.yaml
2019-02-21 17:49:55 +00:00
auth_providers:
- type: homeassistant
packages: !include_dir_named packages
2019-07-11 11:34:32 +00:00
default_config:
ssdp:
zeroconf:
2019-02-21 17:49:55 +00:00
system_health:
2019-07-11 11:34:32 +00:00
mobile_app:
2019-02-21 17:49:55 +00:00
person:
2018-07-18 17:56:30 +00:00
frontend:
2019-02-21 17:49:55 +00:00
themes: !include_dir_merge_named themes
javascript_version: latest
2018-07-18 17:56:30 +00:00
http:
2019-07-11 11:34:32 +00:00
#api_password: !secret MY_API_PASS
2018-07-18 17:56:30 +00:00
#ssl_certificate: !secret SSL_CERT
#ssl_key: !secret SSL_KEY
#base_url: !secret BASEURL
2019-02-21 17:49:55 +00:00
ssl_certificate: !secret ahsl_ssl_cert
ssl_key: !secret ahsl_ssl_key
base_url: !secret ahsl_base_url
2018-07-18 17:56:30 +00:00
use_x_forwarded_for: True
2019-02-21 17:49:55 +00:00
trusted_proxies:
- 127.0.0.1
- ::1
2018-07-18 17:56:30 +00:00
ip_ban_enabled: True
2019-09-07 19:11:00 +00:00
login_attempts_threshold: 3
2018-07-18 17:56:30 +00:00
config:
cloud:
2019-07-11 11:34:32 +00:00
wemo:
discovery: true
2019-02-21 17:49:55 +00:00
weather:
- platform: darksky
api_key: !secret darksky_api
name: Grayson
2018-07-18 17:56:30 +00:00
conversation:
device_tracker:
2019-07-11 11:34:32 +00:00
# - platform: icloud
# username: !secret ICLOUD_USER
# password: !secret ICLOUD_PASS
# track_new_devices: yes
# - platform: owntracks
#
2019-07-14 01:38:53 +00:00
# - platform: eero_tracker
# consider_home: 300
# interval_seconds: 60
# track_new_devices: yes
# only_macs: "d0:c5:f3:80:50:5e, f4:31:c3:84:1d:d1, 08:74:02:CC:C4:97, 5C:F5:DA:9B:5A:A2, 34:7C:25:CC:9D:0F, 64:52:99:93:F1:B3"
2019-02-21 17:49:55 +00:00
google:
client_id: !secret google_client_id
client_secret: !secret google_client_secret
2019-09-07 19:11:00 +00:00
arlo:
username: !secret arlo_user
password: !secret arlo_pass
alarm_control_panel:
- platform: arlo
home_mode_name: home
away_mode_name: armed
2019-02-21 17:49:55 +00:00
2018-07-18 17:56:30 +00:00
discovery:
2019-07-22 14:26:58 +00:00
ignore:
- igd
2018-07-18 17:56:30 +00:00
updater:
include_used_components: true
2018-07-18 17:56:30 +00:00
sun:
recorder:
#db_url: sqlite:///data/home-assistant_v2.db
2019-02-21 17:49:55 +00:00
purge_keep_days: 2
2018-07-18 17:56:30 +00:00
exclude:
domains:
- automation
- weblink
- updater
entities:
2019-02-21 17:49:55 +00:00
- sun.sun # Don't record sun data
- sensor.last_boot # Comes from 'systemmonitor' sensor platform
- sensor.date
2019-07-11 11:34:32 +00:00
2019-02-21 17:49:55 +00:00
logbook:
include:
domains:
- media_player
- automation
- script
2018-07-18 17:56:30 +00:00
logger:
default: warning
2019-09-07 19:11:00 +00:00
#logs:
2019-07-22 14:26:58 +00:00
# homeassistant.components.sensor.alpha_vantage: debug
2019-07-11 11:34:32 +00:00
2018-07-18 17:56:30 +00:00
history:
include:
domains:
- sensor
- switch
- media_player
- light
2018-07-18 17:56:30 +00:00
cast:
2019-02-21 17:49:55 +00:00
2019-07-22 14:26:58 +00:00
# speedtestdotnet:
2018-07-18 17:56:30 +00:00
mqtt:
2019-07-11 11:34:32 +00:00
broker: 192.168.7.67
port: 1883
username: !secret MQTT_USER
password: !secret MQTT_PASS
discovery: true
birth_message:
topic: 'hass/status'
payload: 'online'
will_message:
topic: 'hass/status'
payload: 'offline'
2018-07-18 17:56:30 +00:00
2019-02-21 17:49:55 +00:00
camera:
- platform: mjpeg
name: Garage Door Cam
mjpeg_url: !secret garage_cam
2019-09-07 19:11:00 +00:00
- platform: arlo
ffmpeg_arguments: '-pred 1 -q:v 2'
2019-02-21 17:49:55 +00:00
media_player:
- platform: vlc
name: hass_speaker
arguments: '--alsa-audio-device=hw:1,0'
2019-02-21 17:49:55 +00:00
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg
##splunk:
# host: 192.168.7.40
# token: !secret splunkit
# port: 8088
2019-02-21 17:49:55 +00:00
cloudflare:
email: !secret cloudflare_user
api_key: !secret cloudflare_api
zone: !secret cloudflare_zone
records:
- ah
2019-07-11 11:34:32 +00:00
life360:
accounts:
- username: !secret life360_username
password: !secret life360_password
2019-02-21 17:49:55 +00:00
2019-07-11 11:34:32 +00:00
media_extractor:
2018-07-18 17:56:30 +00:00
### Includes ###
alert: !include_dir_merge_named alerts/
group: !include groups.yaml
2019-02-21 17:49:55 +00:00
automation: !include automations.yaml
2018-07-18 17:56:30 +00:00
sensor: !include_dir_merge_list sensors
binary_sensor: !include_dir_merge_list binary_sensors
light: !include_dir_merge_list lights
switch: !include_dir_merge_list switches
2019-07-24 18:10:05 +00:00
script: !include_dir_merge_named scripts
2018-07-18 17:56:30 +00:00
intent_script: !include intents/intents.yaml
scene: !include scenes.yaml
input_select: !include input_select.yaml
input_boolean: !include input_boolean.yaml
2019-07-11 11:34:32 +00:00
input_datetime: !include input_datetime.yaml
2018-07-18 17:56:30 +00:00
zone: !include zones.yaml
2019-02-21 17:49:55 +00:00
python_script:
#duckdns:
# domain: !secret duckdns_domain
# access_token: !secret duckdns_token
2019-07-11 11:34:32 +00:00
### Services
2018-07-18 17:56:30 +00:00
2019-02-21 17:49:55 +00:00
# Disabled due to bug that causes too many open files - Need to track it down
2019-02-23 04:30:23 +00:00
# cover:
# platform: myq
# username: !secret myq_user
# password: !secret myq_pass
# type: chamberlain
2018-07-18 17:56:30 +00:00
2019-07-11 11:34:32 +00:00
ecobee:
api_key: !secret ecobee_api
2018-07-18 17:56:30 +00:00
map:
2019-07-22 14:26:58 +00:00
wwlln:
radius: 75
latitude: !secret MY_LATITUDE
longitude: !secret MY_LONGITUDE
tplink:
discovery: false
switch:
- host: 192.168.7.105
- host: 192.168.7.107
2019-02-21 17:49:55 +00:00
# zwave:
# usb_path: /dev/ttyACM0
# network_key: !secret zwave_key
#googlehome:
# devices:
# - host: 192.168.7.97
2019-02-21 17:49:55 +00:00
2019-09-07 19:11:00 +00:00
ifttt:
key: !secret IFTTT_API_KEY
2019-02-21 17:49:55 +00:00
### Custom Commands
2018-07-18 17:56:30 +00:00
shell_command:
alarm_off: pkill mpg123
2019-10-06 17:33:32 +00:00
vlc_off: pkill vlc
2018-07-18 17:56:30 +00:00
tornado_alarm: mpg123 /media/audio/Tornado_Siren.mp3
door_chime: mpg123 /media/audio/Store_Door_Chime.mp3
security_alarm: mpg123 /media/audio/security_siren.mp3
security_alarm_intro: mpg123 /media/audio/Siren_Noise.mp3
2019-02-21 17:49:55 +00:00
welcome_haunted: mpg123 /media/audio/Welcome-Hunted.mp3
haunted_guest_welcome: mpg123 /media/audio/haunted_guest_welcome.mp3
2019-10-21 02:01:26 +00:00
haunted_mansion_preshow_full: cvlc --play-and-exit /media/audio/haunted_mansion_preshow_full.mp3
2019-02-21 17:49:55 +00:00
haunted_mansion_preshow_short: mpg123 /media/audio/haunted_mansion_preshow_short.mp3
haunted_mansion_hurry_back_short: mpg123 /media/audio/haunted_mansion_hurry_back_short.mp3
haunted_mansion_hurry_back_full: mpg123 /media/audio/haunted_mansion_hurry_back_full.mp3
happily_ever_after: cvlc --play-and-exit /media/audio/Happily_Ever_After_Audio.mp3
boo_to_you: cvlc --play-and-exit /media/audio/boo_to_you_audio.mp3
haunted_mansion_ride: cvlc --play-and-exit /media/audio/haunted_mansion_ride.mp3
holiday_wishes_preshow: mpg123 /media/audio/wishes_5_min.mp3
holiday_wishes: cvlc --play-and-exit /media/audio/holidaywishes.mp3
disney_springs_xmas: cvlc --play-and-exit /media/audio/disney_springs_xmas.mp3
american_adventure: cvlc --play-and-exit /media/audio/The_American_Adventure.mp3
welcome_show: cvlc --play-and-exit /media/audio/welcome_show.mp3
2019-02-21 17:49:55 +00:00
monorail_waiting: mpg123 /media/audio/monorail_waiting.mp3
monorail_mk: mpg123 /media/audio/monorail.mp3
monorail_resort: mpg123 /media/audio/monorail_resort.mp3
welcome_to_mk: cvlc --play-and-exit /media/audio/welcome_magic_kingdom.mp3
welcome_show_crowd: cvlc --play-and-exit /media/audio/welcome_show_crowd.mp3
spaceship_earth_ride: cvlc --play-and-exit /media/audio/spaceship_earth_ride.mp3
this_is_halloween: cvlc --play-and-exit /media/audio/This_is_Halloween.mp3
sleepy_hollow_audiobook: cvlc --play-and-exit /media/audio/the_legend_of_sleepy_hollow_read_along.mp3
dance_it: cvlc --play-and-exit /media/audio/move_it_shake_dance_audio.mp3
2019-02-21 17:49:55 +00:00
hass_vol_up: sudo amixer set PCM -- $[$(amixer get PCM|grep -o [0-9]*%|sed 's/%//')+5]%
hass_vol_dn: sudo amixer set PCM -- $[$(amixer get PCM|grep -o [0-9]*%|sed 's/%//')-5]%
normal_vol: amixer -c 0 set PCM 93%
tiki_vol: amixer -c 0 set PCM 95%
full_vol: amixer -c 0 set PCM 100%
2019-02-21 17:49:55 +00:00
reset_alexa_cookie: /home/homeassistant/bin/resetalexacookie
tiki_room_audio: cvlc --play-and-exit /media/audio/tiki_room_audio.mp3
illuminations_audio: cvlc --play-and-exit /media/audio/illuminations.mp3
mk_audio: cvlc --play-and-exit /media/audio/magic_kingdom.mp3
usps: python /home/homeassistant/bin/usps.py
2019-02-21 17:49:55 +00:00
backup: python /home/homeassistant/bin/dropbox.py
# haunted noises
haunted_scream: mpg123 /media/audio/haunted/Scream.mp3
haunted_raven: mpg123 /media/audio/haunted/RavenSound.mp3
haunted_door: mpg123 /media/audio/haunted/OldDoorCreaking.mp3
haunted_howling: mpg123 /media/audio/haunted/Howling.mp3
haunted_seance_horn: mpg123 /media/audio/haunted/Haunted_Mansion_Seance_Horn.mp3
haunted_piano: mpg123 /media/audio/haunted/Haunted_Mansion_Piano.mp3
haunted_leotta: mpg123 /media/audio/haunted/Haunted_Mansion_Leotta.mp3
haunted_harp: mpg123 /media/audio/haunted/Haunted_Mansion_Harp.mp3
haunted_clock: mpg123 /media/audio/haunted/Haunted_Mansion_Clock.mp3
haunted_ballroom: mpg123 /media/audio/haunted/Haunted_Mansion_Ballroom.mp3
haunted_bells: mpg123 /media/audio/haunted/Jaunted_Bells-Chimming.mp3
haunted_laugh: mpg123 /media/audio/haunted/Evil_Laugh.mp3
haunted_door2: mpg123 /media/audio/haunted/CreakingDoorSpooky.mp3
haunted_chains: mpg123 /media/audio/haunted/ChainsRattling.mp3
haunted_laugh2: mpg123 /media/audio/haunted/BigLaugh.mp3