-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
319 lines (290 loc) · 7.83 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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: !secret ha_lat
longitude: !secret ha_long
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: !secret ha_elev
# 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/Stockholm
customize: !include customize.yaml
zone:
name: KIMAB
latitude: 59.405121
longitude: 17.947138
zone 2:
name: Vici
latitude: 59.336505
longitude: 18.030701
panel_iframe:
router:
title: 'N66U Dark Knight'
icon: mdi:router-wireless
url: 'http://192.168.1.1'
http:
# Uncomment this to add a password (recommended!)
api_password: !secret http_password
#ssl_certificate: /etc/letsencrypt/live/kribbstarha.duckdns.org/fullchain.pem
#ssl_key: /etc/letsencrypt/live/kribbstarha.duckdns.org/privkey.pem
# Uncomment this if you are using SSL or running in Docker etc
# base_url: !secret http_url
# 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:
discovery:
conversation:
# recorder:
# purge_days: 30
# include:
# domains:
# - sensor
# - device_tracker
# - switch
# exclude:
# entities:
# - sensor.till_kimab
# - sensor.till_vici
# - sensor.dark_sky_precip
# - sensor.dark_sky_precip_intensity
# - sensor.dark_sky_daily_max_precip_intensity
# - sensor.dark_sky_daily_high_temperature
# - sensor.dark_sky_apparent_temperature
# - sensor.dark_sky_daily_low_temperature
# - sensor.dark_sky_daily_high_apparent_temperature
# - sensor.dark_sky_temperature
# - sensor.dark_sky_daily_low_apparent_temperature
# - sensor.dark_sky_cloud_coverage
# - sensor.dark_sky_humidity
# - sensor.dark_sky_visibility
# - sensor.cpu_temp
# - sensor.cpu_use
# - sensor.ram_free
# - sensor.disk_use_home
# - sensor.last_boot
history:
logbook:
frontend:
config:
sun:
tts:
platform: google
# nuimo_controller:
# mac: 'd1:c6:75:c2:4d:7e'
# emulated_hue:
# type: google_home
# host_ip: !secret hue_host_ip
# listen_port: 80
# expose_by_default: true
# exposed_domains:
# - switch
# - media_player
# - light
media_player:
- platform: cast
- platform: spotify
client_id: !secret spot_client_id
client_secret: !secret spot_client_secret
# - platform: ps4
# host: !secret ps4_host
# ifttt:
# key: !secret ifttt_key
mqtt:
broker: core-mosquitto
port: !secret mqtt_port
client_id: home-assistant-1
username: !secret mqtt_user
password: !secret mqtt_pass
light:
- platform: mqtt
name: "Bed light"
state_topic: "stat/sonoff2/POWER"
command_topic: "cmnd/sonoff2/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
switch:
# - platform: mqtt
# name: "arctech_switch"
# command_topic: "rf434/send/arctech_switch"
# payload_on: '{"id":52381518,"unit":15,"on":1}'
# payload_off: '{"id":52381518,"unit":15,"off":1}'
- platform: mqtt
name: "Corner Lamp"
state_topic: "smartthings/Corner Lamp/switch"
command_topic: "smartthings/Corner Lamp/switch"
payload_on: "on"
payload_off: "off"
retain: true
# - platform: mqtt
# name: "TV"
# state_topic: "home/IRtoMQTT" # defined by subjectGTWIRtoMQTT in User_config.h
# command_topic: "home/commands/IR_SAMSUNG"
# payload_on: "3772793023"
# payload_off: "3772793023"
# optimistic: false
# retain: true
- platform: wake_on_lan
name: "Battlestation"
mac_address: !secret Battlestation_mac
host: !secret Battlestation_ip
broadcast_address: 255.255.255.255
turn_off:
- service: script.turn_on
data:
entity_id: script.pc_off
# Weather Prediction
sensor:
# - platform: miflora
# mac: 'C4:7C:8D:64:43:C1'
# median: 1
# name: "Blomlådan"
# monitored_conditions:
# - temperature
# - moisture
# - light
# - battery
# - conductivity
# - platform: google_travel_time
# api_key: !secret g_travel_key
# name: Till KIMAB
# origin: zone.home
# destination: KIMAB
# options:
# mode: transit
# - platform: google_travel_time
# api_key: !secret g_travel_key
# name: Till Vici
# origin: zone.home
# destination: Vici
# options:
# mode: transit
- platform: darksky
api_key: !secret darksky_key
update_interval: '00:10'
monitored_conditions:
- summary
# - icon
# - nearest_storm_distance
# - nearest_storm_bearing
- precip_type
- precip_intensity
- precip_probability
- temperature
- apparent_temperature
# - dew_point
# - wind_speed
# - wind_bearing
- cloud_cover
- humidity
# - pressure
- visibility
# - ozone
- minutely_summary
- hourly_summary
- daily_summary
- temperature_max
- temperature_min
- apparent_temperature_max
- apparent_temperature_min
- precip_intensity_max
# - platform: pi_hole
- platform: time_date
display_options:
- 'time'
- 'date'
# # - platform: trafikverket
# # api_key: !secret trafikverket_api_key
# trains:
# - name: "Train to work"
# from: Sölvesborg
# to: Kristianstad C
# time: "07:28"
# - name: "Train from work early"
# from: Kristianstad C
# to: Sölvesborg
# time: "16:38"
# - name: "Train from work late"
# from: Kristianstad C
# to: Sölvesborg
# time: "17:02"
- platform: systemmonitor
resources:
- type: disk_use_percent
arg: /home
- type: memory_free
- type: processor_use
- type: last_boot
#Alarm Clock sensor
- platform: template
sensors:
alarm_clock_hour:
value_template: '{{ states.input_slider.alarm_clock_hour.state|int }}'
alarm_clock_minute:
value_template: '{{ states.input_slider.alarm_clock_minute.state|int }}'
alarm_clock_time:
value_template: >-
{{ states.sensor.alarm_clock_hour.state }}:
{%- if states.sensor.alarm_clock_minute.state|length == 1 -%}
0
{%- endif -%}
{{ states.sensor.alarm_clock_minute.state }}
alarm_clock_time_long:
value_template: >-
{% if states.sensor.alarm_clock_hour.state|length == 1 -%}
0
{%- endif -%}
{{ states.sensor.alarm_clock_hour.state }}:
{%- if states.sensor.alarm_clock_minute.state|length == 1 -%}
0
{%- endif -%}
{{ states.sensor.alarm_clock_minute.state }}
script: !include scripts.yaml
input_slider:
alarm_clock_hour:
initial: 6
min: 0
max: 23
step: 1
alarm_clock_minute:
initial: 15
min: 0
max: 55
step: 5
input_boolean:
alarm_clock_status:
initial: on
input_select:
radio_station:
name: 'Select Radio Station:'
options:
- P3
- Bandit
- Rix FM
- Electric Lounge
chromecast_radio:
name: 'Select Speakers:'
options:
- Google Home
- Kribbcast
initial: Google Home
icon: mdi:speaker-wireless
# device_tracker:
# - platform: tomato
# host: !secret tomato_ip
# username: !secret tomato_user
# password: !secret tomato_pass
# http_id: !secret tomato_id
# interval_seconds: 20
# track_new_devices: false
notify: !include notify.yaml
group: !include groups.yaml
automation: !include automations.yaml
shell_command:
off_pc: 'net rpc shutdown -I 192.168.1.25 -U Kribbstar%Drake1988'