-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
executable file
·306 lines (283 loc) · 10 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
# Loads default set of integrations. Do not remove.
default_config:
homeassistant:
customize: !include customize.yaml
http:
server_host: 0.0.0.0
ip_ban_enabled: true
login_attempts_threshold: 5
use_x_forwarded_for: true
trusted_proxies:
- 10.244.0.0/16
logger:
default: error
frontend:
themes: !include_dir_merge_named themes
recorder:
alert: !include alerts.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
light: !include lights.yaml
group: !include_dir_named groups/
input_boolean: !include_dir_merge_named input_booleans/
mqtt: !include mqtt.yaml
sensor:
- platform: waste_collection_schedule
name: next_collection
- platform: time_date
display_options:
- "time"
- "date"
- "date_time"
- "date_time_utc"
- "date_time_iso"
- "time_date"
- "time_utc"
- platform: gtfs_rt
trip_update_url: !secret gtfs_trip_update_url
vehicle_position_url: !secret gtfs_vehicle_position_url
departures:
- name: Bus To Work
route: !secret gtfs_bus_route
stopid: !secret gtfs_to_work_bus_stopid
- name: Bus To Home
route: !secret gtfs_bus_route
stopid: !secret gtfs_to_home_bus_stopid
- platform: history_stats
name: HVAC Cooling Today
entity_id: sensor.hvac_action
state: "cooling"
type: time
start: "{{ today_at() }}"
end: "{{ now() }}"
- platform: history_stats
name: HVAC Heating Today
entity_id: sensor.hvac_action
state: "heating"
type: time
start: "{{ today_at() }}"
end: "{{ now() }}"
- platform: history_stats
name: HVAC Idle Today
entity_id: sensor.hvac_action
state: "idle"
type: time
start: "{{ today_at() }}"
end: "{{ now() }}"
- platform: template
sensors:
tesla_est_battery_range_mi:
friendly_name: Estimated Range (mi)
unit_of_measurement: mi
icon_template: mdi:gauge
value_template: >
{{ (states('sensor.tesla_est_battery_range_km') | float(0) / 1.609344) | round(2) }}
tesla_rated_battery_range_mi:
friendly_name: Rated Range (mi)
unit_of_measurement: mi
icon_template: mdi:gauge
value_template: >
{{ (states('sensor.tesla_rated_battery_range_km') | float(0) / 1.609344) | round(2) }}
tesla_ideal_battery_range_mi:
friendly_name: Ideal Range (mi)
unit_of_measurement: mi
icon_template: mdi:gauge
value_template: >
{{ (states('sensor.tesla_ideal_battery_range_km') | float(0) / 1.609344) | round(2) }}
tesla_odometer_mi:
friendly_name: Odometer (mi)
unit_of_measurement: mi
icon_template: mdi:counter
value_template: >
{{ (states('sensor.tesla_odometer') | float(0) / 1.609344) | round(2) }}
tesla_speed_mph:
friendly_name: Speed (MPH)
unit_of_measurement: mph
icon_template: mdi:speedometer
value_template: >
{{ (states('sensor.tesla_speed') | float(0) / 1.609344) | round(2) }}
tesla_elevation_ft:
friendly_name: Elevation (ft)
unit_of_measurement: ft
icon_template: mdi:image-filter-hdr
value_template: >
{{ (states('sensor.tesla_elevation') | float(0) * 3.2808 ) | round(2) }}
tesla_tpms_pressure_fl_psi:
friendly_name: Front Left Tire Pressure (psi)
unit_of_measurement: psi
icon_template: mdi:car-tire-alert
value_template: >
{{ (states('sensor.tesla_tpms_fl') | float(0) * 14.50377) | round(2) }}
tesla_tpms_pressure_fr_psi:
friendly_name: Front Right Tire Pressure (psi)
unit_of_measurement: psi
icon_template: mdi:car-tire-alert
value_template: >
{{ (states('sensor.tesla_tpms_fr') | float(0) * 14.50377) | round(2) }}
tesla_tpms_pressure_rl_psi:
friendly_name: Rear Left Tire Pressure (psi)
unit_of_measurement: psi
icon_template: mdi:car-tire-alert
value_template: >
{{ (states('sensor.tesla_tpms_rl') | float(0) * 14.50377) | round(2) }}
tesla_tpms_pressure_rr_psi:
friendly_name: Rear Right Tire Pressure (psi)
unit_of_measurement: psi
icon_template: mdi:car-tire-alert
value_template: >
{{ (states('sensor.tesla_tpms_rr') | float(0) * 14.50377) | round(2) }}
- platform: template
sensors:
tesla_park_brake:
friendly_name: Parking Brake
icon_template: mdi:car-brake-parking
value_template: >-
{% if is_state('sensor.tesla_shift_state', 'P') %}
ON
{% else %}
OFF
{% endif %}
template:
- sensor:
- name: Living Room And Kitchen
state: "{{ states('group.living_room_kitchen') }}"
attributes:
current_temperature: "{{ state_attr('climate.home', 'current_temperature') }}"
- name: Master Bed And Bathroom
state: "{{ states('group.master_bed_bathroom') }}"
attributes:
current_temperature: "{{ states('sensor.upstairs_temperature') }}"
- name: Guest Bed And Bathroom
state: "{{ states('group.guest_bed_bathroom') }}"
attributes:
current_temperature: "{{ states('sensor.guest_bathroom_sensor_temperature') }}"
- name: Garage And Entry
state: "{{ states('group.garage_entry') }}"
attributes:
current_temperature: "{{ states('sensor.garage_temperature') }}"
- name: Office And Hallway
state: "{{ states('group.office_hallway') }}"
attributes:
current_temperature: "{{ states('sensor.office_temperature') }}"
- name: Powder And Patio
state: "{{ states('group.powder_patio') }}"
attributes:
current_temperature: "{{ states('sensor.outside_patio_temperature') }}"
- binary_sensor:
- name: Is Christmas-ish time
state: >
{% set current = now() %}
{{ (current.month == 11 and current.day > 18)
or current.month == 12 or (current.month == 1
and current.day <= 2) }}
- name: Fridge Temperature High
state: "{{ states('sensor.fridge_temperature') | float(default=0) > 10 }}"
- name: Freeze Temperature High
state: "{{ states('sensor.freezer_temperature') | float(default=0) > 0 }}"
- name: Deep Freeze Temperature High
state: "{{ states('sensor.deep_freeze_temperature') | float(default=0) > 0 }}"
notify:
- name: ALL_DEVICES
platform: group
services:
- service: mobile_app_mike_phone
- service: mobile_app_jena_phone
- name: mike_phone
platform: group
services:
- service: mobile_app_mike_phone
- name: jena_phone
platform: group
services:
- service: mobile_app_jena_phone
lovelace:
mode: yaml
resources:
- url: /hacsfiles/bar-card/bar-card.js
type: module
- url: /hacsfiles/button-card/button-card.js
type: module
- url: /hacsfiles/frigate-hass-card/frigate-hass-card.js
type: module
- url: /hacsfiles/light-entity-card/light-entity-card.js
type: module
- url: /hacsfiles/lovelace-auto-entities/auto-entities.js
type: module
- url: /hacsfiles/lovelace-card-mod/card-mod.js
type: module
- url: /hacsfiles/lovelace-card-tools/card-tools.js
type: module
- url: /hacsfiles/lovelace-collapsable-cards/collapsable-cards.js
type: module
- url: /hacsfiles/lovelace-hourly-weather/hourly-weather.js
type: module
- url: /hacsfiles/lovelace-layout-card/layout-card.js
type: module
- url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
type: module
- url: /hacsfiles/mini-media-player/mini-media-player-bundle.js
type: module
- url: /hacsfiles/my-cards/my-cards.js
type: module
- url: /hacsfiles/secondaryinfo-entity-row/secondaryinfo-entity-row.js
type: module
- url: /hacsfiles/simple-weather-card/simple-weather-card-bundle.js
type: module
- url: /hacsfiles/weather-radar-card/weather-radar-card.js
type: module
- url: /hacsfiles/webrtc/webrtc-camera.js?
type: module
- url: /hacsfiles/lovelace-mushroom/mushroom.js
type: module
- url: /hacsfiles/stack-in-card/stack-in-card.js
type: module
waste_collection_schedule:
sources:
- name: ics
calendar_title: Waste Collection
args:
url: !secret waste_collection_schedule_ics_url
customize:
- type: Recycling and green waste
alias: Recycling
- type: Garbage and green waste
alias: Garbage
- type: Garbage, green waste, and glass recycling
alias: Garbage & Glass
- type: Recycling, green waste, and glass recycling
alias: Recycling & Glass
- type: Recycling, glass recycling, and green waste
alias: Recycling & Glass
- type: Garbage, glass recycling, and green waste
alias: Garbage & Glass
alarm_control_panel:
- platform: manual
name: Home Alarm
code: !secret alarm_control_panel_code
# Don't require the code to arm the alarm
code_arm_required: false
# Arm again after treiggering
disarm_after_trigger: false
# Delay from arming and becoming armed, eg. to leave the house
arming_time: 120
# Allow time to disarm the alarm before it triggers, eg. when arriving home
delay_time: 60
# Amount of time the alarm is triggered for
trigger_time: 600
disarmed:
# Ensure the alarm can never be directly triggered when disarmed
trigger_time: 0
armed_home:
arming_time: 0
armed_night:
arming_time: 30
rest_command:
buntzen_reservation:
url: https://api.yodelpass.com/api/portal-catalog-items
method: POST
headers:
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
x-api-version: "5.6"
content_type: application/json
payload: '{"userId":0,"placeId":"{{ placeId }}","reservationDate":"{{ date }}","catalogItemType":0,"scopeName":"buntzen lake","filterStartDate":null,"filterEndDate":null}'