-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
197 lines (176 loc) · 5.44 KB
/
configuration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
homeassistant:
# Name of the location where Home Assistant is running
name: !secret HA_name
# Location required to calculate the time the sun rises and sets
latitude: !secret home_latitude
longitude: !secret home_longtitude
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Amsterdam
# Customization file
customize: !include customize.yaml
# Include Packages
packages: !include_dir_named packages
logger:
default: critical
# logs:
# add log for spotify when adding new streaming devices
# homeassistant.components.media_player.spotify: info
lovelace:
mode: yaml
# Enables configuration UI
config:
## for calendar
google:
client_id: !secret google_client_id
client_secret: !secret google_client_secret
http:
base_url: !secret base_url #:8123
trusted_networks:
- 172.30.33.5 # NGINX
system_health:
# 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:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# View all events in a logbook
logbook:
#Enables a map showing the location of tracked devices
#map:
custom_updater: # https://github.com/custom-components/custom_updater/wiki/Installation
track:
- components
- cards
- python_scripts
card_urls:
- https://raw.githubusercontent.com/matisaul/vertical-style-card/master/tracker.json
- https://raw.githubusercontent.com/kalkih/mini-media-player/master/tracker.json
- https://raw.githubusercontent.com/kalkih/mini-graph-card/master/tracker.json
- https://raw.githubusercontent.com/ljmerza/calendar-card/master/custom_updater.json
sun:
shopping_list:
# Sensors
sensor:
- platform: yr
# - platform: postnl
# username: !secret postnl_username
# password: !secret postnl_password
# name: "Pakketjes"
- platform: Sonarr_Upcoming_Media
api_key: !secret sonarr_api_key
host: !secret docker_ip
port: !secret sonarr_port
days: 7
ssl: false
max: 10
- platform: Radarr_Upcoming_Media
api_key: !secret radarr_api_key
host: !secret docker_ip
port: !secret radarr_port
days: 120
ssl: false
theaters: false
max: 10
- platform: darksky
api_key: !secret darksky_api_key
language: nl
latitude: !secret home_latitude
longitude: !secret home_longtitude
monitored_conditions:
- summary
- icon
- nearest_storm_distance
- moon_phase
- apparent_temperature
- cloud_cover
- precip_probability
- precip_type
- platform: time_date
display_options:
- "time"
- "date"
- platform: template
sensors:
dag:
value_template: "{{ ['Maandag','Dinsdag','Woensdag','Donderdag','Vrijdag','Zaterdag','Zondag'][now().weekday()] }}"
entity_id: sensor.time
# datum:
# value_template: "{{[now().day()] - [now().month()]}}"
# entity_id: sensor.time
- platform: lastfm
api_key: !secret lastfm_api_key
users:
- !secret lastfm_user
- platform: template
sensors:
period_of_day:
friendly_name: "Lichtmoment"
value_template: >-
{% if (as_timestamp(states.sun.sun.attributes.next_dusk)) - (as_timestamp(states.sun.sun.attributes.next_setting)) < 0 %}
Schemer
{% elif (as_timestamp(states.sun.sun.attributes.next_rising)) - (as_timestamp(states.sun.sun.attributes.next_dawn)) < 0 %}
Morgenlicht
{% elif (states.sun.sun.attributes.elevation) < -4 %}
Nacht
{% else %}
Dag
{% endif %}
icon_template: >-
{% if (as_timestamp(states.sun.sun.attributes.next_dusk)) - (as_timestamp(states.sun.sun.attributes.next_setting)) < 0 %}
mdi:weather-sunset-down
{% elif (as_timestamp(states.sun.sun.attributes.next_rising)) - (as_timestamp(states.sun.sun.attributes.next_dawn)) < 0 %}
mdi:weather-sunset-up
{% elif (states.sun.sun.attributes.elevation) < -4 %}
mdi:weather-night
{% else %}
mdi:weather-sunny
{% endif %}
- platform: nzbget
host: !secret docker_ip
username: !secret nzbget_user
password: !secret nzbget_password
monitored_variables:
- article_cache
- download_rate
- remaining_size
weather:
- platform: buienradar
latitude: !secret home_latitude
longitude: !secret home_longtitude
forecast: True
notify:
- platform: kodi
name: woonkamer_kodi
host: !secret kodi_ip
# Text to speech
tts:
- platform: google
cache: true
language: 'nl'
cache_dir: /tmp/tts
time_memory: 300
# Cloud
cloud:
# stuff for LMS
# dialogflow:
# intent_script:
mqtt:
broker: !secret mqtt_ip # This will have to be your mqtt broker
discovery: true
discovery_prefix: homeassistant
username: !secret mqtt_username
password: !secret mqtt_password
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml