Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- homeassistant:
- # Name of the location where Home Assistant is running
- name: Home
- # Location required to calculate the time the sun rises and sets
- latitude: xx.xx
- longitude: xx.xx
- # Impacts weather/sunrise data (altitude above sea level in meters)
- elevation: xxx
- # 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
- # Show links to resources in log and frontend
- introduction:
- # Enables the frontend
- frontend:
- http:
- # Uncomment this to add a password (recommended!)
- # api_password: redacted
- mqtt:
- username: ha
- password: redacted
- broker: 127.0.0.1
- port: 1883
- # Checks for available updates
- updater:
- cover:
- - platform: mqtt
- friendly_name: Garage 1
- name: "Garage 1 Door"
- state_topic: "home/garage1/door"
- command_topic: "home/garage1/button"
- payload_open: "OPENDOOR"
- payload_close: "OPENDOOR"
- payload_stop: "OPENDOOR"
- optimistic: false
- retain: false
- value_template: '{{ value }}'
- - platform: mqtt
- friendly_name: Garage 2
- name: "Garage 2 Door"
- state_topic: "home/garage2/door"
- command_topic: "home/garage2/button"
- payload_open: "OPENDOOR"
- payload_close: "OPENDOOR"
- payload_stop: "OPENDOOR"
- optimistic: false
- retain: false
- value_template: '{{ value }}'
- # 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: systemmonitor
- resources:
- - type: disk_use_percent
- arg: h:\
- - type: memory_use_percent
- - type: processor_use
- - type: last_boot
- - platform: wunderground
- api_key: redacted
- monitored_conditions:
- - precip_today_in
- - temp_f
- - feelslike_f
- - weather
- - wind_mph
- - platform: mqtt
- state_topic: "home/garage3/memory"
- name: "G3 Mem"
- unit_of_measurement: "b"
- value_template: '{{ value }}'
- camera:
- - platform: mjpeg
- mjpeg_url: http://192.168.1.100:8080/videostream.cgi?user=admin&pwd=redacted
- name: Baby Cam
- - platform: mjpeg
- mjpeg_url: http://192.168.1.102:8081/video
- name: Basement Cam
- username: admin
- password: redacted
- automation:
- - alias: 'Garage door still open'
- trigger:
- platform: state
- entity_id: cover.garage_1_door
- from: 'open'
- to: 'closed'
- action:
- service: homeassistant.turn_on
- entity_id: script.garage_door_alarm
- - alias: 'Garage door was closed'
- trigger:
- platform: state
- entity_id: cover.garage_1_door
- from: 'closed'
- to: 'open'
- action:
- service: homeassistant.turn_off
- entity_id: script.garage_door_alarm
- script:
- garage_door_alarm:
- alias: "Garage door alarm"
- sequence:
- - delay:
- minutes: 1
- - service: notify.notify
- data:
- message: 'The garage door is still open'
- # target: 'channel/EDITEDOUT'
- notify:
- - platform: pushbullet
- api_key: redacted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement