Skip to content

Instantly share code, notes, and snippets.

@unxmaal
Created September 4, 2016 02:00
Show Gist options
  • Save unxmaal/c5b814ee81fa6985921a0a1a6ce44525 to your computer and use it in GitHub Desktop.
Save unxmaal/c5b814ee81fa6985921a0a1a6ce44525 to your computer and use it in GitHub Desktop.
homeassistant:
name: Home
latitude: x
longitude: x
elevation: x
unit_system: imperial
time_zone: America/New_York
customize:
# Garage Door
sensor.ecolink_garage_door_sensor_alarm_level_2:
hidden: true
sensor.ecolink_garage_door_sensor_alarm_type_2:
hidden: true
sensor.ecolink_garage_door_sensor_burglar_2:
hidden: true
sensor.ecolink_garage_door_sensor_sourcenodeid_2:
hidden: true
binary_sensor.ecolink_garage_door_sensor_sensor_2:
friendly_name: Garage Door
# Weather
sensor.yr_symbol:
friendly_name: Weather
sensor.yr_temperature:
friendly_name: Outside temperature
sensor.yr_condition:
hidden: true
sensor.yr_fog:
hidden: true
sensor.yr_humidity:
friendly_name: Outside humidity
sensor.yr_pressure:
friendly_name: Outside pressure
sensor.yr_wind_direction:
friendly_name: Outside wind direction
sensor.yr_wind_speed:
friendly_name: Outside wind speed
### Toggles ###
#introduction: # Show links to resources in log and frontend
sun: # Track the sun
updater: # Checks for available updates
frontend: # Enables the frontend
history: # Enables support for tracking state changes over time.
logbook: # View all events in a logbook
discovery: # Discover some devices automatically
conversation: # Allows you to issue voice commands from the frontend
http:
# Notify
notify:
platform: pushbullet
api_key: x
zwave:
usb_path: /dev/ttyACM0
config_path: /usr/local/lib/python3.4/dist-packages/libopenzwave-0.3.1-py3.4-linux-armv7l.egg/config
polling_interval: 60000
nest:
username: x
password: x
thermostat:
platform: nest
group:
basement:
name: Basement
entities:
- media_player.basement
- thermostat.basement
living_room:
name: Living Room
entities:
- thermostat.living_room
upstairs:
name: Upstairs
entities:
- media_player.upstairs
- thermostat.upstairs
thermostats:
name: Thermostats
entities:
- thermostat.nest
sensor 1:
platform: yr
monitored_conditions:
- temperature
- precipitation
- windSpeed
- pressure
- windDirection
- humidity
- fog
sensor 2:
platform: nest
monitored_conditions:
- 'temperature'
- 'humidity'
automation:
- alias: 'Garage door still open'
trigger:
platform: state
entity_id: binary_sensor.ecolink_garage_door_sensor_sensor_2
from: 'closed'
to: 'open'
action:
service: homeassistant.turn_on
entity_id: script.garage_door_alarm
- alias: 'Garage Door was closed'
trigger:
platform: state
entity_id: binary_sensor.ecolink_garage_door_sensor_sensor_2
from: 'open'
to: 'closed'
action:
service: homeassistant.turn_off
entity_id: script.garage_door_alarm
script:
garage_door_alarm:
alias: "Garage door alarm"
sequence:
- delay:
minutes: 10
- service: notify.notify
data:
message: "Garage door is open."
title: "Garage door is open."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment