-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
329 lines (289 loc) · 8.75 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
320
321
322
323
324
325
326
327
328
329
homeassistant:
auth_providers:
- type: homeassistant
# - type: legacy_api_password
# Name of the location where Home Assistant is running
# Customization file
customize: !include customize.yaml
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
#secret: !include secrets.yaml
recorder:
purge_keep_days: 100
purge_interval: 0
db_url: !secret dburl
# some test change
shell_command:
edit_known_devices: grep -v "pattern" filename > filename2; mv filename2 filename
ptz_up: curl -k "http://192.168.1.103:25106/decoder_control.cgi?command=0&onestep=1&user=<user>&pwd=<pwd>"
ptz_down: curl -k "http://192.168.1.103:25106/decoder_control.cgi?command=2&onestep=1&user=<user>&pwd=<pwd>"
ptz_right: curl -k "http://192.168.1.103:25106/decoder_control.cgi?command=6&onestep=1&user=<user>&pwd=<pwd>"
ptz_left: curl -k "http://192.168.1.103:25106/decoder_control.cgi?command=4&onestep=1&user=<user>&pwd=<pwd>"
# Show links to resources in log and frontend
#introduction:
# Enables configuration UI
config:
#enables persons
person:
#enables default config feature
default_config:
#enables system_health
system_health:
# Enables the frontend
frontend:
themes: !include themes.yaml
mqtt:
broker: m16.cloudmqtt.com
port: 17738
username: !secret mqttusername
password: !secret mqttpassword
discovery: true
#panel_iframe:
# configurator:
# title: Configurator
# icon: mdi:wrench
# url: https://<<some string>>.ui.nabu.casa/hassio/ingress/core_configurator
# terminal:
# title: Terminal
# icon: mdi:console
# url: http://192.168.1.88:7681
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
#stream:
# Checks for available updates
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:
# Enables a map showing the location of tracked devices
map:
# Enables the ios app for tracking, trying to track my roommates
ios:
mobile_app:
hacs:
token: !secret github
# Trying to get camera views in HA
#ffmpeg:
# Our PS4 component we waited so long for!
ps4:
# Track the sun
sun:
# Weather prediction
- platform: yr
# Tuya is the smart bulbs and outlet switches we have the most of
tuya:
username: !secret tuyausername
password: !secret tuyapassword
country_code: 1
platform: smart_life
device_tracker:
#I tried the google home device tracker stuff but have given up for now.
# - platform: googlehome
# host: 192.168.1.67
# - platform: googlehome
# host: 192.168.1.76
# Tile device tracking doesn't seem to work well either, though.
- platform: tile
username: !secret tileusername
password: !secret tilepassword
monitored_variables:
- TILE
- PHONE
- platform: mqtt_json
devices:
Courtenay-PH1: homeassistant/sensor/android_ha_app_cw_wifi/state
Charlie-PH1: homeassistant/sensor/android_francois_wifi/state
weather:
- platform: darksky
api_key: !secret darksky_api_key
# Sensors
sensor:
# Trying to get information about my phone to do useful things with..
- platform: mqtt
name: "WIFI SENSOR NAME"
state_topic: "homeassistant/sensor/android_ha_app_cw_wifi/state"
value_template: "{{ value_json.status }}"
json_attributes_topic: "homeassistant/sensor/android_ha_app_cw_wifi/state"
- platform: mqtt
name: "Charlie's wifi"
state_topic: "homeassistant/sensor/charlies_essential_phone_wifi/state"
value_template: "{{ value_json.status }}"
json_attributes_topic: "homeassistant/sensor/charlies_essential_phone_wifi/state"
# - ssid
# - link_speed
# - bssid
# - rssi
# - ip
# - signal
# - mac
# weather sensor
- platform: darksky
api_key: !secret darksky_api_key
forecast:
- 0
scan_interval: 900
monitored_conditions:
- summary
- icon
- temperature
# time date sensor
- platform: time_date
display_options:
- 'time'
# - 'date'
# - 'date_time'
# - 'time_date'
# - 'time_utc'
# - 'beat'
# -------
# - platform: template
# sensors:
# #We had an idea to have some nice UI that would show sun position, but never got it going.. then lovelace happened..
# sun_up_down:
# friendly_name: 'Sun Position'
# value_template: >
# {% if states.sun.sun.attributes.elevation > 0 %}
# {{states.sun.sun.attributes.elevation | abs}} above the horizon
# {% else %}
# {{states.sun.sun.attributes.elevation | abs}} below the horizon
# {% endif %}
# solar_angle:
# value_template: '{{ states.sun.sun.attributes.elevation | abs }}'
# friendly_name: 'Sun Angle'
# unit_of_measurement: 'degrees'
# sunrise:
# value_template: '{{ as_timestamp(states.sun.sun.attributes.next_rising) | timestamp_custom("%H:%M") }}'
# sunset:
# value_template: '{{ as_timestamp(states.sun.sun.attributes.next_setting) | timestamp_custom("%H:%M") }}'
#away_device:
# value_template: '{{ {% for state in states.device_tracker %} {{ state.entity_id }} {% endfor %} }}'
# - platform: history_stats
# name: away device
# entity_id: '{{ {% for state in states.device_tracker %} {{ state.entity_id }} {% endfor %} }}'
# state: 'away'
# type: time
# start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
# end: '{{ now() }}'
# -------
#Configures our WEBOS tv
notify:
- platform: webostv
host: 192.168.1.98
name: Wingnut
filename: webostv.conf
# Text to speech
tts:
- platform: google_translate
service_name: google_say
# Cloud
# cloud:
# google_actions:
# filter:
# include_entities:
# # - switch.wingnut
# - camera.mjpeg_smartcam
# include_domains:
# - media_player
# - sensor
# entity_config:
# media_player.george:
# name: George
# aliases:
# - Playstation
# - PS4
# room: living room
# media_player.george_2:
# name: George
# aliases:
# - Playstation
# - PS4
# room: living room
# script.1556037449230:
# name: Watch Netflix
# aliases:
# - Turn on to netflix
# - Turn george onto netflix
# room: living room
switch:
# We need this wake on lan switch to turn the TV on over the network. I think?
- platform: wake_on_lan
name: Wingnut
mac_address: a8:23:fe:78:a0:37
- platform: wake_on_lan
name: iMac Eth
mac_address: 78:7b:8a:c7:a2:87
- platform: wake_on_lan
name: iMac wifi
mac_address: 24:f6:77:01:95:ee
# Vesync is our other smart outlets, we hav etwo fo them. they also do power monitoring
- platform: vesync
username: !secret vesyncusername
password: !secret vesyncpassword
light:
# all the lights that are on switches
- platform: switch
name: Living Room Light
entity_id: switch.032000735ccf7f73125a
- platform: switch
name: Photon Producer
entity_id: switch.lamp
- platform: switch
name: Christmas Lights
entity_id: switch.christmas_lights
- platform: switch
name: Charlie's bed side lamp
entity_id: switch.002006595ccf7fbbc582_1
- platform: switch
name: Courtenay's bed side lamp
entity_id: switch.002006595ccf7fbbc582_4
- platform: group
name: Basement Lights
entities:
- light.07484075807d3a4a669f
- light.07484075bcddc28873fa
media_player:
- platform: webostv
host: 192.168.1.98
name: Wingnut
filename: webostv.conf
timeout: 5
turn_on_action:
service: switch.turn_on
entity_id: switch.Wingnut
customize:
sources:
- livetv
- youtube
- netflix
- HDMI 1
- LG Content Store
- Plex
#"source": "Plex", "source_list": ["HDMI 1", "LG Content Store", "Live TV", "Netflix", "Plex", "YouTube"],
# - platform: plex
# Tried to get cameras working but without success so far.
camera:
# - platform: onvif
# host: 192.168.1.75
# name: onvif_ipcam
# username: !secret ipcamusername
# password: !secret ipcampassword
- platform: mjpeg
name: mjpeg_smartcam
still_image_url: http://192.168.1.103:25106/snapshot.cgi?user=admin&pwd=hacking1
mjpeg_url: http://192.168.1.103:25106/videostream.cgi?user=admin&pwd=hacking1
username: admin
password: hacking1
# - platform: ffmpeg
#ffmpeg_bin: /usr/bin/avconv
# name: Camera
# input: !secret ffmpeginput2
# extra_arguments: -pred 1 -q:v 2