Advertisement
Guest User

Untitled

a guest
Jan 16th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 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: xxxxx
  6. longitude: xxxxx
  7. # C for Celcius, F for Fahrenheit
  8. temperature_unit: F
  9. # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  10. time_zone: America/New_York
  11.  
  12. # Checks for available updates
  13. updater:
  14.  
  15. # View all events in a logbook
  16. logbook:
  17.  
  18. # Show links to resources in log and frontend
  19. #introduction:
  20.  
  21. # Enables support for tracking state changes over time.
  22. history:
  23.  
  24. # Track the sun
  25. sun:
  26.  
  27. # Allows you to issue voice commands from the frontend
  28. conversation:
  29.  
  30. # Discover some devices automatically
  31. discovery:
  32.  
  33. # Enables the frontend
  34. frontend:
  35.  
  36. device_tracker:
  37. platform: asuswrt
  38. host: xxxxx
  39. username: xxxxx
  40. password: xxxxx
  41.  
  42. # Example configuration.yaml entry
  43. sensor:
  44. platform: forecast
  45. api_key: xxxxx
  46. monitored_conditions:
  47. - summary
  48. - nearest_storm_distance
  49. - precip_type
  50. - precip_probability
  51. - temperature
  52. - wind_speed
  53. - humidity
  54. - pressure
  55. - visibility
  56.  
  57. camera:
  58. platform: foscam
  59. ip: xxxxxx
  60. name: Living Room Camera
  61. port: 88
  62. username: xxxxx
  63. password: xxxxx
  64.  
  65. thermostat:
  66. platform: nest
  67. username: xxxxx
  68. password: xxxxx
  69.  
  70. group:
  71. living_room_lights: light.living_room_1, light.living_room_2
  72. outside_lights: light.front_lawn, light.front_porch
  73. people: device_tracker.android10e48e56ff44346a, device_tracker.android7f0e90ed6a5bd818, device_tracker.android8784f9703ae15c4a, device_tracker.and$
  74. weather: sensor.weather_humidity, sensor.weather_nearest_storm_distance, sensor.weather_precip, sensor.weather_precip_probability, sensor.weather_$
  75. cameras: camera.living_room_camera
  76. family: device_tracker.android7f0e90ed6a5bd818, device_tracker.android10e48e56ff44346a
  77.  
  78. #device_sun_light_trigger:
  79. # light_group: group.living_room_lights
  80. # device_group: group.people
  81. # disable_turn_off: 1
  82.  
  83. automation:
  84. - alias: 'Rule 1 - Outside lights on at sunset'
  85. trigger:
  86. platform: sun
  87. event: sunset
  88. offset: '-00:30:00'
  89. action:
  90. service: light.turn_on
  91. entity_id: group.outside_lights
  92.  
  93. - alias: 'Rule 2 - Outside lights off at 11pm if no one in living room'
  94. trigger:
  95. platform: time
  96. minutes: 1
  97. condition:
  98. - platform: state
  99. entity_id: group.living_room_lights
  100. state: 'off'
  101. - platform: time
  102. after: '23:00:00'
  103. before: '04:59:59'
  104. action:
  105. service: light.turn_off
  106. entity_id: group.outside_lights
  107.  
  108. - alias: 'Rule 3 - Nest set to away when no one home'
  109. trigger:
  110. platform: state
  111. entity_id: group.people
  112. state: 'not_home'
  113. action:
  114. service: thermostat.set_away_mode
  115. entity_id: thermostat.hallway
  116. data:
  117. away_mode: 'True'
  118.  
  119. - alias: 'Rule 4 - Nest set to home when someone is home'
  120. trigger:
  121. platform: state
  122. entity_id: group.people
  123. state: 'home'
  124. action:
  125. service: thermostat.set_away_mode
  126. entity_id: thermostat.hallway
  127. data:
  128. away_mode: ''
  129.  
  130. - alias: 'Rule 5 - Set all lights on after 5pm when someone comes home'
  131. trigger:
  132. platform: state
  133. entity_id: group.people
  134. state: 'home'
  135. condition:
  136. platform: sun
  137. after: sunset
  138. action:
  139. service: light.turn_on
  140. entity_id: group.all_lights
  141.  
  142. - alias: 'Rule 6 - Set office lamp on if no one is home'
  143. trigger:
  144. platform: state
  145. entity_id: group.people
  146. state: 'not_home'
  147. condition:
  148. platform: sun
  149. after: sunset
  150. action:
  151. service: switch.turn_on
  152. entity_id: switch.office_lamp
  153.  
  154. - alias: 'Rule 7 - Set office lamp off when someone comes home'
  155. trigger:
  156. platform: state
  157. entity_id: group.people
  158. state: 'home'
  159. action:
  160. service: switch.turn_off
  161. entity_id: switch.office_lamp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement