Guest User

HASS_CONFIGURATION_YAML

a guest
Mar 28th, 2018
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.06 KB | None | 0 0
  1. homeassistant:
  2.   name: Home
  3.   latitude: 22.5697
  4.   longitude: 88.3697
  5.   elevation: 0
  6.   unit_system: metric
  7.   time_zone: Asia/Kolkata
  8.   customize: !include customize.yaml
  9.  
  10.  
  11.  
  12. frontend:
  13. # Enables configuration UI
  14. config:
  15.  
  16. mqtt:
  17.     broker: core-mosquitto
  18.     username: omnibuz
  19.     password: omnibuz
  20.    
  21. switch LOCK:
  22.   - platform: mqtt
  23.     command_topic: "house/doorlock/"
  24.     stat_topic: "house/doorlock/RESULT"
  25.     name: 'DOOR LOCK'
  26.     qos: 1
  27.     payload_on: "1"
  28.     payload_off: "0"
  29.     retain: true
  30.  
  31. switch DUAL:
  32.   - platform: mqtt
  33.     command_topic: "cmnd/dual/POWER1"
  34.     stat_topic: "stat/dual/POWER1"
  35.     name: 'DUAL Switch 1'
  36.     qos: 1
  37.     payload_on: "ON"
  38.     payload_off: "OFF"
  39.     retain: true
  40.  
  41.   - platform: mqtt
  42.     command_topic: "cmnd/dual/POWER2"
  43.     stat_topic: "stat/dual/POWER2"
  44.     name: 'DUAL Switch 2'
  45.     qos: 1
  46.     payload_on: "ON"
  47.     payload_off: "OFF"
  48.     retain: true
  49.    
  50.    
  51. switch QUAD:
  52.   - platform: mqtt
  53.     command_topic: "cmnd/quad/POWER1"
  54.     stat_topic: "stat/quad/POWER1"
  55.     name: 'QUAD Switch 1'
  56.     qos: 1
  57.     payload_on: "ON"
  58.     payload_off: "OFF"
  59.     retain: true
  60.  
  61.   - platform: mqtt
  62.     command_topic: "cmnd/quad/POWER2"
  63.     stat_topic: "stat/quad/POWER2"
  64.     name: 'QUAD Switch 2'
  65.     qos: 1
  66.     payload_on: "ON"
  67.     payload_off: "OFF"
  68.     retain: true
  69.  
  70.   - platform: mqtt
  71.     command_topic: "cmnd/quad/POWER3"
  72.     stat_topic: "stat/quad/POWER3"
  73.     name: 'QUAD Switch 3'
  74.     qos: 1
  75.     payload_on: "ON"
  76.     payload_off: "OFF"
  77.     retain: true
  78.  
  79.   - platform: mqtt
  80.     command_topic: "cmnd/quad/POWER4"
  81.     stat_topic: "stat/quad/POWER4"
  82.     name: 'QUAD Switch 4'
  83.     qos: 1
  84.     payload_on: "ON"
  85.     payload_off: "OFF"
  86.     retain: true
  87.  
  88.  
  89. switch TOUCH_3CH:
  90.   - platform: mqtt
  91.     command_topic: "cmnd/touch3ch/POWER1"
  92.     stat_topic: "stat/touch3ch/POWER1"
  93.     name: 'TOUCH Switch 1'
  94.     qos: 1
  95.     payload_on: "ON"
  96.     payload_off: "OFF"
  97.     retain: true
  98.  
  99.   - platform: mqtt
  100.     command_topic: "cmnd/touch3ch/POWER2"
  101.     stat_topic: "stat/touch3ch/POWER2"
  102.     name: 'TOUCH Switch 2'
  103.     qos: 1
  104.     payload_on: "ON"
  105.     payload_off: "OFF"
  106.     retain: true
  107.  
  108.   - platform: mqtt
  109.     command_topic: "cmnd/touch3ch/POWER3"
  110.     stat_topic: "stat/touch3ch/POWER3"
  111.     name: 'TOUCH Switch 3'
  112.     qos: 1
  113.     payload_on: "ON"
  114.     payload_off: "OFF"
  115.     retain: true
  116.  
  117. switch CIRCLE_BULB:
  118.   - platform: mqtt
  119.     command_topic: "cmnd/circleBulb/POWER"
  120.     stat_topic: "stat/circleBulb/POWER"
  121.     name: 'BULB Switch 1'
  122.     qos: 1
  123.     payload_on: "ON"
  124.     payload_off: "OFF"
  125.     retain: true
  126.  
  127. sensor:
  128.   - platform: mqtt
  129.     name: "MOTION"
  130.     state_topic: "tele/sensorBridge/power/RESULT"
  131.     #command_topic: "cmnd/tele/sensor/power/RESULT"
  132.     value_template: >
  133.         {% if value_json["RfReceived"]["Data"] == "B64409" %}
  134.         ALERT!
  135.         {% else %}
  136.         OK
  137.         {% endif %}
  138.     expire_after: 10
  139.     device_class: motion
  140.    
  141.   - platform: mqtt
  142.     name: "SMOKE"
  143.     state_topic: "tele/sensorBridge/power/RESULT"
  144.     #command_topic: "cmnd/tele/sensor/power/RESULT"
  145.     value_template: '{% if value_json["RfReceived"]["Data"] == "6E505B" %} ALERT!{% else %}OK{% endif %}'
  146.     expire_after: 10
  147.     device_class: smoke
  148.    
  149.   - platform: mqtt
  150.     name: "GAS"
  151.     state_topic: "tele/sensorBridge/power/RESULT"
  152.     #command_topic: "cmnd/tele/sensor/power/RESULT"
  153.     value_template: '{% if value_json["RfReceived"]["Data"] == "D45755" %} ALERT!{% else %}OK{% endif %}'
  154.     expire_after: 10
  155.     device_class: gas
  156.    
  157.   - platform: mqtt
  158.     name: "DOOR SENSOR"
  159.     state_topic: "tele/sensorBridge/power/RESULT"
  160.     #command_topic: "cmnd/tele/sensor/power/RESULT"
  161.     value_template: '{% if value_json["RfReceived"]["Data"] == "000000" %}OPEN{% else %}CLOSED{% endif %}'
  162.     expire_after: 10
  163.     device_class: door
  164.  
  165. camera:
  166.   - platform: yi
  167.     name: yi-hack-v3
  168.     host: '192.168.31.67'
  169.     password: omnibuz
  170.    
  171.    
  172.    
  173. http:
  174.  # Secrets are defined in the file secrets.yaml
  175.   # api_password: !secret http_password
  176.   # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  177.   # base_url: example.duckdns.org:8123
  178.  
  179. # Checks for available updates
  180. # Note: This component will send some information about your system to
  181. # the developers to assist with development of Home Assistant.
  182. # For more information, please see:
  183. # https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
  184. updater:
  185.  # Optional, allows Home Assistant developers to focus on popular components.
  186.   # include_used_components: true
  187.  
  188. # Discover some devices automatically
  189. discovery:
  190. # Allows you to issue voice commands from the frontend in enabled browsers
  191. conversation:
  192. # Enables support for tracking state changes over time
  193. history:
  194. # View all events in a logbook
  195. logbook:
  196. # Enables a map showing the location of tracked devices
  197. map:
  198. # Track the sun
  199. sun:
  200.  
  201.  
  202. # Text to speech
  203. tts:
  204.   - platform: google
  205.  
  206. # Cloud
  207. cloud:
  208. group: !include groups.yaml
  209. automation: !include automations.yaml
  210. script: !include scripts.yaml
Add Comment
Please, Sign In to add comment