Skip to content

Instantly share code, notes, and snippets.

@shreyaskarnik
Last active February 28, 2017 01:01
Show Gist options
  • Save shreyaskarnik/f697306cd43d7bd56751bcd9a2133f8c to your computer and use it in GitHub Desktop.
Save shreyaskarnik/f697306cd43d7bd56751bcd9a2133f8c to your computer and use it in GitHub Desktop.
ha
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 180
# 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: America/Chicago
# Show links to resources in log and frontend
introduction: False
# Enables the frontend
frontend:
http:
# Uncomment this to add a password (recommended!)
# api_password: PASSWORD
# Uncomment this if you are using SSL or running in Docker etc
# base_url: example.duckdns.org:8123
# Checks for available updates
updater:
# 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:
# Track the sun
sun:
# Weather Prediction
sensor:
platform: yr
# Text to speech
tts:
platform: google
switch:
platform: rpi_rf
gpio: 17
switches:
floor_lamp:
code_on: 21811
code_off: 21820
pulselength: 185
protocol: 1
decor_lantern:
code_on: 21955
code_off: 21964
pulselength: 185
protocol: 1
automation:
alias: Turn on light when sun sets
initial_state: True
hide_entity: False
trigger:
platform: sun
event: sunset
offset: "-01:00:00"
action:
service: switch.turn_on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment