From 7c1e65b13485744ac44252685a999c2489a0512c Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Sun, 20 Jul 2025 15:49:18 -0400 Subject: [PATCH] Update logger and recorder trying to get the logbook a little more useful by excluding a LOT of stuff. Modified greeting messages in speech templates to address individuals specifically when home. --- config/logger.yaml | 9 +++-- config/packages/garadget.yaml | 1 + config/recorder.yaml | 48 ++++++++++++++++----------- config/templates/speech/briefing.yaml | 6 ++-- 4 files changed, 40 insertions(+), 24 deletions(-) diff --git a/config/logger.yaml b/config/logger.yaml index 73bdfcb3..f4a88ef4 100755 --- a/config/logger.yaml +++ b/config/logger.yaml @@ -14,13 +14,12 @@ default: info logs: + AIOGitHubAPI: error aiohttp.access: critical aiohttp.server: critical aiounifi: error custom_components.hacs: error hacs: error - queueman: error - AIOGitHubAPI: error homeassistant.core: error homeassistant.config_entries: error homeassistant.components.automation: warn @@ -29,10 +28,14 @@ logs: homeassistant.components.device_tracker: error homeassistant.components.discovery: warn homeassistant.components.feedreader: error + homeassistant.components.history: error homeassistant.components.http: warn homeassistant.components.ipp: critical + homeassistant.components.logbook: error homeassistant.components.media_player: info + homeassistant.components.mqtt: error homeassistant.components.mqtt.discovery: critical + homeassistant.components.persistent_notification: critical homeassistant.components.rest.sensor: critical homeassistant.components.recorder: error homeassistant.components.sensor.pi_hole: critical @@ -47,9 +50,11 @@ logs: homeassistant.helpers.script: info homeassistant.helpers.entity: critical homeassistant.loader: warn + homeassistant.components.websocket_api: error pubnub: critical py.warnings: error pyhap.hap_server: warn + queueman: error urllib3.connectionpool: error requests.packages.urllib3.connectionpool: critical root: warn diff --git a/config/packages/garadget.yaml b/config/packages/garadget.yaml index 05ac592d..7abe11f5 100755 --- a/config/packages/garadget.yaml +++ b/config/packages/garadget.yaml @@ -96,6 +96,7 @@ automation: entity_id: - person.carlo - person.stacey + - person.justin from: 'not_home' to: 'home' condition: diff --git a/config/recorder.yaml b/config/recorder.yaml index ed208ff5..500837aa 100755 --- a/config/recorder.yaml +++ b/config/recorder.yaml @@ -11,28 +11,38 @@ #------------------------------------------- #db_url: sqlite:///data/home-assistant_v2.db purge_keep_days: 30 -include: - entities: - - device_tracker.spaceship_location_tracker exclude: domains: - - device_tracker + - automation - camera + - device_tracker + - feedreader + - image + - media_player + - persistent_notification + - sun + - zone entity_globs: - - sensor.*uptime* - - sensor.vpn_client_* - - sensor.*_first_connection* - - sensor.*_last_connection* - binary_sensor.*_motion - - binary_sensor.*is_present - binary_sensor.*_motion_* + - binary_sensor.*is_present + - media_player.*echo* + - sensor.*_battery + - sensor.*_first_connection* + - sensor.*_geocoded_location + - sensor.*_last_connection* + - sensor.*_last_updated + - sensor.*_location + - sensor.*_place + - sensor.*_since + - sensor.*uptime* + - sensor.vpn_client_* entities: - - automation.update_garage_get_status + - binary_sensor.powerwall_charging - - media_player.carlo_s_4th_fire - - media_player.alarm_panel_2 - - script.speech_processing + - binary_sensor.rheem_wh_running - script.amp_settings + - script.speech_processing - sensor.carlo_ap - sensor.carlo_fast - sensor.clock_am_pm @@ -42,23 +52,23 @@ exclude: - sensor.clock_time - sensor.clock_time_2 - sensor.date + - sensor.dockerconfigs_backup_date + - sensor.dockerconfigs_backup_error_message + - sensor.dockerconfigs_backup_status - sensor.external_ip - sensor.floorplan_date - sensor.floorplan_time - sensor.floorplan_time_2 - sensor.ha_uptime - sensor.large_garage_door_since + - sensor.small_garage_door_since - sensor.low_battery - sensor.network - sensor.network_detail - sensor.pi_hole_ads_blocked_today - sensor.pi_hole_ads_percentage_blocked_today - sensor.pi_hole_dns_queries_today - - sensor.small_garage_door_since - - sensor.large_garage_door_since + - sensor.rachio_watering_time - sensor.stacey_iphone11_activity - sensor.time - - sensor.rachio_watering_time - - binary_sensor.rheem_wh_running - - sun.sun - - zone.home + diff --git a/config/templates/speech/briefing.yaml b/config/templates/speech/briefing.yaml index 6fa029ea..5a0b7dc0 100755 --- a/config/templates/speech/briefing.yaml +++ b/config/templates/speech/briefing.yaml @@ -286,11 +286,11 @@ New Information: {% if call_no_announcement != 1 %} {% if now().strftime('%H')|int(9999)< 12 and now().strftime('%H')|int(9999)> 6 %} - Good morning. + Good morning. [if there is only one person home, address them specifically] {% elif now().strftime('%H')|int(9999)>= 12 and now().strftime('%H')|int(9999)< 17 %} - Good afternoon. + Good afternoon. [if there is only one person home, address them specifically] {% else %} - Good evening. + Good evening. [if there is only one person home, address them specifically] {% endif %} {% endif %}