Advertisement
grooverut

configuration.yaml

Nov 21st, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.28 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: xx.xx
  6.   longitude: xx.xx
  7.  
  8.   # Impacts weather/sunrise data (altitude above sea level in meters)
  9.   elevation: xxx
  10.   # metric for Metric, imperial for Imperial
  11.   unit_system: imperial
  12.   # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  13.   time_zone: America/New_York
  14.  
  15. # Show links to resources in log and frontend
  16. introduction:
  17. # Enables the frontend
  18. frontend:
  19. http:
  20.  # Uncomment this to add a password (recommended!)
  21.   # api_password: redacted
  22.  
  23. mqtt:
  24.   username: ha
  25.   password: redacted
  26.   broker: 127.0.0.1
  27.   port: 1883
  28.  
  29. # Checks for available updates
  30. updater:
  31. cover:
  32.   - platform: mqtt
  33.     friendly_name: Garage 1
  34.     name: "Garage 1 Door"
  35.     state_topic: "home/garage1/door"
  36.     command_topic: "home/garage1/button"
  37.     payload_open: "OPENDOOR"
  38.     payload_close: "OPENDOOR"
  39.     payload_stop: "OPENDOOR"
  40.     optimistic: false
  41.     retain: false
  42.     value_template: '{{ value }}'
  43.  
  44.   - platform: mqtt
  45.     friendly_name: Garage 2
  46.     name: "Garage 2 Door"
  47.     state_topic: "home/garage2/door"
  48.     command_topic: "home/garage2/button"
  49.     payload_open: "OPENDOOR"
  50.     payload_close: "OPENDOOR"
  51.     payload_stop: "OPENDOOR"
  52.     optimistic: false
  53.     retain: false
  54.     value_template: '{{ value }}'
  55.  
  56. # Discover some devices automatically
  57. #discovery:
  58.  
  59. # Allows you to issue voice commands from the frontend in enabled browsers
  60. conversation:
  61. # Enables support for tracking state changes over time.
  62. history:
  63. # View all events in a logbook
  64. logbook:
  65. # Track the sun
  66. #sun:
  67.  
  68. # Weather Prediction
  69. sensor:
  70.   - platform: systemmonitor
  71.     resources:
  72.     - type: disk_use_percent
  73.       arg: h:\
  74.     - type: memory_use_percent
  75.     - type: processor_use
  76.     - type: last_boot
  77.  
  78.   - platform: wunderground
  79.     api_key: redacted
  80.     monitored_conditions:
  81.      - precip_today_in
  82.       - temp_f
  83.       - feelslike_f
  84.       - weather
  85.       - wind_mph
  86.  
  87.   - platform: mqtt
  88.     state_topic: "home/garage3/memory"
  89.     name: "G3 Mem"
  90.     unit_of_measurement: "b"
  91.     value_template: '{{ value }}'
  92.  
  93. camera:
  94.   - platform: mjpeg
  95.     mjpeg_url: http://192.168.1.100:8080/videostream.cgi?user=admin&pwd=redacted
  96.     name: Baby Cam
  97.  
  98.   - platform: mjpeg
  99.     mjpeg_url: http://192.168.1.102:8081/video
  100.     name: Basement Cam
  101.     username: admin
  102.     password: redacted
  103.  
  104. automation:
  105.   - alias: 'Garage door still open'
  106.     trigger:
  107.       platform: state
  108.       entity_id: cover.garage_1_door
  109.       from: 'open'
  110.       to: 'closed'
  111.     action:
  112.       service: homeassistant.turn_on
  113.       entity_id: script.garage_door_alarm
  114.  
  115.   - alias: 'Garage door was closed'
  116.     trigger:
  117.       platform: state
  118.       entity_id: cover.garage_1_door
  119.       from: 'closed'
  120.       to: 'open'
  121.     action:
  122.       service: homeassistant.turn_off
  123.       entity_id: script.garage_door_alarm
  124.  
  125. script:
  126.   garage_door_alarm:
  127.     alias: "Garage door alarm"
  128.     sequence:
  129.      - delay:
  130.          minutes: 1
  131.      - service: notify.notify
  132.        data:
  133.          message: 'The garage door is still open'
  134. #         target: 'channel/EDITEDOUT'
  135.  
  136. notify:
  137.   - platform: pushbullet
  138.     api_key: redacted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement