Last active
December 24, 2015 07:05
-
-
Save younata/930e85a717d1006245a5 to your computer and use it in GitHub Desktop.
Home Assistant Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
homeassistant: | |
name: Apartment | |
latitude: [Redacted] | |
longitude: [Redacted] | |
temperature_unit: F | |
time_zone: America/Los_Angeles | |
customize: | |
scene.romantic: | |
friendly_name: "Romantic" | |
scene.lights_on: | |
friendly_name: "Lights On" | |
scene.lights_off: | |
hidden: true | |
scene.movie_dim: | |
hidden: true | |
sensor.weather_summary: | |
friendly_name: "Weather" | |
sensor.weather_temperature: | |
friendly_name: "Outdoor Temp" | |
sensor.weather_precip_intensity: | |
friendly_name: "Rainfall" | |
frontend: | |
logbook: | |
discovery: | |
history: | |
sun: | |
http: | |
api_password: [Redacted] | |
light: | |
platform: hue | |
sensor: | |
platform: forecast | |
api_key: [Redacted] | |
monitored_conditions: | |
- summary | |
- temperature | |
- precip_intensity | |
mqtt: | |
broker: http://192.168.42.87 | |
port: 1883 | |
client_id: [Redacted] | |
keepalive: 60 | |
username: [Redacted] | |
password: [Redacted] | |
device_tracker: | |
platform: owntracks | |
zone: | |
name: Work | |
latitude: [Redacted] | |
longitude: [Redacted] | |
icon: mdi:briefcase | |
media_player: | |
platform: kodi | |
url: http://192.168.42.77:8080/jsonrpc | |
name: Kodi | |
username: [Redacted] | |
password: [Redacted] | |
## Groups | |
group: | |
Apartment: | |
- switch.heater_switch | |
- light.living_room | |
- light.bedroom | |
Denizens: | |
- device_tracker.rachel | |
- device_tracker.nicole | |
Weather: | |
- sun.sun | |
- sensor.weather_summary | |
- sensor.weather_temperature | |
- sensor.weather_precip_intensity | |
## Scenes | |
scene: | |
- name: romantic | |
entities: | |
light.living_room: | |
state: off | |
transition: 10 | |
light.bedroom: | |
state: on | |
transition: 10 | |
brightness: 50 | |
- name: lights_on | |
entities: | |
light.bedroom: | |
state: on | |
transition: 10 | |
brightness: 255 | |
light.living_room: | |
state: on | |
transition: 10 | |
brightness: 255 | |
- name: lights_off | |
entities: | |
light.bedroom: | |
state: off | |
transition: 10 | |
light.living_room: | |
transition: 10 | |
light.living_room: off | |
- name: movie_dim | |
entities: | |
light.bedroom: | |
state: off | |
transition: 10 | |
light.living_room: | |
state: on | |
transition: 10 | |
brightness: 75 | |
## Automations | |
automation: | |
## Media Player | |
- alias: "Media player paused/stopped" | |
trigger: | |
platform: state | |
entity_id: media_player.kodi | |
from: 'playing' | |
action: | |
service: scene.turn_on | |
entity_id: scene.lights_on | |
- alias: "Media player playing" | |
trigger: | |
platform: state | |
entity_id: media_player.kodi | |
to: 'playing' | |
action: | |
service: scene.turn_on | |
entity_id: scene.movie_dim | |
## Heating and Lights | |
- alias: "Turn the heater on in the morning if someone is home" | |
trigger: | |
platform: time | |
hours: 6 | |
minutes: 0 | |
seconds: 0 | |
condition: | |
platform: state | |
entity_id: group.denizens | |
state: home | |
action: | |
service: homeassistant.turn_on | |
entity_id: switch.heater_switch | |
- alias: "Turn everything off when everyone leaves" | |
trigger: | |
platform: state | |
entity_id: group.denizens | |
from: 'home' | |
action: | |
service: homeassistant.turn_off | |
entity_id: group.apartment | |
- alias: "Turn the lights on in the morning if someone is home" | |
trigger: | |
platform: time | |
hours: 7 | |
minutes: 0 | |
seconds: 0 | |
weekday: | |
- mon | |
- tue | |
- wed | |
- thu | |
- fri | |
condition: | |
platform: state | |
entity_id: group.denizens | |
state: home | |
action: | |
service: homeassistant.turn_on | |
entity_id: scene.lights_off | |
- alias: "Turn the lights on when someone comes home" | |
trigger: | |
platform: state | |
entity_id: group.denizens | |
to: 'home' | |
action: | |
service: scene.turn_on | |
entity_id: scene.lights_on |
Author
younata
commented
Dec 24, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment