Advertisement
Guest User

Untitled

a guest
Dec 14th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.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: 1
  6.   longitude: 1
  7.   # Impacts weather/sunrise data (altitude above sea level in meters)
  8.   elevation: 191
  9.   # metric for Metric, imperial for Imperial
  10.   unit_system: metric
  11.   # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  12.   time_zone: Europe/Warsaw
  13.  
  14. # Show links to resources in log and frontend
  15. introduction:
  16. # Enables the frontend
  17. frontend:
  18. http:
  19. # Uncomment this to add a password (recommended!)
  20.   # api_password: admin
  21.  
  22. # Checks for available updates
  23. updater:
  24. # Discover some devices automatically
  25. discovery:
  26. # Allows you to issue voice commands from the frontend in enabled browsers
  27. conversation:
  28. # Enables support for tracking state changes over time.
  29. history:
  30. # View all events in a logbook
  31. logbook:
  32. # Track the sun
  33. sun:
  34. # Weather Prediction
  35.  
  36. # platform: yr
  37.  
  38.  
  39. #MQTT
  40. mqtt:
  41.   broker: localhost
  42.   port: 1883
  43.   client_id: home-assistant-1
  44.   keepalive: 60
  45.   username: jakub
  46.   password: admin
  47.   protocol: 3.1
  48.  
  49.  
  50. sensor:
  51.   - platform: mqtt
  52.     name: "temperature"
  53.     state_topic: "temperature"
  54.     unit_of_measurement: "No."
  55.   - platform: mqtt
  56.     name: "humidity"
  57.     state_topic: "humidity"
  58.     unit_of_measurement: "No."
  59.  
  60.  
  61.  
  62. alarm_control_panel:
  63.   - platform: mqtt
  64.     name: Button alarm
  65.     state_topic: "alarm/big_red_button"
  66.     command_topic: "alarm/big_red_button/set"
  67.     payload_disarm: "disarmed"
  68.   - platform: mqtt
  69.     name: "gas alarm"
  70.     state_topic: "MQ2"
  71.     command_topic: "MQ2"
  72.     payload_disarm: "disarmed"
  73.   - platform: mqtt
  74.     name: "motion"
  75.     state_topic: "MS"
  76.     command_topic: "MS"
  77.     payload_disarm: "disarmed"
  78.  
  79.  
  80.  
  81. binary_sensor:
  82.   - platform: rpi_gpio
  83.     ports:
  84.       21: Button alarm
  85.     invert_logic: TRUE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement