Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | None | 0 0
  1. ################################
  2. configuration.yaml
  3. ################################
  4. homeassistant:
  5. # Name of the location where Home Assistant is running
  6. name: Home
  7. # Location required to calculate the time the sun rises and sets
  8. latitude: -xxxxxxxxxx
  9. longitude: xxxxxxxxxx
  10. # Impacts weather/sunrise data (altitude above sea level in meters)
  11. elevation: 26
  12. # metric for Metric, imperial for Imperial
  13. unit_system: metric
  14. # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  15. time_zone: Australia/Melbourne
  16.  
  17. customize:
  18. # Only the 'entity_id' is required. All other options are optional.
  19. light.gateway_light_f0b429b3e568:
  20. friendly_name: Xiaomi Light
  21. sensor.humidity_158d0001107b4d:
  22. friendly_name: Humidity Lounge
  23. sensor.temperature_158d0001107b4d:
  24. friendly_name: Temperature Lounge
  25.  
  26. zone 2:
  27. name: Home
  28. latitude: -xxxxxxxxxx
  29. longitude: xxxxxxxxxxx
  30. radius: 100
  31. icon: mdi:home
  32.  
  33. zone 3:
  34. name: Work
  35. latitude: -xxxxxxxxxxx
  36. longitude: xxxxxxxxxx
  37. radius: 100
  38. icon: mdi:work
  39.  
  40. # Show links to resources in log and frontend
  41. #introduction:
  42.  
  43. # Enables the frontend
  44. frontend:
  45.  
  46. http:
  47. # Uncomment this to add a password (recommended!)
  48. api_password: test
  49. # Uncomment this if you are using SSL or running in Docker etc
  50. # base_url: example.duckdns.org:8123
  51.  
  52. # Checks for available updates
  53. updater:
  54.  
  55. # Discover some devices automatically
  56. discovery:
  57.  
  58. # Allows you to issue voice commands from the frontend in enabled browsers
  59. conversation:
  60.  
  61. # Enables support for tracking state changes over time.
  62. history:
  63.  
  64. # View all events in a logbook
  65. logbook:
  66.  
  67. # Track the sun
  68. sun:
  69.  
  70. # Weather Prediction
  71. #sensor:
  72. # platform: yr
  73.  
  74. # Text to speech
  75. #tts:
  76. # platform: google
  77.  
  78. media_player:
  79. platform: kodi
  80. host: 192.168.1.50
  81.  
  82. sensor:
  83. - platform: bom
  84. station: IDV60901.95936
  85. name: Melbourne
  86. monitored_conditions:
  87. - air_temp
  88.  
  89. mqtt:
  90. broker: m21.cloudmqtt.com
  91. port: xxxxxxxx
  92. username: ha
  93. password: xxxxxxxx
  94.  
  95.  
  96. device_tracker:
  97. - platform: owntracks
  98.  
  99. xiaomi:
  100. gateways:
  101. - sid:
  102. key: xxxxxxxxxxxxx
  103.  
  104. scene:
  105. - name: Bedroom_normal
  106. entities:
  107. light.bedroom:
  108. state: on
  109. transition: 2
  110. brightness: 150
  111. xy_color: [ 0.4448, 0.4066 ]
  112.  
  113. - name: Bedroom_work
  114. entities:
  115. light.bedroom:
  116. state: on
  117. transition: 2
  118. brightness: 75
  119. xy_color: [ 0.5926, 0.3814 ]
  120.  
  121.  
  122.  
  123. automation:
  124. alias: Turn on bedroom light for work
  125.  
  126. trigger:
  127. platform: time
  128. hours: 22
  129. minutes: 35
  130. seconds: 0
  131.  
  132. action:
  133. service: homeassistant.turn_on
  134. entity_id: script.timed_lamp
  135.  
  136. script: !include scripts.yaml
  137. group: !include groups.yaml
  138.  
  139. ################################################################################
  140. #Groups
  141. ###############################################################################
  142. default_view:
  143. view: yes
  144. entities:
  145. - device_tracker.adam_adam
  146. - device_tracker.silvia_silvia
  147. - sun.sun
  148.  
  149. LivingRoom:
  150. name: Living Room
  151. view: yes
  152. entities:
  153. - light.gateway_light_f0b429b3e568
  154. - light.tv_light
  155. - sensor.humidity_158d0001107b4d
  156. - sensor.temperature_158d0001107b4d
  157. - media_player._samsung_ua32j5500
  158. - media_player.kodi
  159.  
  160. BedRoom:
  161. name: Bedroom
  162. view: yes
  163. entities:
  164. - light.bedroom
  165.  
  166. YolandaRoom:
  167. name: Yolandas Room
  168. view: yes
  169. entities:
  170. - light.yolandas
  171.  
  172. Automations:
  173. name: Automations
  174. view: yes
  175. entities:
  176. - group.all_automations
  177.  
  178.  
  179. ##################################################################################
  180. #scripts
  181. ##################################################################################
  182.  
  183.  
  184. scripts.yaml
  185. timed_lamp:
  186. alias: "Turn on lamp and set timer"
  187. sequence:
  188. # Cancel ev. old timers
  189. - service: script.turn_off
  190. data:
  191. entity_id: script.timer_off
  192. - service: light.turn_on
  193. data:
  194. entity_id: light.bedroom
  195. # Set new timer
  196. - service: script.turn_on
  197. data:
  198. entity_id: script.timer_off
  199.  
  200. timer_off:
  201. alias: "Turn off lamp after 10 minutes"
  202. sequence:
  203. - delay:
  204. minutes: 10
  205. - service: light.turn_off
  206. data:
  207. entity_id: light.bedroom
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement