Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- homeassistant:
- name: Home
- latitude: 22.5697
- longitude: 88.3697
- elevation: 0
- unit_system: metric
- time_zone: Asia/Kolkata
- customize: !include customize.yaml
- frontend:
- # Enables configuration UI
- config:
- mqtt:
- broker: core-mosquitto
- username: omnibuz
- password: omnibuz
- switch LOCK:
- - platform: mqtt
- command_topic: "house/doorlock/"
- stat_topic: "house/doorlock/RESULT"
- name: 'DOOR LOCK'
- qos: 1
- payload_on: "1"
- payload_off: "0"
- retain: true
- switch DUAL:
- - platform: mqtt
- command_topic: "cmnd/dual/POWER1"
- stat_topic: "stat/dual/POWER1"
- name: 'DUAL Switch 1'
- qos: 1
- payload_on: "ON"
- payload_off: "OFF"
- retain: true
- - platform: mqtt
- command_topic: "cmnd/dual/POWER2"
- stat_topic: "stat/dual/POWER2"
- name: 'DUAL Switch 2'
- qos: 1
- payload_on: "ON"
- payload_off: "OFF"
- retain: true
- switch QUAD:
- - platform: mqtt
- command_topic: "cmnd/quad/POWER1"
- stat_topic: "stat/quad/POWER1"
- name: 'QUAD Switch 1'
- qos: 1
- payload_on: "ON"
- payload_off: "OFF"
- retain: true
- - platform: mqtt
- command_topic: "cmnd/quad/POWER2"
- stat_topic: "stat/quad/POWER2"
- name: 'QUAD Switch 2'
- qos: 1
- payload_on: "ON"
- payload_off: "OFF"
- retain: true
- - platform: mqtt
- command_topic: "cmnd/quad/POWER3"
- stat_topic: "stat/quad/POWER3"
- name: 'QUAD Switch 3'
- qos: 1
- payload_on: "ON"
- payload_off: "OFF"
- retain: true
- - platform: mqtt
- command_topic: "cmnd/quad/POWER4"
- stat_topic: "stat/quad/POWER4"
- name: 'QUAD Switch 4'
- qos: 1
- payload_on: "ON"
- payload_off: "OFF"
- retain: true
- switch TOUCH_3CH:
- - platform: mqtt
- command_topic: "cmnd/touch3ch/POWER1"
- stat_topic: "stat/touch3ch/POWER1"
- name: 'TOUCH Switch 1'
- qos: 1
- payload_on: "ON"
- payload_off: "OFF"
- retain: true
- - platform: mqtt
- command_topic: "cmnd/touch3ch/POWER2"
- stat_topic: "stat/touch3ch/POWER2"
- name: 'TOUCH Switch 2'
- qos: 1
- payload_on: "ON"
- payload_off: "OFF"
- retain: true
- - platform: mqtt
- command_topic: "cmnd/touch3ch/POWER3"
- stat_topic: "stat/touch3ch/POWER3"
- name: 'TOUCH Switch 3'
- qos: 1
- payload_on: "ON"
- payload_off: "OFF"
- retain: true
- switch CIRCLE_BULB:
- - platform: mqtt
- command_topic: "cmnd/circleBulb/POWER"
- stat_topic: "stat/circleBulb/POWER"
- name: 'BULB Switch 1'
- qos: 1
- payload_on: "ON"
- payload_off: "OFF"
- retain: true
- sensor:
- - platform: mqtt
- name: "MOTION"
- state_topic: "tele/sensorBridge/power/RESULT"
- #command_topic: "cmnd/tele/sensor/power/RESULT"
- value_template: >
- {% if value_json["RfReceived"]["Data"] == "B64409" %}
- ALERT!
- {% else %}
- OK
- {% endif %}
- expire_after: 10
- device_class: motion
- - platform: mqtt
- name: "SMOKE"
- state_topic: "tele/sensorBridge/power/RESULT"
- #command_topic: "cmnd/tele/sensor/power/RESULT"
- value_template: '{% if value_json["RfReceived"]["Data"] == "6E505B" %} ALERT!{% else %}OK{% endif %}'
- expire_after: 10
- device_class: smoke
- - platform: mqtt
- name: "GAS"
- state_topic: "tele/sensorBridge/power/RESULT"
- #command_topic: "cmnd/tele/sensor/power/RESULT"
- value_template: '{% if value_json["RfReceived"]["Data"] == "D45755" %} ALERT!{% else %}OK{% endif %}'
- expire_after: 10
- device_class: gas
- - platform: mqtt
- name: "DOOR SENSOR"
- state_topic: "tele/sensorBridge/power/RESULT"
- #command_topic: "cmnd/tele/sensor/power/RESULT"
- value_template: '{% if value_json["RfReceived"]["Data"] == "000000" %}OPEN{% else %}CLOSED{% endif %}'
- expire_after: 10
- device_class: door
- camera:
- - platform: yi
- name: yi-hack-v3
- host: '192.168.31.67'
- password: omnibuz
- http:
- # Secrets are defined in the file secrets.yaml
- # api_password: !secret http_password
- # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
- # base_url: example.duckdns.org:8123
- # Checks for available updates
- # Note: This component will send some information about your system to
- # the developers to assist with development of Home Assistant.
- # For more information, please see:
- # https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
- updater:
- # Optional, allows Home Assistant developers to focus on popular components.
- # include_used_components: true
- # Discover some devices automatically
- discovery:
- # Allows you to issue voice commands from the frontend in enabled browsers
- conversation:
- # Enables support for tracking state changes over time
- history:
- # View all events in a logbook
- logbook:
- # Enables a map showing the location of tracked devices
- map:
- # Track the sun
- sun:
- # Text to speech
- tts:
- - platform: google
- # Cloud
- cloud:
- group: !include groups.yaml
- automation: !include automations.yaml
- script: !include scripts.yaml
Add Comment
Please, Sign In to add comment