Advertisement
Guest User

configuration

a guest
Mar 24th, 2018
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.39 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: 43.0286
  6. longitude: -89.5181
  7. # Impacts weather/sunrise data (altitude above sea level in meters)
  8. elevation: 320
  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. customize: !include customize.yaml
  14. packages: !include_dir_named packages
  15.  
  16. # Show links to resources in log and frontend
  17. introduction:
  18.  
  19. # Enables the frontend
  20. frontend:
  21.  
  22. cover: ## this makes the garage door card appear in HA
  23. - platform: mqtt
  24. name: "garage"
  25. state_topic: "sensor/garage/state1"
  26. command_topic: "sensor/garage/action1"
  27. payload_open: "OPEN"
  28. payload_close: "OPEN"
  29. payload_stop: "OPEN"
  30. state_open: "open"
  31. state_closed: "closed"
  32. optomistic: false
  33. retain: false
  34.  
  35. automation old:
  36. - alias: "Led Motion Light"
  37. trigger:
  38. - platform: state
  39. entity_id: sensor.sn1_pir
  40. from: 'standby'
  41. to: 'motion detected'
  42. action:
  43. - service: homeassistant.turn_on
  44. entity_id: script.timed_lamp_dining_room
  45.  
  46. - alias: "led Motion Light Off"
  47. trigger:
  48. - platform: state
  49. entity_id: sensor.sn1_pir
  50. from: 'motion detected'
  51. to: 'standby'
  52. action:
  53. - service: homeassistant.turn_on
  54. entity_id: script.timer_off_dining_room
  55.  
  56. automation old2:
  57. - alias: "Led Motion Light"
  58. trigger:
  59. - platform: state
  60. entity_id: sensor.sn2_pir
  61. from: 'standby'
  62. to: 'motion detected'
  63. action:
  64. - service: homeassistant.turn_on
  65. entity_id: script.timed_lamp_dining_room
  66.  
  67. - alias: "led Motion Light Off"
  68. trigger:
  69. - platform: state
  70. entity_id: sensor.sn2_pir
  71. from: 'motion detected'
  72. to: 'standby'
  73. action:
  74. - service: homeassistant.turn_on
  75. entity_id: script.timer_off_dining_room
  76.  
  77. ifttt:
  78. key: dI7S7UpfkV-aUP2OTc0Y4f
  79.  
  80. media_player:
  81. platform: emby
  82. host: 192.168.0.192:8096
  83. api_key: "emby_api_key"
  84.  
  85. mqtt:
  86. broker: 192.168.0.106
  87. port: 1883
  88. username: James
  89. password: Xnormal23
  90.  
  91. light:
  92. - platform: mqtt_json
  93. name: "Porch"
  94. state_topic: "bruh/porch"
  95. command_topic: "bruh/porch/set"
  96. effect: true
  97. effect_list:
  98. - bpm
  99. - candy cane
  100. - confetti
  101. - cyclon rainbow
  102. - dots
  103. - fire
  104. - glitter
  105. - juggle
  106. - lightning
  107. - noise
  108. - police all
  109. - police one
  110. - rainbow
  111. - rainbow with glitter
  112. - ripple
  113. - sinelon
  114. - solid
  115. - twinkle
  116. brightness: true
  117. flash: true
  118. rgb: true
  119. optimistic: false
  120. qos: 0
  121.  
  122. input_number:
  123. porch_animation_speed:
  124. name: Porch Animation Speed
  125. initial: 150
  126. min: 1
  127. max: 150
  128. step: 10
  129.  
  130. dining_room_delay:
  131. name: led wall Light Delay
  132. initial: 1
  133. min: 0
  134. max: 20
  135. step: 0.5
  136.  
  137. automation:
  138. - alias: "Porch Animation Speed"
  139. initial_state: True
  140. hide_entity: False
  141. trigger:
  142. - platform: state
  143. entity_id: input_number.porch_animation_speed
  144. action:
  145. - service: mqtt.publish
  146. data_template:
  147. topic: "bruh/porch/set"
  148. payload: '{"transition":{{ trigger.to_state.state | int }}}'
  149.  
  150. switch:
  151. platform: mqtt
  152. name: "Outlet"
  153. command_topic: "cmnd/Outlet/power"
  154. state_topic: "stat/Outlet/POWER"
  155. qos: 1
  156. payload_on: "ON"
  157. payload_off: "OFF"
  158. retain: true
  159.  
  160. panel_iframe:
  161. configurator:
  162. title: Configurator
  163. icon: mdi:wrench
  164. url: http://192.168.0.106:3218
  165. # Enables configuration UI
  166. config:
  167.  
  168. http:
  169. # Secrets are defined in the file secrets.yaml
  170. #api_password: Xnormal23 !secret http_password
  171. # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  172. # Checks for available updates
  173. # Note: This component will send some information about your system to
  174. # the developers to assist with development of Home Assistant.
  175. # For more information, please see:
  176. # https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
  177. updater:
  178. # Optional, allows Home Assistant developers to focus on popular components.
  179. # include_used_components: true
  180.  
  181. # Discover some devices automatically
  182. discovery:
  183.  
  184. # Allows you to issue voice commands from the frontend in enabled browsers
  185. conversation:
  186.  
  187. # Enables support for tracking state changes over time
  188. history:
  189.  
  190. # Tracked history is kept for 10 days
  191. recorder:
  192. purge_keep_days: 10
  193.  
  194. # View all events in a logbook
  195. logbook:
  196.  
  197. # Enables a map showing the location of tracked devices
  198. map:
  199.  
  200. # Track the sun
  201. sun:
  202.  
  203. # Weather prediction
  204. sensor:
  205. - platform: yr
  206. - platform: mqtt
  207. state_topic: "bruh/sensornode1"
  208. name: "SN1 Humidity"
  209. unit_of_measurement: "%"
  210. value_template: '{{ value_json.humidity | round(1) }}'
  211.  
  212. - platform: mqtt
  213. state_topic: "bruh/sensornode1"
  214. name: "SN1 LDR"
  215. unit_of_measurement: "LUX"
  216. value_template: '{{ value_json.ldr }}'
  217.  
  218. - platform: mqtt
  219. state_topic: "bruh/sensornode1"
  220. name: "SN1 PIR"
  221. value_template: '{{ value_json.motion }}'
  222.  
  223. - platform: mqtt
  224. state_topic: "bruh/sensornode2"
  225. name: "SN1 Temperature"
  226. unit_of_measurement: "°F"
  227. value_template: '{{ value_json.temperature | round(1) }}'
  228.  
  229. - platform: yr
  230. - platform: mqtt
  231. state_topic: "bruh/sensornode2"
  232. name: "SN2 Humidity"
  233. unit_of_measurement: "%"
  234. value_template: '{{ value_json.humidity | round(1) }}'
  235.  
  236. - platform: mqtt
  237. state_topic: "bruh/sensornode2"
  238. name: "SN2 LDR"
  239. ##This sensor is not calibrated to actual LUX. Rather, this a map of the input voltage ranging from 0 - 1023.
  240. unit_of_measurement: "LUX"
  241. value_template: '{{ value_json.ldr }}'
  242.  
  243. - platform: mqtt
  244. state_topic: "bruh/sensornode2"
  245. name: "SN2 PIR"
  246. value_template: '{{ value_json.motion }}'
  247.  
  248. - platform: mqtt
  249. state_topic: "bruh/sensornode2"
  250. name: "SN2 Temperature"
  251. unit_of_measurement: "°F"
  252. value_template: '{{ value_json.temperature | round(1) }}'
  253.  
  254. # Text to speech
  255. tts:
  256. - platform: google
  257.  
  258. # Cloud
  259. cloud:
  260.  
  261. group:
  262. Motion Light:
  263. name: Motion Setting
  264. entities:
  265. - script.timed_lamp_dining_room
  266. - script.timer_off_dining_room
  267. - input_number.dining_room_delay
  268. - automation.led_motion_light
  269. - automation.led_motion_light_off
  270.  
  271. light_node_1_card:
  272. name: Led Light
  273. entities:
  274. - light.porch
  275. - automation.porch_animation_speed
  276. - input_number.porch_animation_speed
  277.  
  278. sensor_node_1_card:
  279. name: Sensor Node 1
  280. entities:
  281. - sensor.sn1_temperature
  282. - sensor.sn1_humidity
  283. - sensor.sn1_ldr
  284. - sensor.sn1_pir
  285. - light.sn1_led
  286.  
  287. sensor_node_2_card:
  288. name: Sensor Node 2
  289. entities:
  290. - sensor.sn2_temperature
  291. - sensor.sn2_humidity
  292. - sensor.sn2_ldr
  293. - sensor.sn2_pir
  294. - light.sn2_led
  295.  
  296. script: !include scripts.yaml
  297.  
  298. customize:
  299. cover.garage:
  300. device_class: garage
  301. friendly_name: Garage 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement