-
-
Save matt2005/eb9a41f784e117bf6f97 to your computer and use it in GitHub Desktop.
This file contains 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: Home | |
latitude: <LATITUDE> | |
longitude: <LONGITUDE> | |
# C for Celcius, F for Fahrenheit | |
temperature_unit: C | |
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones | |
time_zone: Europe/Copenhagen | |
customize: | |
device_tracker.mads_desktop: | |
hidden: true | |
device_tracker.mads_macbook: | |
friendly_name: 'Mads Macbook' | |
device_tracker.mads_phone: | |
friendly_name: 'Mads Phone' | |
media_player.stuen: | |
friendly_name: 'Musik' | |
media_player.kkken: | |
friendly_name: 'Musik' | |
media_player.plex_stue: | |
friendly_name: 'TV' | |
media_player.plex_sove: | |
friendly_name: 'TV' | |
media_player.stuen_2: | |
hidden: true | |
light.all_lights: | |
friendly_name: 'Lys' | |
light.stuen: | |
hidden: true | |
light.kkken: | |
hidden: true | |
light.sovevrelse: | |
hidden: true | |
scene.livingroom_normal: | |
friendly_name: 'Normal lys' | |
scene.livingroom_dim: | |
hidden: true | |
scene.livingroom_sunset: | |
hidden: true | |
scene.bedroom_normal: | |
friendly_name: 'Normal lys' | |
scene.bedroom_dim: | |
hidden: true | |
scene.livingroomkitchen_normal: | |
hidden: true | |
scene.livingroomkitchen_late: | |
hidden: true | |
scene.kitchen_normal: | |
friendly_name: 'Normal lys' | |
scene.kitchen_sunset: | |
hidden: true | |
# View all events in a logbook | |
logbook: | |
# Show links to resources in log and frontend | |
#introduction: | |
# Checks for available updates | |
updater: | |
# Discover some devices automatically | |
discovery: | |
# Enables the frontend | |
frontend: | |
#mqtt: | |
# broker: <SECRET> | |
# port: <SECRET> | |
# username: <SECRET> | |
# password: <SECRET> | |
ifttt: | |
key: <SECRET> | |
device_tracker: | |
consider_home: 300 | |
home_interval: 10 | |
platform: nmap_tracker | |
hosts: <IP RANGE> | |
track_new_devices: no | |
# Track the sun | |
sun: | |
# Allows you to issue voice commands from the frontend | |
#conversation: | |
# Enables support for tracking state changes over time. | |
history: | |
notify: | |
platform: pushbullet | |
api_key: <SECRET> | |
name: Home-assistant | |
group: | |
stue: | |
- scene.livingroom_normal | |
- media_player.stuen | |
- media_player.plex_stue | |
- light.stuen | |
køkken: | |
- scene.kitchen_normal | |
- media_player.kkken | |
- light.kkken | |
soveværelse: | |
- scene.bedroom_normal | |
- media_player.plex_sove | |
- light.sovevrelse | |
mads_devices: | |
- device_tracker.mads_desktop | |
- device_tracker.mads_macbook | |
- device_tracker.mads_phone | |
light: | |
platform: hue | |
# Authentication | |
http: | |
api_password: <SECRET> | |
# Sensor | |
sensor: | |
platform: openweathermap | |
forecast: 1 | |
api_key: <SECRET> | |
monitored_conditions: | |
- weather | |
- temperature | |
- wind_speed | |
################################################################# | |
## Scenes | |
################################################################# | |
scene: | |
- name: Livingroom normal | |
entities: | |
light.stuen: | |
state: on | |
transition: 2 | |
brightness: 220 | |
rgb_color: [255, 147, 41] | |
- name: Livingroom dim | |
entities: | |
light.stuen: | |
state: on | |
transition: 2 | |
brightness: 75 | |
rgb_color: [255, 147, 41] | |
- name: Livingroom sunset | |
entities: | |
light.stuen: | |
state: on | |
transition: 1200 | |
brightness: 220 | |
rgb_color: [255, 147, 41] | |
- name: Bedroom normal | |
entities: | |
light.sovevrelse: | |
state: on | |
transition: 2 | |
brightness: 170 | |
rgb_color: [255, 147, 41] | |
- name: Bedroom dim | |
entities: | |
light.sovevrelse: | |
state: on | |
transition: 2 | |
brightness: 20 | |
rgb_color: [255, 147, 41] | |
- name: Livingroomkitchen normal | |
entities: | |
light.stuen: | |
state: on | |
transition: 2 | |
brightness: 220 | |
rgb_color: [255, 147, 41] | |
light.kkken: | |
state: on | |
transition: 2 | |
brightness: 175 | |
rgb_color: [255, 147, 41] | |
- name: Livingroomkitchen late | |
entities: | |
light.stuen: | |
state: on | |
transition: 15 | |
brightness: 220 | |
rgb_color: [255, 147, 41] | |
light.kkken: | |
state: on | |
transition: 15 | |
brightness: 175 | |
rgb_color: [255, 147, 41] | |
- name: Kitchen normal | |
entities: | |
light.kkken: | |
state: on | |
transition: 2 | |
brightness: 175 | |
rgb_color: [255, 147, 41] | |
- name: Kitchen sunset | |
entities: | |
light.kkken: | |
state: on | |
transition: 1200 | |
brightness: 175 | |
rgb_color: [255, 147, 41] | |
- name: Turn all off | |
entities: | |
light.kkken: | |
state: off | |
light.stuen: | |
state: off | |
light.sovevrelse: | |
state: off | |
################################################################# | |
## Automations | |
################################################################# | |
automation: | |
- alias: "Livingroom media player paused/stopped" | |
trigger: | |
- platform: state | |
entity_id: media_player.plex_stue | |
from: 'playing' | |
condition: | |
- platform: state | |
entity_id: sun.sun | |
state: 'below_horizon' | |
action: | |
service: scene.turn_on | |
entity_id: scene.livingroom_normal | |
- alias: "Livingroom media player playing" | |
trigger: | |
- platform: state | |
entity_id: media_player.plex_stue | |
to: 'playing' | |
condition: | |
- platform: state | |
entity_id: sun.sun | |
state: 'below_horizon' | |
action: | |
service: scene.turn_on | |
entity_id: scene.livingroom_dim | |
- alias: "Bedroom media player paused/stopped" | |
trigger: | |
- platform: state | |
entity_id: media_player.plex_sove | |
from: 'playing' | |
condition: | |
- platform: state | |
entity_id: sun.sun | |
state: 'below_horizon' | |
action: | |
service: scene.turn_on | |
entity_id: scene.bedroom_normal | |
- alias: "Bedroom media player playing" | |
trigger: | |
- platform: state | |
entity_id: media_player.plex_sove | |
to: 'playing' | |
condition: | |
- platform: state | |
entity_id: sun.sun | |
state: 'below_horizon' | |
action: | |
service: scene.turn_on | |
entity_id: scene.bedroom_dim | |
- alias: "Turn on the living room light 30 minutes before sunset if anyone home" | |
trigger: | |
- platform: sun | |
event: 'sunset' | |
offset: '-00:30:00' | |
- platform: state | |
entity_id: sun.sun | |
from: 'above_horizon' | |
to: 'below_horizon' | |
condition: | |
- platform: state | |
entity_id: group.mads_devices | |
state: 'home' | |
- platform: state | |
entity_id: group.all_lights | |
state: 'off' | |
action: | |
service: homeassistant.turn_on | |
entity_id: scene.livingroom_sunset | |
- alias: "Turn on the kitchen and living room light when arriving home at night" | |
trigger: | |
- platform: state | |
entity_id: group.mads_devices | |
from: 'not_home' | |
to: 'home' | |
condition: | |
- platform: state | |
entity_id: sun.sun | |
state: 'below_horizon' | |
- platform: state | |
entity_id: group.all_lights | |
state: 'off' | |
action: | |
service: homeassistant.turn_on | |
entity_id: scene.livingroomkitchen_late | |
- alias: "Turn on kitchen light when playing music after sunset" | |
trigger: | |
- platform: state | |
entity_id: media_player.kkken | |
to: 'playing' | |
condition: | |
- platform: state | |
entity_id: sun.sun | |
state: 'below_horizon' | |
- platform: state | |
entity_id: light.kkken | |
state: 'off' | |
action: | |
service: homeassistant.turn_on | |
entity_id: scene.kitchen_normal | |
- alias: "Turn off kitchen light when playing music stops" | |
trigger: | |
- platform: state | |
entity_id: media_player.kkken | |
from: 'paused' | |
to: 'off' | |
condition: | |
- platform: state | |
entity_id: light.kkken | |
state: 'on' | |
action: | |
service: homeassistant.turn_off | |
entity_id: light.kkken | |
- alias: "Turn on kitchen light 30 minutes before sunset if music is playing" | |
trigger: | |
- platform: sun | |
entity_id: sun.sun | |
offset: '-00:30:00' | |
condition: | |
- platform: state | |
entity_id: media_player.kkken | |
state: 'playing' | |
- platform: state | |
entity_id: light.kkken | |
state: 'off' | |
action: | |
service: homeassistant.turn_on | |
entity_id: scene.kitchen_sunset | |
- alias: "Turn on livingroom light when playing music after sunset" | |
trigger: | |
- platform: state | |
entity_id: media_player.stuen | |
to: 'playing' | |
condition: | |
- platform: state | |
entity_id: sun.sun | |
state: 'below_horizon' | |
- platform: state | |
entity_id: light.stuen | |
state: 'off' | |
action: | |
service: homeassistant.turn_on | |
entity_id: scene.livingroom_normal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment