-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
330 lines (301 loc) · 10.2 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
330
# Loads default set of integrations. Do not remove.
default_config:
wake_on_lan:
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
homekit: !include homekit_entities.yaml
cloud: !include google_home_entities.yaml
frontend:
extra_module_url:
- local/card-mod.js
zone:
- name: Home
latitude: !secret home_lat
longitude: !secret home_long
radius: 200
icon: mdi:home
logbook:
exclude:
entities:
- sensor.symo_10_0_3_m_1_error_code
- sensor.symo_10_0_3_m_1_status_code
- sensor.awtrix_6dbd0c_current_app
entity_globs:
- automation.awtrix*
recorder:
purge_keep_days: 14 # default is 10 days
exclude:
entities:
- sensor.symo_10_0_3_m_1_error_code
- sensor.symo_10_0_3_m_1_status_code
notify:
- name: "patrick and kathleen"
platform: group
services:
- service: mobile_app_patricks_iphone_13
- service: mobile_app_kathleens_iphone
#CPU Temperature
command_line:
- sensor:
name: CPU Temperature
command: "cat /sys/class/thermal/thermal_zone1/temp"
scan_interval: 15
unique_id: ee6886b7-d378-4d10-ab4f-5ad0731f9aba
unit_of_measurement: "°C"
value_template: "{{ value | multiply(0.001) | round(1) }}"
sensor:
- platform: filter
name: Filtered pool pump power Lowpass Filter
unique_id: id_pool_pump_power_lowpass_filter
entity_id: sensor.pool_pump_current_consumption
filters:
- filter: lowpass
time_constant: 60
precision: 4
- platform: statistics
# From https://community.home-assistant.io/t/quick-bathroom-fan-humidity-switch-control/421996
name: Ensuite Humidity Average Linear 24h
unique_id: id_ensuite_humidity_average
entity_id: sensor.ensuite_environmental_humidity
state_characteristic: average_linear
max_age:
hours: 24
cover:
- platform: template
covers:
garage_door:
unique_id: id_garage_door
device_class: garage
friendly_name: "Garage Door"
value_template: >-
{% if is_state('sensor.garage_door_state','open') %}
Open
{% elif is_state('sensor.garage_door_state','closed') %}
Closed
{% elif is_state('sensor.garage_door_state','opening') %}
Opening
{% else %}
Closing
{% endif %}
open_cover:
- condition: state
entity_id: binary_sensor.garage_door_bottom_magnet
state: "off"
- service: switch.turn_on
target:
entity_id: switch.garage_door
close_cover:
- condition: state
entity_id: binary_sensor.garage_door_top_magnet
state: "off"
- service: switch.turn_on
target:
entity_id: switch.garage_door
stop_cover:
- service: switch.turn_on
target:
entity_id: switch.garage_door
- platform: template
covers:
driveway_gate:
unique_id: id_driveway_gate
device_class: gate
friendly_name: "Driveway Gate"
value_template: >-
{% if is_state('sensor.driveway_gate_state','open') %}
Open
{% elif is_state('sensor.driveway_gate_state','closed') %}
Closed
{% elif is_state('sensor.driveway_gate_state','opening') %}
Opening
{% else %}
Closing
{% endif %}
open_cover:
- condition: state
entity_id: binary_sensor.driveway_gate_closed
state: "on"
- service: switch.turn_on
target:
entity_id: switch.driveway_gate
close_cover:
- condition: state
entity_id: binary_sensor.driveway_gate_open
state: "on"
- service: switch.turn_on
target:
entity_id: switch.driveway_gate
stop_cover:
- service: switch.turn_on
target:
entity_id: switch.driveway_gate
template:
- trigger:
- platform: state
entity_id:
- binary_sensor.garage_door_top_magnet
- binary_sensor.garage_door_bottom_magnet
sensor:
- name: Garage door state
state: >
{# garage_door: on means open, off means closed #}
{% set close_on = is_state('binary_sensor.garage_door_bottom_magnet','off') %}
{% set open_on = is_state('binary_sensor.garage_door_top_magnet','off') %}
{% if open_on and not close_on %}
open
{% elif not open_on and close_on %}
closed
{% elif open_on and close_on %}
sensor error
{% else %}
{% if trigger.entity_id == 'binary_sensor.garage_door_bottom_magnet' %}
opening
{% else %}
closing
{% endif %}
{% endif %}
- trigger:
- platform: state
entity_id:
- binary_sensor.driveway_gate_closed
- binary_sensor.driveway_gate_open
sensor:
- name: Driveway gate state
state: >
{# driveway gate state: on means open, off means closed #}
{% set close_on = is_state('binary_sensor.driveway_gate_closed','on') %}
{% set open_on = is_state('binary_sensor.driveway_gate_open','on') %}
{% if open_on and not close_on %}
open
{% elif not open_on and close_on %}
closed
{% elif open_on and close_on %}
sensor error
{% else %}
{% if trigger.entity_id == 'binary_sensor.driveway_gate_closed' %}
opening
{% else %}
closing
{% endif %}
{% endif %}
- sensor:
- name: "Number of lights on"
state: "{{ expand(state_attr('light.all_lights', 'entity_id'))| selectattr('state','eq','on')|map(attribute='entity_id')|list|count }}"
- sensor:
- name: "Workshop temperature from AC"
device_class: temperature
unique_id: id_workshop_temperature
state_class: measurement
unit_of_measurement: "°C" # or F
state: "{{ state_attr('climate.ac_workshop', 'current_temperature') }}"
availability: "{{ state_attr('climate.ac_workshop', 'current_temperature')|is_number }}"
- name: "Back Lounge temperature from AC"
unique_id: id_back_lounge_temperature
device_class: temperature
state_class: measurement
unit_of_measurement: "°C" # or F
state: "{{ state_attr('climate.ac_back_lounge', 'current_temperature') }}"
availability: "{{ state_attr('climate.ac_back_lounge', 'current_temperature')|is_number }}"
- sensor:
# pool pump power:
# High 937W
# Med 350W
# Low 155W
- name: "Pool pump status"
unique_id: id_pool_pump_status
icon: mdi:pump
state: >
{% set pool_power = states('sensor.filtered_pool_pump_power_lowpass_filter') %}
{% if states('switch.pool_pump') == 'off' %}
Off
{% elif pool_power|is_number %}
{% set pool_power = pool_power|float %}
{% if pool_power < 50 %}
Off
{% elif 50 <= pool_power < 400 %}
Low speed
{% elif 400 <= pool_power < 600 %}
Medium speed
{% elif pool_power >= 600 %}
High speed
{% endif %}
{% else %}
Unknown
{% endif %}
- binary_sensor:
- name: "Driveway light beam"
unique_id: id_driveway_light_beam
device_class: motion
delay_off:
milliseconds: 1500
state: >
{{ states('sensor.driveway_gate_light_beam') | float > 3.0 }}
binary_sensor:
- platform: group
name: "Shelly overheating sensors"
entities:
- binary_sensor.alfresco_and_pool_perimeter_overheating
- binary_sensor.back_lounge_downlights_overheating
- binary_sensor.stairs_and_dining_overheating
- binary_sensor.dining_pendant_and_spare_overheating
- binary_sensor.front_hall_lower_overheating
- binary_sensor.front_hall_upper_overheating
- binary_sensor.front_lounge_overheating
- binary_sensor.kitchen_downlights_overheating
- binary_sensor.kitchen_pendant_and_spare_overheating
- binary_sensor.laundry_and_laundry_path_overheating
- binary_sensor.rear_flood_and_garden_lights_overheating
- binary_sensor.wir_downlight_overheating
light:
- platform: group
name: "All Lights"
entities:
# Get this list from developer tools / template
# - {{ states.light|map(attribute='entity_id')|join('\n- ') }}
# Group: Front yard lights
- light.front_stone_up_down
- light.front_porch
- light.front_garden_lights
- light.meterbox_bunker
- light.front_north_side_flood
# Group: Front lounge and hall lights
- light.front_lounge_downlight
- light.front_lounge_pendant
- light.front_hall_lamp
- light.led_strip_front_hall_dimmer
- light.front_lounge_sideboard_lamp
- light.garage_downlights
- light.workshop_downlight
- light.workshop_rgb_light
- light.led_strip_workshop_shelf_dimmer
- light.courtyard_flood_light
- light.wir_downlight
- light.led_strip_wir
- light.bedside_lamp_kathleen
- light.laundry_downlight
- light.laundry_bunker_light
# Group: Kitchen lights
- light.kitchen_downlights
- light.kitchen_hall_downlights
- light.kitchen_pendant
- light.led_strip_kitchen_kicker
- light.stairs_light
- light.main_hall_downlights
- light.dining_downlight
- light.butlers_downlight
- light.led_strip_butlers_overhead_cupboards
# Group: Back lounge lights
- light.back_lounge_downlights
- light.back_lounge_pendant
- light.back_lounge_sideboard_lamp
- light.lamp_rhs_fireplace
- light.twinkly_back_lounge
# Group: Back yard lights
- light.alfresco_downlights
- light.pool_perimeter_downlights
- light.rear_flood_light
- light.rear_garden_lights
- light.led_strip_fire_pit_dimmer
- light.pool_light_controller_pool_lights
- light.inflatable_santa