-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
260 lines (218 loc) · 6.48 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
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 latitude
longitude: !secret longitude
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 151
# 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: Australia/Brisbane
# Customization file
customize: !include customize.yaml
# Enables support for tracking state changes over time.
recorder:
# Delete events and states older than 1 week
purge_keep_days: 7
# Show links to resources in log and frontend
#introduction:
# Enables the frontend
frontend:
# 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:
include:
domains:
- sensor
- switch
exclude:
entities:
- sensor.pws_alerts
- sensor.pws_weather
- sensor.pws_weather_1d_metric
- sensor.pws_weather_1n_metric
- sensor.pws_weather_2d_metric
- sensor.pws_weather_2n_metric
- sensor.pvoutput
- sensor.sabnzbd_disk
- sensor.sabnzbd_left
- sensor.sabnzbd_queue
- sensor.sabnzbd_status
- sensor.sonarr_queue
- sensor.sonarr_upcoming
- sensor.sonarr_wanted
history_graph:
power_graph:
name: Power Generated/Consumed
refresh: 300
entities:
- sensor.power_consumption
- sensor.power_generation
- sensor.energy_consumption
- sensor.energy_generation
# View all events in a logbook
logbook:
# Enables a map showing the location of tracked devices
map:
# Track the sun
sun:
# Weather prediction
sensor:
# - platform: yr
- platform: wunderground
api_key: !secret wunderground_api_key
pws_id: !secret wunderground_pws_id
monitored_conditions:
- weather_1d_metric
- weather_1n_metric
- weather_2d_metric
- weather_2n_metric
- alerts
- temp_c
- precip_today_metric
- weather
- platform: sabnzbd
host: 192.168.1.15
port: 8080
api_key: !secret sabnzb_api_key
monitored_variables:
- 'current_status'
- 'speed'
- 'queue_size'
- 'queue_remaining'
- 'disk_size'
- 'disk_free'
- platform: google_wifi
- platform: sonarr
api_key: !secret sonarr_api_key
host: 192.168.1.15
monitored_conditions:
- 'upcoming'
- 'wanted'
- 'queue'
days: 2
- platform: pvoutput
system_id: !secret pvoutput_system_id
api_key: !secret pvoutput_api_key
scan_interval: 300
- platform: template
sensors:
power_consumption:
value_template: '{% if is_state_attr("sensor.pvoutput", "power_consumption", "NaN") %}0{% else %}{{ states.sensor.pvoutput.attributes.power_consumption }}{% endif %}'
friendly_name: 'Using'
unit_of_measurement: 'Watt'
energy_consumption:
value_template: '{{ "%0.1f"|format(states.sensor.pvoutput.attributes.energy_consumption|float/1000) }}'
friendly_name: 'Used'
unit_of_measurement: 'kWh'
power_generation:
value_template: '{% if is_state_attr("sensor.pvoutput", "power_generation", "NaN") %}0{% else %}{{ states.sensor.pvoutput.attributes.power_generation }}{% endif %}'
friendly_name: 'Generating'
unit_of_measurement: 'Watt'
energy_generation:
value_template: '{% if is_state_attr("sensor.pvoutput", "energy_generation", "NaN") %}0{% else %}{{ "%0.2f"|format(states.sensor.pvoutput.attributes.energy_generation|float/1000) }}{% endif %}'
friendly_name: 'Generated'
unit_of_measurement: 'kWh'
# Text to speech
tts:
- platform: google
group: !include groups.yaml
notify: !include notify.yaml
script: !include scripts.yaml
automation: !include automations.yaml
#automation: !include_dir_merge_list automation/
logger: !include logger.yaml
wake_on_lan:
media_player:
# - platform: sonos
# interface_addr: 192.168.1.119
# #hosts: 192.168.1.133
- platform: kodi
name: TV Kodi
host: 192.168.1.8
username: kodi
password: kodi
turn_on_action:
- service: wake_on_lan.send_magic_packet
data:
mac: ec:a8:6b:fe:13:b6
broadcast_address: 192.168.1.255
turn_off_action:
service: media_player.kodi_call_method
data:
entity_id: media_player.kodi
method: System.Shutdown
- platform: kodi
name: Cinema Kodi
host: 192.168.1.9
username: kodi
password: kodi
# - platform: braviatv
# host: 192.168.xxxx
- platform: spotify
client_id: !secret spotify_id
client_secret: !secret spotify_secret
- platform: songpal
name: Sony Amp STR-DN860
endpoint: http://192.168.1.171:10000/sony
wemo:
static:
- 192.168.1.31
light:
- platform: lifx
broadcast: 192.168.1.255
scene: !include scene.yaml
rainmachine:
ip_address: 192.168.1.20
password: !secret rainmachine_password
alexa:
camera:
- platform: mjpeg
mjpeg_url: http://192.168.1.15:8081/
name: Office Camera
- platform: generic
still_image_url: http://www.bom.gov.au/radar/IDR663.gif
name: Weather Radar
nest:
client_id: !secret nest_client_id
client_secret: !secret nest_secret
binary_sensors:
monitored_conditions:
- 'motion_detected'
dyson:
username: !secret dyson_username
password: !secret dyson_password
language: !secret dyson_language
panel_iframe:
rainmachine:
title: RainMachine
url: "https://192.168.1.20:8080/ui/"
icon: mdi:water-pump
weatherstation:
title: Weather Station
url: "http://wx.julian-edwards.com/"
icon: mdi:weather-rainy
pvoutput:
title: PVOutput
url: "https://pvoutput.org/intraday.jsp?id=28914&sid=26485"
icon: mdi:weather-sunny