Skip to content

Instantly share code, notes, and snippets.

@ironicbadger
Created December 2, 2018 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ironicbadger/270c33f78726179079b11e8faf9f528f to your computer and use it in GitHub Desktop.
Save ironicbadger/270c33f78726179079b11e8faf9f528f to your computer and use it in GitHub Desktop.
hassio
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 35.7796
longitude: -78.6382
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: imperial
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/New_York
# Customization file
customize: !include customize.yaml
# 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:
enable:
# 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
media_player:
- platform: roku
switch:
- platform: command_line
switches:
#toggles office Roku TV
tcl_tv_power:
command_on: 'curl -X POST http://192.168.1.33:8060/keypress/PowerOn'
command_off: 'curl -X POST http://192.168.1.33:8060/keypress/PowerOff'
command_state: 'curl -s GET http://192.168.1.33:8060/query/device-info | grep power-mode | sed -e "s:<power-mode>DisplayOff</power-mode>:OFF:" -e "s:<power-mode>PowerOn</power-mode>:ON:"'
value_template: '{{ value == "ON" }}'
shell_command:
tcl55_hdmi2: 'curl -X POST http://192.168.1.33:8060/launch/tvinput.hdmi2'
tcl55_hdmi3: 'curl -X POST http://192.168.1.33:8060/launch/tvinput.hdmi3'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment