-
Notifications
You must be signed in to change notification settings - Fork 4
/
configuration.yaml
227 lines (190 loc) · 5.25 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
homeassistant:
name: Home
latitude: !secret home_latitude
longitude: !secret home_longitude
elevation: 0
unit_system: metric
time_zone: Europe/Amsterdam
internal_url: !secret base_url
external_url: !secret base_url
customize_glob: !include configuration/customize_glob.yaml
customize: !include configuration/customize.yaml
auth_providers:
- type: homeassistant
# Enable the frontend
frontend:
extra_module_url:
- /local/layout-card.js
mobile_app:
# Enable lovelace with yaml configuration
lovelace:
mode: yaml
# Enable system health on info page
system_health:
# Enable using media sources
media_source:
# Define home zone for presence detection
zone:
- name: Home
latitude: !secret home_latitude
longitude: !secret home_longitude
radius: 50
icon: mdi:home
# Configure HTTP access
http:
use_x_forwarded_for: true
trusted_proxies: 10.42.0.0/16
# 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:
# Enable Energy dashboard
energy:
# Configure the history of the logbook
recorder:
purge_keep_days: 30
db_url: !secret db_url
commit_interval: 10
exclude:
entities:
- sensor.power_consumption
- sensor.power_consumption_phase_l1
- sensor.power_consumption_phase_l2
- sensor.power_consumption_phase_l3
- sensor.power_production
- sensor.energy_production_tarif_1
- sensor.energy_production_tarif_2
- sensor.voltage_phase_l1
- sensor.voltage_phase_l2
- sensor.voltage_phase_l3
# Track the sun
sun:
# Enable config via the interface
config:
# Send statistics to InfluxDB
influxdb:
api_version: 2
host: vps01.trafex.nl
port: 8086
database: homeassistant
default_measurement: state
organization: 61ca8c1950652acb
ssl: false
bucket: homeassistant/autogen
token: !secret influxdb_token
precision: ms
exclude:
entities:
- binary_sensor.updater
- binary_sensor.in2013_is_charging
- binary_sensor.tim_mobile_is_aan_het_opladen
- binary_sensor.wasmachine_door
- binary_sensor.wasmachine_remote_start
- binary_sensor.wasmachine_remote_control
- sensor.voordeur_battery
- sensor.netatmo_bedroom_battery_percent
- sensor.netatmo_outdoor_battery_percent
- sensor.in2013_battery_level
- sensor.in2013_storage_sensor
- sensor.in2013_battery_temperature
- sensor.in2013_light_sensor
- sensor.timmobile_battery_level
- sensor.timmobile_storage_sensor
- sensor.timmobile_battery_temperature
- sensor.txnas_cpu_utilization_total
- sensor.txnas_cpu_utilization_user
- sensor.txnas_memory_usage_real
- sensor.txnas_volume_used
- sensor.txnas_temperature
- sensor.txnas_temperature_2
- sensor.txnas_temperature_3
- sensor.txnas_average_disk_temp
tags:
source: hass
# Configure custom sensors (legacy style)
sensor: !include configuration/sensor.yaml
# Configure template sensors (modern style)
template: !include configuration/template.yaml
# Configure binary sensors
binary_sensor: !include configuration/binary_sensor.yaml
# Configure input boolean switches
input_boolean: !include configuration/input_boolean.yaml
# Configure input select boxes
input_select: !include configuration/input_select.yaml
# Configure Sonos integration
sonos:
media_player:
hosts:
- 192.168.150.197
# Configure TTS engine
tts:
- platform: google_translate
language: nl
cache: true
cache_dir: /tmp/tts
time_memory: 300
service_name: google_say
# Configure notify platforms
notify:
- name: app_tim
platform: group
services:
- service: mobile_app_tim
- name: apps
platform: group
services:
- service: mobile_app_tim
- service: mobile_app_in2013
- name: all
platform: group
services:
- service: telegram_notify
- name: telegram_notify
platform: telegram
chat_id: !secret telegram_chat_id
# Configure Telegram integration
telegram_bot:
platform: polling
api_key: !secret telegram_api_key
allowed_chat_ids:
- !secret telegram_chat_id
# Configure alarm panel
alarm_control_panel:
- platform: manual
name: Home Alarm
code_arm_required: false
arming_time: 30
trigger_time: 60
delay_time: 60
armed_home:
arming_time: 5
stream:
command_line:
sensor:
name: Raspberry PI CPU Temperature
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(2) }}'
light:
- platform: group
name: Tuin spots
entities:
- light.tuin_links_achterin_light
- light.tuin_links_voorin_light
- light.tuin_rechts_light
# Configure persons
person: !include configuration/person.yaml
# Configure groups
group: !include configuration/group.yaml
# Configure Google Assistant integration
google_assistant: !include configuration/google_assistant.yaml
# Configure automations
automation: !include_dir_merge_list configuration/automation/
# Configure scripts
script: !include_dir_named configuration/script/
# Configure scenes
scene: !include configuration/scene.yaml
# Configure alerts
alert: !include configuration/alert.yaml