Reduce Home Assistant log verbosity and optimize recorder configuration
* Set global logger level to WARNING to reduce log noise * Suppress noisy integration logs (MQTT, UniFi, Netatmo, DLNA, UPnP) * Limit logging from custom_components to WARNING * Add minimal recorder configuration with 7-day retention * Exclude high-frequency entities (linkquality, signal) from recorder * Disable excessive discovery logging Result: significantly reduced log volume and smaller recorder database.
This commit is contained in:
+17
-32
@@ -28,43 +28,28 @@ http:
|
|||||||
- 127.0.0.1
|
- 127.0.0.1
|
||||||
- 10.0.0.142
|
- 10.0.0.142
|
||||||
|
|
||||||
|
logger:
|
||||||
|
default: warning
|
||||||
|
logs:
|
||||||
|
custom_components: warning
|
||||||
|
homeassistant.components.mqtt: error
|
||||||
|
homeassistant.components.netatmo: error
|
||||||
|
homeassistant.components.unifi: error
|
||||||
|
homeassistant.components.discovery: error
|
||||||
|
homeassistant.components.dlna_dmr: error
|
||||||
|
async_upnp_client: error
|
||||||
|
|
||||||
recorder:
|
recorder:
|
||||||
# Gem kun 7 dage historik (kan justeres efter behov)
|
|
||||||
purge_keep_days: 7
|
purge_keep_days: 7
|
||||||
# Kør purge dagligt
|
auto_purge: true
|
||||||
purge_interval: 1
|
|
||||||
# Ekskluder irrelevante domæner
|
|
||||||
exclude:
|
exclude:
|
||||||
domains:
|
domains:
|
||||||
- updater # Automatiske opdateringer fylder ikke
|
- automation
|
||||||
- browser_mod # Dashboard-relateret
|
- updater
|
||||||
- logbook
|
- camera
|
||||||
- system_monitor
|
|
||||||
- tts
|
|
||||||
- timer
|
|
||||||
- automation # Historik for automations fylder meget
|
|
||||||
- script # Historik for scripts fylder meget
|
|
||||||
entity_globs:
|
entity_globs:
|
||||||
# Alle midlertidige / hurtigt opdaterede sensorer, som ikke behøver historik
|
- sensor.*_linkquality
|
||||||
- sensor.clock*
|
- sensor.*_signal
|
||||||
- sensor.date*
|
|
||||||
- sensor.time*
|
|
||||||
- sensor.uptime*
|
|
||||||
- sensor.ipad_*
|
|
||||||
- sensor.claus_iphone*
|
|
||||||
- sensor.daniel_*
|
|
||||||
- sensor.andreas_*
|
|
||||||
- binary_sensor.ipad_*
|
|
||||||
- binary_sensor.iphone*
|
|
||||||
# Lys og switches historik fjernes, hvis du ikke behøver log
|
|
||||||
- light.*
|
|
||||||
- switch.*
|
|
||||||
entities:
|
|
||||||
# Behold kritiske entities med historik
|
|
||||||
- sensor.home_assistant_v2_db
|
|
||||||
- weather.openweathermap
|
|
||||||
# Tilføj energidata, hvis du har det
|
|
||||||
- sensor.energy_consumption
|
|
||||||
|
|
||||||
zone: !include include/zone/zones.yaml
|
zone: !include include/zone/zones.yaml
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user