-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
255 lines (227 loc) · 5.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
homeassistant:
name: Home
latitude: !secret lat
longitude: !secret lon
elevation: 0
unit_system: metric
time_zone: Europe/Paris
country: FR
customize: !include customize.yaml
allowlist_external_dirs:
- /config/www/records
- /media/frigate
external_url: !secret external_url
internal_url: !secret internal_url
allowlist_external_urls:
- !secret img_ext
- !secret img_garage
- !secret img_salon
- !secret img_etage
media_dirs:
media: /config/www/records
group: !include groups.yaml
automation: !include automations.yaml
recorder:
db_url: !secret mariadb
auto_purge: true
purge_keep_days: 20
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
logger:
default: info
frontend:
themes: !include_dir_merge_named themes
lovelace:
mode: yaml
resources: !include resources.yaml
homekit:
filter:
include_domains:
- light
- switch
- sensor
alexa:
smart_home:
freebox_player:
remote_code: !secret freebox_remote_code
host: !secret freebox_host
#Global activation
config:
stream:
system_health:
default_config:
ios:
mobile_app:
ffmpeg:
conversation:
logbook:
wake_on_lan:
notify:
input_boolean:
vmc:
name: VMC status
initial: off
icon: mdi:fan
freebox:
input_text:
search_spotify:
name: search_spotify
initial: Search into spotify
command_line:
- sensor:
name: frigate size
command: "du -s /media/frigate"
unit_of_measurement: "MiB"
value_template: '{{ value.split("\t" )[0] | multiply(1/1024) | round(2) }}'
- sensor:
name: cpu_temp
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
value_template: "{{ value | multiply(0.001) }}"
sensor:
- platform: websocket_api
- platform: authenticated
exclude:
- 172.30.32.2
- platform: folder
folder: /config/www/records
- platform: folder
folder: /media/frigate
###### TOTAL NUMBER OF AUTOMATIONS
- platform: template
sensors:
total_automations:
friendly_name: "Number of Automations"
value_template: >
{%- set domains = ['automation'] -%}
{%- for domain in domains -%}
{%- for item in states[domain] -%}
{% if loop.first %}
{{loop.length}}
{% endif %}
{%- endfor -%}
{%- endfor -%}
###### TOTAL NUMBER OF SENSORS
- platform: template
sensors:
total_sensors:
friendly_name: "Number of Sensors"
value_template: >
{%- set domains = ['sensor'] -%}
{%- for domain in domains -%}
{%- for item in states[domain] -%}
{% if loop.first %}
{{loop.length}}
{% endif %}
{%- endfor -%}
{%- endfor -%}
###### TOTAL NUMBER OF SWITCHES
- platform: template
sensors:
total_switches:
friendly_name: "Number of Switches"
value_template: >
{%- set domains = ['switch'] -%}
{%- for domain in domains -%}
{%- for item in states[domain] -%}
{% if loop.first %}
{{loop.length}}
{% endif %}
{%- endfor -%}
{%- endfor -%}
###### TOTAL NUMBER OF LIGHTS
- platform: template
sensors:
total_lights:
friendly_name: "Number of Lights"
value_template: >
{%- set domains = ['light'] -%}
{%- for domain in domains -%}
{%- for item in states[domain] -%}
{% if loop.first %}
{{loop.length}}
{% endif %}
{%- endfor -%}
{%- endfor -%}
###### TOTAL NUMBER OF SCRIPTS
- platform: template
sensors:
total_scripts:
friendly_name: "Number of Scripts"
value_template: >
{%- set domains = ['script'] -%}
{%- for domain in domains -%}
{%- for item in states[domain] -%}
{% if loop.first %}
{{loop.length}}
{% endif %}
{%- endfor -%}
{%- endfor -%}
###### TOTAL NUMBER OF DEVICES
- platform: template
sensors:
total_devicetrackers:
friendly_name: "Number of Devices"
value_template: >
{%- set domains = ['device_tracker'] -%}
{%- for domain in domains -%}
{%- for item in states[domain] -%}
{% if loop.first %}
{{loop.length}}
{% endif %}
{%- endfor -%}
{%- endfor -%}
###### TOTAL NUMBER OF ZIGBE DEVICES
- platform: template
sensors:
total_zigbee_devices:
friendly_name: "Number of Zigbee Devices"
value_template: "32" #todo find real value
media_source:
media_dirs:
camera: /www/records
tts:
- platform: google_translate
service_name: google_say
alarm_control_panel:
- platform: manual
name: Home Alarm
delay_time: 10
trigger_time: 4
disarmed:
trigger_time: 0
armed_home:
arming_time: 0
delay_time: 0
armed_away:
arming_time: 0
delay_time: 0
aws:
credentials:
- name: aws_account
aws_access_key_id: !secret aws_access_key_id
aws_secret_access_key: !secret aws_secret_access_key
notify:
- service: sns
region_name: "eu-west-3"
credential_name: aws_account
name: notify_sns
switch:
- platform: template
switches:
my_computer:
friendly_name: "My Computer"
value_template: "{{ is_state('binary_sensor.my_computer_connected', 'on') }}"
turn_on:
service: script.my_computer_wake
turn_off:
service: script.my_computer_suspend
icon_template: mdi:laptop
script:
my_computer_wake:
alias: "My Computer - Wake On Lan"
sequence:
- service: wake_on_lan.send_magic_packet
data:
mac: !secret mac_address