Advertisement
5c00by

HA config

Mar 15th, 2018
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 10.69 KB | None | 0 0
  1. homeassistant:
  2.  # Name of the location where Home Assistant is running
  3.   name: Home
  4.   # Location required to calculate the time the sun rises and sets
  5.   latitude: 99.999
  6.   longitude: -99.999
  7.   # Impacts weather/sunrise data (altitude above sea level in meters)
  8.   elevation: 224
  9.   # metric for Metric, imperial for Imperial
  10.   unit_system: imperial
  11.   # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  12.   time_zone: America/New_York
  13.   # Customization file
  14.   customize: !include customize.yaml
  15.  
  16. # Show links to resources in log and frontend
  17. introduction:
  18. # Enables the frontend
  19. frontend:
  20.   themes:
  21.     dark_theme:
  22.      # Main colors
  23.       primary-color: '#5294E2'                                                        # Header
  24.       accent-color: '#E45E65'                                                         # Accent color
  25.       dark-primary-color: 'var(--accent-color)'                                       # Hyperlinks
  26.       light-primary-color: 'var(--accent-color)'                                      # Horizontal line in about
  27.       # Text colors
  28.       primary-text-color: '#FFFFFF'                                                   # Primary text colour, here is referencing dark-primary-color
  29.       text-primary-color: 'var(--primary-text-color)'                                 # Primary text colour
  30.       secondary-text-color: '#5294E2'                                                 # For secondary titles in more info boxes etc.
  31.       disabled-text-color: '#7F848E'                                                  # Disabled text colour
  32.       label-badge-border-color: 'green'                                               # Label badge border, just a reference value
  33.       # Background colors
  34.       primary-background-color: '#383C45'                                             # Settings background
  35.       secondary-background-color: '#383C45'                                           # Main card UI background
  36.       divider-color: 'rgba(0, 0, 0, .12)'                                             # Divider
  37.       # Table rows
  38.       table-row-background-color: '#353840'                                           # Table row
  39.       table-row-alternative-background-color: '#3E424B'                               # Table row alternative
  40.       # Nav Menu
  41.       paper-listbox-color: '#5294E2'                                                  # Navigation menu selection hoover
  42.       paper-listbox-background-color: '#2E333A'                                       # Navigation menu background
  43.       paper-grey-50: 'var(--primary-text-color)'
  44.       paper-grey-200: '#414A59'                                                       # Navigation menu selection
  45.       # Paper card
  46.       paper-card-header-color: 'var(--accent-color)'                                  # Card header text colour
  47.       paper-card-background-color: '#434954'                                          # Card background colour
  48.       paper-dialog-background-color: '#434954'                                        # Card dialog background colour
  49.       paper-item-icon-color: 'var(--primary-text-color)'                              # Icon color
  50.       paper-item-icon-active-color: '#F9C536'                                         # Icon color active
  51.       paper-item-icon_-_color: 'green'
  52.       paper-item-selected_-_background-color: '#434954'                               # Popup item select
  53.       paper-tabs-selection-bar-color: 'green'
  54.       # Labels
  55.       label-badge-red: 'var(--accent-color)'                                          # References the brand colour label badge border
  56.       label-badge-text-color: 'var(--primary-text-color)'                             # Now same as label badge border but that's a matter of taste
  57.       label-badge-background-color: '#2E333A'                                         # Same, but can also be set to transparent here
  58.       # Switches
  59.       paper-toggle-button-checked-button-color: 'var(--accent-color)'
  60.       paper-toggle-button-checked-bar-color: 'var(--accent-color)'
  61.       paper-toggle-button-checked-ink-color: 'var(--accent-color)'
  62.       paper-toggle-button-unchecked-button-color: 'var(--disabled-text-color)'
  63.       paper-toggle-button-unchecked-bar-color: 'var(--disabled-text-color)'
  64.       paper-toggle-button-unchecked-ink-color: 'var(--disabled-text-color)'
  65.       # Sliders
  66.       paper-slider-knob-color: 'var(--accent-color)'
  67.       paper-slider-knob-start-color: 'var(--accent-color)'
  68.       paper-slider-pin-color: 'var(--accent-color)'
  69.       paper-slider-active-color: 'var(--accent-color)'
  70.       paper-slider-container-color: 'linear-gradient(var(--primary-background-color), var(--secondary-background-color)) no-repeat'
  71.       paper-slider-secondary-color: 'var(--secondary-background-color)'
  72.       paper-slider-disabled-active-color: 'var(--disabled-text-color)'
  73.       paper-slider-disabled-secondary-color: 'var(--disabled-text-color)'
  74.       # Google colors
  75.       google-red-500: '#E45E65'
  76.       google-green-500: '#39E949'
  77.  
  78. # Enables configuration UI
  79. config:
  80. http:
  81.  # Secrets are defined in the file secrets.yaml
  82.   # api_password: !secret
  83.   # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  84.   # base_url: example.duckdns.org:8123
  85.  
  86. # Checks for available updates
  87. # Note: This component will send some information about your system to
  88. # the developers to assist with development of Home Assistant.
  89. # For more information, please see:
  90. # https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
  91. updater:
  92.  # Optional, allows Home Assistant developers to focus on popular components.
  93.   # include_used_components: true
  94.  
  95. # Discover some devices automatically
  96. discovery:
  97. # Allows you to issue voice commands from the frontend in enabled browsers
  98. conversation:
  99. # Enables support for tracking state changes over time
  100. history:
  101. # View all events in a logbook
  102. logbook:
  103. # Enables a map showing the location of tracked devices
  104. map:
  105. # Track the sun
  106. sun:
  107. # Weather prediction
  108. sensor:
  109.   platform: yr
  110.   monitored_conditions:
  111.      - temperature
  112.       - symbol
  113.       - precipitation
  114.       - windSpeed
  115.       - pressure
  116.       - windDirection
  117.       - humidity
  118.       - fog
  119.       - cloudiness
  120.       - lowClouds
  121.       - mediumClouds
  122.       - highClouds
  123.       - dewpointTemperature
  124.  
  125. # Text to speech
  126. tts:
  127.   - platform: google
  128.  
  129. group: !include groups.yaml
  130. automation: !include automations.yaml
  131. script: !include scripts.yaml
  132. notify:
  133.   - platform: nfandroidtv
  134.     name: Master Bedroom
  135.     host: 192.168.0.107
  136.  
  137. sensor SpeedTest:
  138.   - platform: speedtest
  139.     monitored_conditions:
  140.      - ping
  141.       - download
  142.       - upload
  143.    
  144. sensor TravelTime:
  145.   - platform: google_travel_time
  146.     api_key: !secret
  147.     name: Home to Work
  148.     origin: ******
  149.     destination: ******
  150.  
  151. sensor HaveIBeenPWND:
  152.   platform: haveibeenpwned
  153.   email:
  154.     - ******@gmail.com
  155.     - ******@gmail.com
  156.     - ********@outlook.com
  157.     - ********@gmail.com
  158.    
  159. google:
  160.   client_id: *********
  161.   client_secret: *******
  162.  
  163. android_ip_webcam 1:
  164.   - host: 192.168.0.104
  165.     port: 8080
  166.     name: Alpha
  167.     username: Alpha
  168.     password: !secret
  169.     sensors:
  170.     - audio connections
  171.      - Battery_level
  172.      - Battery_temp
  173.      - Battery_voltage
  174.      - light
  175.      - motion
  176.      - pressure
  177.     switches:
  178.     - focus
  179.      - night_vision
  180.      - torch
  181.      - video_recording
  182.      
  183. android_ip_webcam 2:
  184.   - host: 192.168.0.108
  185.     port: 8080
  186.     name: Beta
  187.     username: Beta
  188.     password: !secret
  189.     sensors:
  190.     - audio connections
  191.      - Battery_level
  192.      - Battery_temp
  193.      - Battery_voltage
  194.      - light
  195.      - motion
  196.      - pressure
  197.     switches:
  198.     - focus
  199.      - night_vision
  200.      - torch
  201.      - video_recording
  202.    
  203. android_ip_webcam 3:
  204.   - host: 192.168.0.112
  205.     port: 8080
  206.     name: Theta
  207.     username: Theta
  208.     password: !secret
  209.     sensors:
  210.     - audio connections
  211.      - Battery_level
  212.      - Battery_temp
  213.      - Battery_voltage
  214.      - light
  215.      - motion
  216.      - pressure
  217.     switches:
  218.     - focus
  219.      - night_vision
  220.      - torch
  221.      - video_recording
  222.    
  223. android_ip_webcam 4:
  224.   - host: 192.168.0.117
  225.     port: 8080
  226.     name: Delta  
  227.     username: Delta
  228.     password: !secret
  229.     sensors:
  230.     - audio connections
  231.      - Battery_level
  232.      - Battery_level
  233.      - Battery_voltage
  234.      - light
  235.      - motion
  236.      - pressure
  237.     switches:
  238.     - focus
  239.      - night_vision
  240.      - torch
  241.      - video_recording
  242.  
  243. panel_iframe:
  244.   - configurator:
  245.     title: Configurator
  246.     icon: mdi:wrench
  247.     url: http://192.168.0.100:3128
  248.   - terminal:
  249.     title: Terminal
  250.     icon: mdi:console-line
  251.     url: http://192.168.0.100:7681
  252.  
  253. sensor uptime:
  254.   - platform: uptime
  255.  
  256. sensor season:
  257.   - platform: season
  258.     type: astronomical
  259.  
  260. sensor clockspeed:
  261.   - platform: cpuspeed
  262.  
  263. sensor battery:
  264.   - platform: linux_battery
  265.  
  266. sensor pihole:
  267.   - platform: pi_hole
  268.  
  269. binary_sensor:
  270.   - platform: iss
  271.     show_on_map: false
  272.  
  273. camera:
  274.   - platform: generic
  275.     name: ISS
  276.     still_image_url: https://maps.googleapis.com/maps/api/staticmap?center={{ states.binary_sensor.iss.attributes.lat }},{{ states.binary_sensor.iss.attributes.long }}&zoom=5&size=500x500&maptype=roadmap&markers=color:blue%7Clabel:P%7C{{ states.binary_sensor.iss.attributes.lat }},{{ states.binary_sensor.iss.attributes.long }}
  277.     limit_refetch_to_url_change: true    
  278.    
  279. sensor crypto_currency:
  280.   - platform: coinmarketcap
  281.  
  282.  
  283. sensor West coast time:
  284.   - platform: worldclock
  285.     time_zone: America/Los_Angeles
  286.    
  287. sensor Overhead flights:
  288.   - platform: opensky
  289.     radius: 50
  290.    
  291. sensor Moon Phase:
  292.   - platform: moon
  293.  
  294.  
  295. sensor lyft_rates:
  296.   - platform: lyft
  297.     client_id: ******
  298.     client_secret: *****
  299.     start_latitude: 99.9999
  300.     start_longitude:99.9999
  301.     end_latitude: 99.9999
  302.     end_longitude: 99.99999
  303.     product_ids: lyft
  304.    
  305. zone 1:
  306.   name: Home
  307.   latitude: 99.99999
  308.   longitude: 99.99999
  309.   radius: 75
  310.   icon: mdi:house-variant
  311.  
  312. zone 2:
  313.   name: Work
  314.   latitude: 99.9999
  315.   longitude: 99.9999
  316.  
  317. zone 3:
  318.   name: !
  319.   latitude: 00.000
  320.   longitude: -00.00000
  321.   radius: 75
  322.   icon: mdi:house-variant
  323.  
  324. media_player:
  325.   - platform: roku
  326.  
  327. zwave:
  328.   usb_path: /dev/ttyACM0
  329.  
  330. device_tracker:
  331.   - platform: nmap_tracker
  332.     hosts: 192.168.1.0/24
  333.  
  334. alarmdecoder:
  335.   device:
  336.     type: serial
  337.     baudrate: '115200'
  338.   panel_display: On
  339.   zones:
  340.     '01':
  341.       name: 'Garage Door'
  342.       type: 'opening'
  343.     '02':
  344.       name: 'Front Door'
  345.       type: 'opening'
  346.     '03':
  347.       name: 'Kitchen Door'
  348.       type: 'opening'
  349.     '04':
  350.       name: 'Service Door'
  351.       type: 'opening'
  352.     '06':
  353.       name: 'Motion Sensor'
  354.       type: 'motion'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement