Advertisement
Efighter

Configuration.yaml

Dec 9th, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.89 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: 29.7081
  6.   longitude: -98.4786
  7.   # Impacts weather/sunrise data (altitude above sea level in meters)
  8.   elevation: 389
  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/Chicago
  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. # Enables configuration UI
  21. config:
  22. http:
  23.  # Secrets are defined in the file secrets.yaml
  24.   # api_password: !secret http_password
  25.   # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  26.   # base_url: example.duckdns.org:8123
  27.  
  28. # Checks for available updates
  29. # Note: This component will send some information about your system to
  30. # the developers to assist with development of Home Assistant.
  31. # For more information, please see:
  32. # https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
  33. updater:
  34.  # Optional, allows Home Assistant developers to focus on popular components.
  35.   # include_used_components: true
  36.  
  37. # Discover some devices automatically
  38. discovery:
  39. # Allows you to issue voice commands from the frontend in enabled browsers
  40. conversation:
  41. # Enables support for tracking state changes over time
  42. history:
  43. # View all events in a logbook
  44. logbook:
  45. # Enables a map showing the location of tracked devices
  46. map:
  47. # Track the sun
  48. sun:
  49. # Weather prediction
  50. sensor:
  51.   - platform: yr
  52.   - platform: time_date
  53.     display_options:
  54.      - 'date_time'
  55.  
  56. # Text to speech
  57. tts:
  58.   - platform: google
  59.  
  60. # Cloud
  61. cloud:
  62. group: !include groups.yaml
  63. automation: !include automations.yaml
  64. script: !include scripts.yaml
  65.  
  66. nest:
  67.   client_id: !secret SE_NestClientID
  68.   client_secret: !secret SE_NestClientSecret
  69.  
  70. media_player:
  71.   - platform: plex
  72.  
  73. cover:
  74.   - platform: myq
  75.     username: !secret SE_MyQ_Username
  76.     password: !secret SE_MyQ_Password
  77.     type: chamberlain
  78.  
  79. zwave:
  80.   usb_path: /dev/ttyACM0
  81. #  usb_path: /dev/ttyACM0
  82. #  usb_path: /dev/ttyACM0
  83.  
  84. notify:
  85.   - name: NOTIFIER_NAME
  86.     platform: pushbullet
  87.     api_key: !secret SE_PushbulletAccessToken
  88.  
  89. ############################################
  90. #
  91. #   Automations
  92. #
  93. ############################################
  94. automation old:
  95. - alias: Turn ON lights at sunset
  96.   trigger:
  97.     platform: sun
  98.     event: sunset
  99.   action:
  100.     - service: notify.NOTIFIER_NAME
  101.       data:
  102.         title: The Sun has Set
  103.         message: The Sun is below the horizon and lights are on
  104.     - service: switch.turn_on
  105.       entity_id: switch.ge_12722_onoff_relay_switch_switch_2
  106.     - service: switch.turn_on
  107.       entity_id: switch.ge_12722_onoff_relay_switch_switch_3
  108. - alias: Turn Off lights at sunrise
  109.   trigger:
  110.     platform: sun
  111.     event: sunrise
  112.   action:
  113.     - service: notify.NOTIFIER_NAME
  114.       data:
  115.         title: The Sun has Risen
  116.         message: The Sun is above the horizon and lights are off
  117.     - service: switch.turn_off
  118.       entity_id: switch.ge_12722_onoff_relay_switch_switch_2
  119.     - service: switch.turn_off
  120.       entity_id: switch.ge_12722_onoff_relay_switch_switch_3
  121. - alias: Startup Notification
  122.   trigger:
  123.     event: start
  124.     platform: homeassistant
  125.   action:
  126.     - service: notify.NOTIFIER_NAME
  127.       data:
  128.         title: HAAS has Started
  129.         message: Olympus is now online
  130. - alias: Start Holiday lights
  131.   trigger:
  132.       platform: time
  133.       hours: 17
  134.       minutes: 15
  135.       seconds: 00
  136.   action:
  137.     - service: switch.turn_on
  138.       entity_id: switch.ge_12722_onoff_relay_switch_switch
  139. - alias: Stop Holiday lights
  140.   trigger:
  141.       platform: time
  142.       hours: 23
  143.       minutes: 35
  144.       seconds: 00
  145.   action:
  146.     - service: switch.turn_off
  147.       entity_id: switch.ge_12722_onoff_relay_switch_switch
  148. - alias: Start xmas Tree
  149.   trigger:
  150.       platform: time
  151.       hours: 06
  152.       minutes: 00
  153.       seconds: 00
  154.   action:
  155.     - service: switch.turn_on
  156.       entity_id: switch.ge_12721_lighting_control_duplex_receptacle_switch
  157. - alias: Start xmas Tree evening
  158.   trigger:
  159.       platform: time
  160.       hours: 17
  161.       minutes: 01
  162.       seconds: 00
  163.   action:
  164.     - service: switch.turn_on
  165.       entity_id: switch.ge_12721_lighting_control_duplex_receptacle_switch
  166. - alias: Stop xmas Tree
  167.   trigger:
  168.       platform: time
  169.       hours: 23
  170.       minutes: 13
  171.       seconds: 00
  172.   action:
  173.     - service: switch.turn_off
  174.       entity_id: switch.ge_12721_lighting_control_duplex_receptacle_switch
  175. - alias: Stop xmas Tree work
  176.   trigger:
  177.       platform: time
  178.       hours: 07
  179.       minutes: 55
  180.       seconds: 00
  181.   action:
  182.     - service: switch.turn_off
  183.       entity_id: switch.ge_12721_lighting_control_duplex_receptacle_switch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement