Skip to content

Instantly share code, notes, and snippets.

@xychix
Created December 24, 2018 07:23
Show Gist options
  • Save xychix/5ba44c76896f9bc8177eef3216ac1342 to your computer and use it in GitHub Desktop.
Save xychix/5ba44c76896f9bc8177eef3216ac1342 to your computer and use it in GitHub Desktop.
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 0
longitude: 0
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Amsterdam
# Customization file
customize: !include customize.yaml
#whitelist_external_dirs:
# - /share
# Show links to resources in log and frontend
introduction:
# Enables the frontend
frontend:
# Enables configuration UI
config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# 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:
# Example configuration.yaml entry
device_tracker:
- platform: unifi
host: 192.168.XX.XX
username: 'hassio'
password: 'XXXXXXXXXXXXX'
verify_ssl: false
ssid_filter:
- 'XXXXXXXXXXXXX'
# 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:
# Sensors
sensor:
# Weather prediction
- platform: yr
# Text to speech
tts:
- platform: google
# Cloud
cloud:
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
mqtt:
broker: "192.168.XX.XX"
port: 1883
client_id: home-assistant-1
keepalive: 60
username: mqtt_username
password: XXXSECRETHEREXXX
protocol: 3.1
switch 1:
- platform: mqtt
name: "MQTT Switch 1 - Thermostaat"
state_topic: "/house/switchConfirm1/"
command_topic: "/house/switch1/"
payload_on: "1"
payload_off: "0"
qos: 0
retain: true
switch 2:
- platform: mqtt
name: "MQTT Switch 2 - Light Office"
state_topic: "/house/switchConfirm2/"
command_topic: "/house/switch2/"
payload_on: "1"
payload_off: "0"
qos: 0
retain: true
switch 3:
- platform: mqtt
name: "MQTT Switch 3 - Lamp"
state_topic: "/house/switchConfirm3/"
command_topic: "/house/switch3/"
payload_on: "1"
payload_off: "0"
qos: 0
retain: true
switch 4:
- platform: mqtt
name: "MQTT Switch 4 - Socket"
state_topic: "/house/switchConfirm4/"
command_topic: "/house/switch4/"
payload_on: "1"
payload_off: "0"
qos: 0
retain: true
switch 5:
- platform: mqtt
name: "MQTT Switch 5"
state_topic: "/house/switchConfirm5/"
command_topic: "/house/switch5/"
payload_on: "1"
payload_off: "0"
qos: 0
retain: true
switch 6:
- platform: mqtt
name: "MQTT Switch 6"
state_topic: "/house/switchConfirm6/"
command_topic: "/house/switch6/"
payload_on: "1"
payload_off: "0"
qos: 0
retain: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment