-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
133 lines (125 loc) · 5.53 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
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
homeassistant:
packages: !include_dir_named packages
# Blueprints created from the UI are placed here and are otherwise not picked up
automation: !include_dir_merge_list automations/
frontend:
themes: !include_dir_merge_named themes
# Recorder stores historical information used the History portion of entities
# It's configured to use a PostgresSQL database running in a LXC Container.
recorder:
db_url: !secret recorder_url # postgresql://<USERNAME>:<PASSWORD>@pg1.pwcasa.local/homeassistant?client_encoding=utf8
purge_keep_days: 30 # Deletes data older than 30 days, Postgres can handle more, but long term data is stored in Influx
commit_interval: 120 # No need to commit very often, lower commit rates reduce stress on SD/SSD
exclude: # Exclude a lot of stuff that generates noise or is just not interesting
domains:
- automation
- updater
- timer
entities:
- binary_sensor.updater
- sensor.last_boot
- binary_sensor.mi_9t_is_charging
- camera.buienradar_loop
- weather.pw_casa_hourly
entity_globs:
- sensor.*absolute_humidity # It's a helper for some automations but I don't care about the value
- sensor.*estimated_current # Some WLED data I don't need or is very noisy
- sensor.*_wled_free_memory
- sensor.*_wled_wi_fi_bssid
- sensor.*_wled_uptime
- sensor.*_wled_wi_fi_channel
- sensor.mi_9t* # Old phone, don't care about the sensor history
- sensor.pwxperia10iv* # Current phone, don't care about the sensor history
- sensor.*presence # Osram motion sensor included temperature sensors are way off, see sensor_compensation.yaml
- input_number.electricity_* # Input numbers hardly change, don't care about history
- input_number.forecast_*
- input_text.forecast_*
- sensor.pwmanjaro_disk* # LNXLink, it's for my desktop which doesn't run 24/7
- sensor.pwmanjaro_gpu* # These are some attribut heavy sensors for which I don't need historical data
- sensor.pwmanjaro_cpu*
- sensor.pwmanjaro_memory*
- sensor.pwmanjaro_network*
- sensor.pwmanjaro_media_info
- sensor.pwmanjaro_idle
- sensor.thermal_comfort_*
event_types:
- call_service # Don't need to keep track of all service calls made
# InfluxDB v2 is used to store long term data (talking about years)
# Influx will automatically reduce the data to min/max/avg/stdev
# on a 1m, 5m, 30m, 1h and 1d basis. For high frequency data (eg power meter)
# even the 1m window will reduce the data to 1/5th of the original.
# Raw data is discarded after a year.
# Influx runs in a separate LCX container. Running it on a Pi will result in
# issues once you have enough data in it since it's only 32-bit.
influxdb:
host: lxc-influx-01.pwcasa.internal
port: 443
api_version: 2
token: !secret influx_token
organization: homeassistant
bucket: homeassistant/hass_1y # The bucket with raw data which is kept for 1 year
ssl: true
verify_ssl: true
ssl_ca_cert: /config/ssl/ca_certificate.crt
max_retries: 5
include: # Only include what I (potentially want). Data reduction means data *must* be numeric.
entities: # Non-numeric data will break the data reduction
- counter.dsmr_reconnect
- weather.pw_casa
- device_tracker.pwxperia10iv
domains:
- sensor
- climate
exclude:
domains:
- camera
- binary_sensor
- persistent_notification
- zone
- switch
- scene
- device_tracker
- update
entities:
- sensor.last_boot
- sensor.washing_machine_status
- sensor.dryer_status
- sensor.dish_washer_status
entity_globs:
- sensor.*absolute_humidity
- sensor.*estimated_current
- sensor.*_wled_free_memory
- sensor.*_wled_wi_fi_bssid
- sensor.*_wled_uptime
- sensor.*_wled_wi_fi_channel
- sensor.pwxperia10iv*
- sensor.*presence
- sensor.foscam_r2m_1_log*
- sensor.pwmanjaro_*
- sensor.pve_* # This is data queried from Influx, no need to duplicate it in the HA bucket
- sensor.thermal_comfort_*
logbook:
exclude:
entities:
- number.heatbooster_front_window_fan_speed # This thing floods the logbook
- media_player.kdl_50w807c_2 # These go on/off/unavailable all the time
- remote.kdl_50w807c
entity_globs:
- light.hall* # Everytime I go through the hall this logs something, it's not needed
- scene.hall*
domains:
- update # Some update sensors constantly switch between "Unavailable" and "Update/No update"
logger:
logs:
# https://github.com/home-assistant/core/issues/95036
# https://github.com/home-assistant/core/issues/94713
homeassistant.components.command_line: error
custom_components.frigate.api: critical
custom_components.frigate: critical
homeassistant.components.compensation.sensor: error