-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
303 lines (261 loc) · 7.87 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
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 loc_latitude
longitude: !secret loc_longitude
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 433
# 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
# Customization file
customize: !include customize.yaml
# Show links to resources in log and frontend
# introduction:
# Enables the frontend
frontend:
javascript_version: latest
cloud:
# Enables configuration UI
config:
http:
# Secrets are defined in the file secrets.yaml
api_password: !secret http_password
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# base_url: example.duckdns.org:8123
# 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:
# Enables support for tracking state changes over time
history:
# View all events in a logbook
logbook:
# Example configuration.yaml entry with exclude
recorder:
purge_keep_days: 5
db_url: sqlite:////home/homeassistant/.homeassistant/homeassistant_v2.db
exclude:
domains:
- automation
- weblink
- updater
entities:
- sun.sun # Don't record sun data
- sensor.last_boot # Comes from 'systemmonitor' sensor platform
- sensor.date
# Enables a map showing the location of tracked devices
map:
# Track the sun
sun:
# Sensor, weather, 3D Printer,
binary_sensor:
- platform: octoprint
monitored_conditions:
- Printing
- Printing Error
sensor:
- platform: template
sensors:
day_night:
friendly_name: 'Time of Day'
value_template: >
{% if now().hour >= 18 and now().hour < 24 %}
Evening
{% elif now().hour >= 0 and now().hour < 2 %}
Evening
{% elif now().hour >= 2 and now().hour < 8 %}
Night
{% else %}
Day
{% endif %}
- platform: command_line
name: "CPU Temp"
command: "cat /sys/class/thermal/thermal_zone0/temp | awk '{print ($1*.001)}'"
unit_of_measurement: "C"
- platform: darksky
api_key: !secret darksky_api
forcast:
- 1
- 2
- 3
- 4
- 5
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
update_interval:
minutes: 5
- platform: time_date
display_options:
- 'time'
- platform: template
sensors:
mark_status:
value_template: '{{ states.device_tracker.galaxys7.state }}'
friendly_name: 'Mark'
patty_status:
value_template: '{{ states.device_tracker.galaxys9.state }}'
friendly_name: 'Patty'
- platform: octoprint
name: OctoPrint
monitored_conditions:
- Current State
- Temperatures
- Job Percentage
- Time Elapsed
- Time Remaining
- platform: template
sensors:
octoprint_remaining_minutes:
friendly_name: "Time Remaining"
unit_of_measurement: 'min'
value_template: "{{ ( states('sensor.octoprint_time_remaining')|float / 60) | round(1) }}"
octoprint_elapsed_minutes:
friendly_name: "Time Elapsed"
unit_of_measurement: 'min'
value_template: "{{ ( states('sensor.octoprint_time_elapsed') |float / 60) | round(1) }}"
- platform: transmission
host: 192.168.1.73
monitored_variables:
- current_status
- download_speed
- upload_speed
- active_torrents
- paused_torrents
- total_torrents
- platform: mqtt
state_topic: "multisensor/sensornode1"
name: "SN1 Humidity"
unit_of_measurement: "%"
value_template: '{{ value_json.humidity | round(1) }}'
- platform: mqtt
state_topic: "multisensor/sensornode1"
name: "SN1 LDR"
##This sensor is not calibrated to actual LUX. Rather, this a map of the input voltage ranging from 0 - 1023.
unit_of_measurement: "LUX"
value_template: '{{ value_json.ldr }}'
- platform: mqtt
state_topic: "multisensor/sensornode1"
name: "SN1 PIR"
value_template: '{{ value_json.motion }}'
- platform: mqtt
state_topic: "multisensor/sensornode1"
name: "SN1 Temperature"
unit_of_measurement: "°F"
value_template: '{{ value_json.temperature | round(1) }}'
- platform: mqtt
state_topic: "multisensor/sensornode1"
name: "SN1 Real Feel"
unit_of_measurement: "°F"
value_template: '{{ value_json.heatIndex | round(1) }}'
light:
- platform: mqtt_json
name: "SN1 LED"
state_topic: "multisensor/sensornode1"
command_topic: "multisensor/sensornode1/set"
brightness: true
flash: true
rgb: true
optimistic: false
qos: 0
# Text to speech
tts:
- platform: google
alarm_control_panel:
platform: manual
name: "Home"
code: !secret alarm_code
pending_time: 60
delay_time: 60
disarmed:
trigger_time: 0
mqtt:
broker: ha-pi
port: 1883
client_id: home-assistant
username: !secret mqtt_username
password: !secret mqtt_password
device_tracker:
platform: nmap_tracker
hosts: 192.168.1.66-67
home_interval: 10
switch:
- platform: mqtt
name: "Family Room Light"
command_topic: "cmnd/FamRoomLight/power"
state_topic: "stat/FamRoomLight/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Sonoff Extension Cord"
command_topic: "cmnd/sonoff_extension_cord/power"
state_topic: "stat/sonoff_extension_cord/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
octoprint:
host: 192.168.1.75:5000
api_key: !secret octoprint_api
bed: true
number_of_tools: 1
weblink:
entities:
- name: OctoPi Home
url: http://octopi:5000
input_boolean:
alarm_home:
name: Alarm the home
initial: off
icon: mdi:home-lock-open
panel_iframe:
tasmoadmin:
title: TasmoAdmin
icon: mdi:lightbulb-on
url: http://ha-pi
camera:
- platform: generic
still_image_url: https://radblast.wunderground.com/cgi-bin/radar/WUNIDS_map?station=RAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=1.000&noclutter=0&showstorms=0&mapx=400&mapy=240¢erx=400¢ery=240&transx=0&transy=0&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0&rand=25525252&lat=0&lon=0&label=you
name: Radar Raleigh Current
- platform: generic
still_image_url: https://radblast.wunderground.com/cgi-bin/radar/WUNIDS_map?station=AKQ&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=1.000&noclutter=0&showstorms=0&mapx=400&mapy=240¢erx=400¢ery=240&transx=0&transy=0&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0&rand=25525250&lat=0&lon=0&label=you
name: Radar Norfolk Current
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml